Live data from Hacker News

Modern C++ Programming Course

github.com

71–80 of 221 posts

Re: Modern C++ Programming Course

#73

[flagged]

> Does it make sense to still invest time to learn C++ when Rust exists? Yes. The overwhelming majority of industry is using C/C++. Rust is still very much niche when compared to the overall market. Additionally, (Someone can correct me if this is wrong) IIRC, mozilla, was initially one of the biggest proponents of rust, but still just uses rust in a supplementary role. C++ still powers the heavy lifting.

Thank you!

Re: Modern C++ Programming Course

#75
post #44
post #5

Earlier quoted context omitted.

There is no modern C++ without the old C++. C++ is the success that it is exactly because it has been able to evolve with no shameful past to cancel.

I've had the misfortune of needing to fix the C++ from someone who neither knew nor cared what STL and smart pointers are.

You mean someone who learnt Visual C++ from Microsoft and was conned to think he knew C++?

Re: Modern C++ Programming Course

#76

[flagged]

> Does it make sense to still invest time to learn C++ when Rust exists? Yes. The overwhelming majority of industry is using C/C++. Rust is still very much niche when compared to the overall market. Additionally, (Someone can correct me if this is wrong) IIRC, mozilla, was initially one of the biggest proponents of rust, but still just uses rust in a supplementary role. C++ still powers the heavy lifting.

Mozilla is not “one of the biggest proponents of Rust” anymore, in that other, larger entities are now as well. Rust is at the center of many products, large and small.

That doesn’t mean that C and C++ aren’t also large, even larger, but this has been changing for years and only shows signs of accelerating, not slowing down.

Re: Modern C++ Programming Course

#77
post #70

Earlier quoted context omitted.

Well, you seem to be precisely the target audience for the course linked in this very post: > This open-access course is directed at those who are already familiar with C > and object-oriented programming towards a proficiency level of C++ > programming.

That doesn't address the constraints that are typical in embedded systems such as limited memory (RAM) and the expectation that a program will run forever. There are resources oriented toward embedded C++ that address these (at least memory allocation.) On a project a couple years ago I was pushing to use C++ instead of C, if only as a "C compiled using the C++ compiler" for better type checking. I could not convince…

I wouldn't worry about the compiler producing correct code, I would worry about the heap eventually fragmenting enough that an allocation fails (perhaps thousands of hours after the program launches). I know C++ offers the ability to supply your own allocator, but it's not for the faint of heart.

Re: Modern C++ Programming Course

#78

[flagged]

Does it make sense to learn Latin when Chinese, Hindi, English, and whatever else exists? It all depends on what you want to do with your life.

I think you have it backwards: Latin/C++ should be considered legacy while {Chinese, Hindi, English, Rust} still have a future.

Re: Modern C++ Programming Course

#80

[flagged]

Genuinely asking: Why many programmers need tools to enforce something upon them? Why not they can't take slow, be mindful about what they write and add a couple of layers as pre-commit hooks? Like a code formatter and maybe a linter? This makes me sad. Programmers have the knowledge base to make some of the most sophisticated things bend to their will, and they tell a programming language is bad, because they can ma…

> Why many programmers need tools to enforce something upon them? Why not they can't take slow, be mindful about what they write and add a couple of layers as pre-commit hooks? Like a code formatter and maybe a linter?

Running a formatter and linter in a pre-commit hook is literally using tools to enforce things?

Post reply on HN