3 ms·
How come on every thread showing an example of how to do something in Rust there's a staunch C++ defender thinking the whole world should be using their languag
by akra 9y ago
How come on every thread showing an example of how to do something in Rust there's a staunch C++ defender thinking the whole world should be using their language? C++ is a complex beast that due to its age has quite a number of disadvantages and no two codebases I've seen are the same - a measure of a language is its simplicity and C++ subjectively isn't thus. If you like C++ that's fine; doesn't mean you can't do it in Rust as well.
I think it's good that other languages are evolving that are safer, make it easier to do concurrency, have an idiomatic style and still are performant whilst removing legacy cruft. It's the natural evolution of things. Every C++ team I've been on debates every feature usage (e.g. auto/lambdas/etc) where one team's good code is another's bad idea due to sheer amount of legacy features vs new ways, what language constructs are good vs completely bad ideas (everyone has completely different opinions), how should I import libraries, what build tool to use, etc.
- ovao 9y agoThe commenter to which you’re replying is arguing that the cognitive overhead in developing a microservice even in C++ isn’t so bad compared to, say, Go. It doesn’t seem to be an advertisement for C++ or a condemnation of Rust.
- deleted 9y ago[deleted]
- akra 9y ago> Why? Even writing micro service in C++ is dead simple these days Apologies to the commenter then. I misread that to be a "why bother?" to the original blog post and do this instead. All tech has its pros and cons and trying other things can be good too.
- detaro 9y ago> there's a staunch C++ defender thinking the whole world should be using their language? That's in no way a fair characterization of the parent poster.
- pjmlp 9y agoBecause some of us actually like both languages, Rust and C++, and dislike the misconception some have about what C++ is capable of, because they only know how to write "C with a C++ compiler" kind of thing. Any complex language that gets wide market adoption evolves into "complex beast that due to its age has quite a number of disadvantages and no two codebases I've seen are the same". Even something like C.
- jcelerier 9y ago> Every C++ team I've been on debates every feature usage (e.g. auto/lambdas/etc) where one team's good code is another's bad idea due to sheer amount of legacy features vs new ways, what language constructs are good vs completely bad ideas (everyone has completely different opinions), how should I import libraries, what build tool to use, etc. well yeah, and if you then ask these people to debate instead the use of $LANG instead of C++ you will get 100 times more debate.