News for hackers. Stuff that matters.
Re:Writing a custom iterator in modern C++ by creato on Sunday December 20, 2020 @10:11PM (#25491788)
It's funny how two of the most common bandwagon posts you can see on HN and other programming venues is:

* C++ is a terrible bloated language that no one should use.

* The power of modern computers is wasted on lazy software engineers writing software with too many layers of abstraction.

Re:Writing a custom iterator in modern C++ by mehrdadn on Monday December 21, 2020 @01:13AM (#25492538)
I mean, C++ has lots of compile-time abstractions, but unlike with other languages, it can collapse a lot of them during compilation via its inlining and other optimizations. You don't get that with a language like Python...
Re:Writing a custom iterator in modern C++ by adwn on Monday December 21, 2020 @01:34AM (#25492613)
I don't see a contradiction between these two statements. There are more languages than C++ and Python. You could use Rust, or some of the languages targeting the JVM or the CLI.
Re:Writing a custom iterator in modern C++ by david2ndaccount on Sunday December 20, 2020 @10:14PM (#25491803)
To many, these statements are saying the same thing. Your average C++ codebase is a bloated mess with too many layers of abstraction.
Re:Writing a custom iterator in modern C++ by mzsmyk on Sunday December 20, 2020 @10:42PM (#25491938)
You don't need to use a "terribly bloated language" to write efficient software.