949 karma · joined April 29, 2013
add_custom_command(TARGET project POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
some.dll
$<TARGET_FILE_DIR:project>)I gave up. CMake is just too frustrating to work with. Hard to debug, different API versions, many different ways to do the same thing, hard to understand the abstraction of CMake itself. Total time sink. I will never use that again.
Not only has Mozilla an overpaid management that doesn't do what it is supposed to do but the it seems that the staff fits into that same category.
President Obama signed off the operation, however it was a CIA creation & execution, with the help of Arab intelligence.
CIA does way more than lying and propaganda. They create wars too.
Isn't corn production massively subsidized in the US? So it becomes cheaper to feed cattle with corn instead of grazing. Madness.
That type of meat production is not something I support.
Quote myself "but you solve a specific problem, as your example shows."
So I have to assume your choice of technology for your problem was the correct one & the stats you supply seems to backup such claim.
However you also implying a bigger claim that C++, or something similar, is preferable in web development, where you mostly do string handling, is not something I can agree with.
If your UI is a copy of the database why not just give the user a phpmyadmin login instead?
With more being produced within your country you can legislate higher requirements on production methods. And when food becomes more expensive to buy, the incentive to have high quality production increases.
In the west we no longer have the problem of food shortage, thus we can afford somewhat higher food prices. And of course if you produce more within your country, you can get better salaries.
Why Sweden uses that much natural fertilizer I can't really tell.
But I found something about high prices on synthetic (mineral or others like natural gas) fertilizers. This was something that started happening globally around 2008. Between September 2007 and September 2008 prices increased with 80 percent globally.
If you understand Swedish, 2008
https://www2.jordbruksverket.se/webdav/files/SJV/trycksaker/...
Cattle can transform grass, that we can't eat, to protein that we need. It is actually a good thing, especially if you can't grow anything there.
In Sweden we have something called ecological farming, it is certification, to be approved for ecological farming you can't use mineral fertilizers anywhere in your food production.
Ecological products are usually somewhat more expensive in the store.
Now there are of course lots of farms that is not classified as ecological and they can use mineral fertilizers or natural fertilizers.
About a third of all fertilizers for farming used in Sweden is natural.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5715743/
In the simulated system with no animals, estimated agricultural GHG decreased (28%), but did not fully counterbalance the animal contribution of GHG (49% in this model). This assessment suggests that removing animals from US agriculture would reduce agricultural GHG emissions, but would also create a food supply incapable of supporting the US population’s nutritional requirements.
Assuming agricultural emissions account for 9% of total US emissions (47), and assuming that emission estimates here are representative of national emissions, eliminating animal agriculture would decrease total US emissions by an estimated 2.6 percentage units.
We already have two teams today, one for the overly complex frontend and one for the backend. Solution to that is server side rendering and full stack developers.
There is a reason why we have different farming, because of different soil quality.
So the effect would be to reduce the area of where we can produce food.
And if you would remove cattle you no longer have natural fertilizer. Mineral fertilizer has a big environmental impact on ground water.
And if you need more developer time is also a consumption of energy.
I think a more common problem is relying on general frameworks regardless of platform. Frameworks solves a general problem, but you solve a specific problem, as your example shows.
How much would it save to use SQL SELECT with the columns you need instead of a ORM that fetches everything?
Or what about API endpoints that deliveries everything to single page app that only needs a few values?
Most data deliveries online today is never used only to be discarded. And you have that discarding of data at two different places, between the database & the backend and then between the backend and the client. That is probably a higher cost than changing server language.
It is somewhat more complex to handle more pages in your code base, but each page is short and simple.
And the headline is pure clickbait.
As the presenter in the video said, browsers can render HTML documents really fast, this leads to some interesting conclusions.
Assume that you need to render a modal as popup for each item in a grid.
Frontend solution would be to reuse the same modal for every item and just swap in the on-the-fly rendered content for that item. Or maybe even on-the-fly create & render the entire modal when needed.
Backend solution would be to render one modal per item. This is actually easier, just loop & have unique ids (you can even reuse the same loop that you build the grid with) & no need for dynamic loading, rendering, etc. So even if you send more HTML down the line, the page acts smother.