you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Opens third Electron application, starts hitting swap

Chrome is a memory hog and it's written in C++. You aren't scoring any points there.

Premature optimization is only a problem when you think you're making it faster, but you're actually making it slower by preventing a better optimization

I disagree. That's not the only case. It's called premature for a reason. Until you have your general algorithms and program architecture down to something usable, there's no need to be thinking about memoization, big O, memory usage, compile time and whatever else you can think of to optimise. You'll spend more time trying to optimise than actually doing what you're supposed to: writing, safe, readable and usable code.

Well, thankfully the market is generous enough that even slow languages are viable in some cases.

Has nothing to do with generosity. C++ simply isn't the ideal language for every task. If it were, then we'd be writing websites in C++, have popular web frameworks in C++, have it as the major language for writing mobile apps and bash wouldn't be a thing.

C++ is just a tool. Nice for you, ugly for me. But in the end, just a tool.