C++ is a language you should give serious consideration to learning in 2019 (or whenever you happen to come across this article). Rapid language modernization, better tooling, a growing and inclusive community, and a thriving job market are just some of the reasons C++ should be your next language to learn.
Wow, this guy drank too much Kool-Aid ™️️, I'm out.
Yeah, I get it. At least in the communities I've been a part of over the years, C++ has a consistently bad reputation.
...
Modern C++ (versions ≥ 11) is an entirely different beast and should be considered separately.
foreach new_shiny in hackerland
{ import; improve; integrate; }
Plus, importing crusty old code into your projects is fun, well, at least more fun than dissecting them and re-coding in a new language which lacks the libraries they leaned on.
(Score: 5, Insightful) by coolgopher on Monday October 28 2019, @07:09AM (7 children)
Try doing client-side scripting for an SPA in C++ and then tell me it's good for /everything/. Wt [webtoolkit.eu] simply does not stack up against something like React [reactjs.org] in that domain.
C++ is probably my favourite tool/language, but it's not the universal answer.
(Score: 0) by Anonymous Coward on Monday October 28 2019, @02:36PM (1 child)
Client-side scripting in the web browser is, by definition, restricted to code that can run in the web browser, which forces javascript.
C++ could easily solve whatever problem you have by eliminating the need for client-side scripting, replacing it with a server-side FastCGI software. Or you could write a non-browser client for the service, in C++ .
(Score: 2) by Immerman on Tuesday October 29 2019, @12:30AM
Unless your problem involves remaining responsive when the user has 5-second ping times...
(Score: 2, Insightful) by Anonymous Coward on Monday October 28 2019, @03:34PM (2 children)
Wow, talk about creating a strawman argument. Find a niche specifically not for C++ and yell, "see, it's no go!" Moron.
(Score: 3, Interesting) by coolgopher on Tuesday October 29 2019, @12:51AM (1 child)
You haven't actually looked at Wt, have you? It's pretty good, and means all the horrible JS is abstracted away from you and you can stick to writing type safe C++. It'd be interesting if someone wrote a clang backend to target WebASM though...
(Score: 2) by JoeMerchant on Tuesday October 29 2019, @05:03PM
Apparently, Webassembly is the new hotness: https://doc.qt.io/qt-5/wasm.html [doc.qt.io]
I haven't had a use case for it yet, but it does look tempting.
🌻🌻 [google.com]
(Score: 2) by JoeMerchant on Tuesday October 29 2019, @04:17PM
Wt died on the vine, and more's the shame - it had such potential.
🌻🌻 [google.com]
(Score: 2) by exaeta on Wednesday October 30 2019, @08:33PM
The Government is a Bird