« The problem with grabbing small snippets of code is a lot of context is lost.» does not mean that a lot of additional code is required to understand the context, additionally, simple code may require you to read a bit of code to understand it.
Simplicity does not mean small scale, nor that it must be understood at a glance.
Rich Hickey got a great presentation where he discuss simplicity vs complexity. It's worth a watch if you want to better understand the concepts.
I got a bot on lemmy that scrapes espn for sports/football updates using regex to retrieve the JSON that is embedded in the html file, it works perfectly so far 🤷♂️
A product sold at a loss/very attractive price to attract customers. The idea is that they customers will come due to the cheap price of a desirable product and buy additional other stuff at the store, which should hopefully make up for the loss.
E.g. a restaurant advertise cheap burgers to attract customers, and then make the profit on alcoholic beverages that customers buy alongside the cheap burger.
Assume you're saving X amount of money each month for your retirement.
Your options for storing that money is either:
In cash which will "lessen" in value as time goes by due to inflation
In a savings account with middling interest rate
Or you could invest in the stock market which will typically offer better return.
Assuming you go for option 3, would you choose to invest in a company with zero growth meaning your retirement fund won't grow, or would you choose a company that is constantly growing?
Nobody would choose to invest in a company with zero growth or which doesn't return money back in the form of dividends.
You're objectively better off investing in companies that grow since those are the companies that will grow your investment.
Certain grifters are advertising taking essential amino acids supplements instead of protein. Presumably his team concluded that there's no upside to taking essential amino acids supplements when he gets enough protein.
You can't just replace coal and oil by nuclear power. it takes decades to build a new plant and is very expensive.
That's been said for over a decade at this point. We could have had plenty of nuclear power plants and maintained/developed expertise in the area if clean energy was a goal that was taken seriously by Europe. Both solar and wind are innately inefficient in terms of W/m^2, and wind has the additional problem of noise pollution and environmental impact.
Writing a package manager is not one of the most common programming tasks. After all, there are many out-of-the-box ones available. Yet, somehow I've found myself in exactly this situation.
How so?
I'm a big fan of SQLite and its extensions. Given the large number of such extensions in the wild, I wanted a structured approach to managing them. Which usually involves, well, a package manager. Except there is none for SQLite. So I decided to build one!
« The problem with grabbing small snippets of code is a lot of context is lost.» does not mean that a lot of additional code is required to understand the context, additionally, simple code may require you to read a bit of code to understand it.
Simplicity does not mean small scale, nor that it must be understood at a glance.
Rich Hickey got a great presentation where he discuss simplicity vs complexity. It's worth a watch if you want to better understand the concepts.
https://www.infoq.com/presentations/Simple-Made-Easy/