this post was submitted on 17 Mar 2024
8 points (100.0% liked)

Learn Programming

1624 readers
1 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] mozz@mbin.grits.dev 3 points 6 months ago (4 children)

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 3 points 6 months ago (1 children)

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@mbin.grits.dev 3 points 6 months ago (1 children)

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 1 points 6 months ago* (last edited 6 months ago) (1 children)

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@mbin.grits.dev 2 points 6 months ago

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

load more comments (2 replies)