I did this in a project and someone later came and changed them all to .h, because that was “the convention” and because “any C is valid C++”. Obviously neither of those things is true and I am constantly befuddled by people’s use of the word convention to mean “something some people do”. It didn’t seem worth the argument though.
- 0 Posts
- 4 Comments
Kethal@lemmy.worldto Programmer Humor@programming.dev•Why pay for an OpenAI subscription?1·2 years agoI found a single prompt that works for every level except 8. I can’t get anywhere with level 8 though.
Kethal@lemmy.worldto News@lemmy.world•Utilities have been lying to us about gas stoves since the 1970s0·2 years agoI hear a lot that gas is cheaper for heating and I took that as the truth for a long time. A while ago I did the math though, and for my house is would have been nearly the same annual power bill if I replaced my 90% gas furnace and water heater with electric units. Although the price of gas is far more economical for heating, there’s a monthly gas usage fee that’s a flat rate. If you go all electric, you don’t pay that, and over the course of a year, I didn’t heat enough for the lower gas price to offset the flat fees. If instead of a regular electric furnace and water heater, they were heat pumps, electric would have been much cheaper than gas.
This certainly would depend on your local prices and weather and how well your house is insulated, but if you need a new furnace, I’d do the math over a year to see if gas is still the most financially attractive option, especially if you can install an air or ground source heat pump.
Yeah, I use that all the time. I think I use it in a different way though. I have projects with C, C++ and other languages. The C and C++ get compiled and linked together, and so there are some considerations for those files that don’t apply to anything else. So I mean C files and C++ files, but not as if they were the same language.