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: 3, Interesting) by hendrikboom on Monday October 28 2019, @04:29PM

    by hendrikboom (1125) Subscriber Badge on Monday October 28 2019, @04:29PM (#912876) Homepage Journal

    Yes, that's probably part of the mix.

    What one such project did is to add a scripting language to their unmanageably huge C/C++ code. The scripting language chosen was Gambit, a Scheme dialect with an unusual affinity to C/C++ because it is compiled to C.

    What they discovered was that it was usually easier to implement new features on their system as Gambit scripts than to write it them in C/C++.

    Then they discovered that when fixing bugs in their code it was often easier to replace parts of their system with scripts than to debug the original.

    And Gambit scripts could be compiled; they didn't have to be interpreted.

    In the course of about two years, the total code size went down by a factor of almost ten and the system got faster (I no longer know by how much).

    The changes were all incremental. At no point did they throw out the whole thing to rewrite it.

    Yes, hindsight probably helped.

    Starting Score:    1  point
    Moderation   +1  
       Interesting=1, Total=1
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3