|
| ▲ | ahknight an hour ago | parent | next [-] |
| Perl is just C with less type safety. And yes, for the most part. C++ as simple shorthand for struct-attached functions and automatic memory management (no, not smart pointers; RAAI) is good. Every single thing added after that is misery and should push a modern developer to Rust, Go, or Zig (roughly in that order) where such things are implemented sanely or not at all. |
| |
| ▲ | stvltvs an hour ago | parent | next [-] | | Funny I think of Perl as Bash with slightly saner syntax plus robust regexp. (said with love) | |
| ▲ | hnlmorg an hour ago | parent | prev [-] | | The only thing Perl and C have in common is the curly-brace. |
|
|
| ▲ | rramadass an hour ago | parent | prev [-] |
| For me, C++ is always in first place. It allows me to do high-level abstractions to low-level hijinks all with total control (i.e. zero-cost abstractions, Templates for compile time programming etc.) across all levels of the software stack and the full spectrum of available hardware. Furthermore, any C++ programmer who says they do not know C, knows neither C nor C++ (hence my preference in using C/C++ as a shorthand to encompass both and highlight the dependency of the latter on the former). I often see this in novice C++ programmers who started with "Modern C++" and identify it as something like Java/C# because of the now huge set of standard libraries and copious syntactic sugar which only compounds their confusion further. |
| |
| ▲ | applfanboysbgon 37 minutes ago | parent [-] | | > Furthermore, any C++ programmer who says they do not know C, knows neither C nor C++ (hence my preference in using C/C++ as a shorthand to encompass both and highlight the dependency of the latter on the former). Right, but this dependency is one-way. There is an entire legion of C programmers who reject C++ (most notably Linus), so claiming that almost all C programmers are also C++ programmers is a bit off. |
|