Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Monday October 28 2019, @06:05AM   Printer-friendly
from the evolve-or-die dept.

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.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 5, Insightful) by coolgopher on Monday October 28 2019, @07:09AM (7 children)

    by coolgopher (1157) on Monday October 28 2019, @07:09AM (#912690)

    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.

    Starting Score:    1  point
    Moderation   +4  
       Insightful=3, Touché=1, Total=4
    Extra 'Insightful' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   5  
  • (Score: 0) by Anonymous Coward on Monday October 28 2019, @02:36PM (1 child)

    by Anonymous Coward on Monday October 28 2019, @02:36PM (#912808)

    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

      by Immerman (3985) on Tuesday October 29 2019, @12:30AM (#913049)

      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)

    by Anonymous Coward on Monday October 28 2019, @03:34PM (#912838)

    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)

      by coolgopher (1157) on Tuesday October 29 2019, @12:51AM (#913060)

      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, @04:17PM

    by JoeMerchant (3937) on Tuesday October 29 2019, @04:17PM (#913311)

    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

    by exaeta (6957) on Wednesday October 30 2019, @08:33PM (#913863) Homepage Journal
    It does it pretty well, since most JavaScript interpreters are written in C++.
    --
    The Government is a Bird