How does the US use water? (construction-physics.com)
213 points by juliangamble 1d ago 158 comments
Show HN: OS X Mavericks Forever (mavericksforever.com)
378 points by Wowfunhappy 4d ago 170 comments
Ask HN: Which is better in your opinion: C or C++.Justify your answer?
2 Forgret 6 8/22/2025, 11:12:04 AM
C: Pre C++, C was it. (It was Borland's excellent Turbo C that got me going in C.) After C++ became available C was still what one used for device drivers and other system-level modules, and was the choice for FFI interfacing for languages such as Python.
C++: for userland layers of instrument control systems, user programs, GUIs, etc.
C++ offers a few very important advantages:
People did tend to overuse the OOP facilities (everything is an object!) but it's hard to overstate how useful OOP and metaprogramming can be. Use C++ unless there is a good reason to use C.C: language interop/FFI
C++: systems programming
But if you HAD to pick one, it has to be C for ubiquity.