A palindrome is a word, phrase, number or other sequence of characters that is read backwards and forwards in the same way, ignoring spaces, punctuation and case-sensitivity.

  • mozz
    link
    fedilink
    32 months ago

    It is fine, but why would you want to teach new programmers C++? Surely there are many languages which are both inherently better and more popular and better-for-their-career languages.

    • @Reptorian@programming.dev
      link
      fedilink
      32 months ago

      C++ is still used for some popular applications, and it still is the only realistic option for these ones. I think there should be more Domain-Specific Languages. I want one for vector graphics like G’MIC is for raster graphics.

      • mozz
        link
        fedilink
        32 months ago

        it still is the only realistic option

        I think we’re gonna have to agree to disagree on this.

        C++ is still used for some popular applications yes; this says about 10% which sounds pretty right to me. It’s definitely not in the “default language and only realistic option” position that it was in 20 years ago. I was a C++ programmer for years and years but at this stage there are just better things available. The last time I tried to work with C++ with manual memory management and .first and .second and templates and just the way it does things, I actually just wound up reimplementing the whole thing I was doing in another language rather than try to work within it.

        If I were trying to teach beginning programmers right now, I would have them start with C to get comfortable with the guts of what’s really going on with their programs, and then once they were skilled with that, I’d teach them Python or Rust or Javascript or something as more of a “this is higher level more realistic option to do the bulk of a big programming project in” option.

        But that is me, we’re allowed to have a difference of opinion about it.

        • @Reptorian@programming.dev
          link
          fedilink
          1
          edit-2
          2 months ago

          I don’t think we do have a difference in opinion. What I’m saying is that some apps are done with many years of development, and in those case, C++ will likely be the only realistic option because it is way more time-consuming to switch. For example, Krita. I do agree that when there’s a choice, C++ is less relevant these day.

          • mozz
            link
            fedilink
            22 months ago

            I get that. But why would that mean that you would choose C++ as the language to teach a new programmer in?