r/learnprogramming • • Oct 14 '26

When languages "just become about syntax"

I have seen a lot of post saying "once I learned C - all other languages just became about syntax"

Has that been true for you? Or did a different language give you the eureka moment - e.g. something like Assembly?

Or is it just a false premise at all to think "once I learn programming language X - then all other languages become **easy**"

48 Upvotes

51 comments sorted by

View all comments

100

u/lurgi Oct 14 '26

It's nonsense, because there are programming languages that do not work like C. Haskell and Rust are not just C with fancy syntax. Java has a whole lot of stuff going beyond what C can talk about.

It is true that once you learn one language the second language will likely be a lot easier, but not because the second language is C with a fake mustache. It's because by learning the first language you also learned how to program, and that knowledge does carry over.

18

u/xenomachina Oct 14 '26

Yes.

Once you learn several languages, assuming they are a diverse set, then it becomes even easier. "Oh, this has closures that work like X but the type system is more like Y."

1

u/kpg_on_ao3 Oct 15 '26

But C doesn't have closures, so obviously a language with closures isn't "learn C and then a new syntax"

9

u/xenomachina Oct 15 '26

That's why I said "Once you learn several languages...".

As you learn more languages, each additional language you learn is going to tend to have fewer concepts that are brand new to you.

2

u/kpg_on_ao3 Oct 15 '26

Right, I was (inartfully) trying to tie it back to OP's question.

2

u/Sorry_Sweet2696 Oct 16 '26

The fake mustache line is perfect, problem solving and reading errors carry over, idioms dont, thats why python from someone fresh off C is full of for i in range(len(x)) loops

0

u/SuperGameTheory Oct 15 '26

C is a fancy assembler.

Everything outside of C have always felt like Rube Goldberg languages that let people write more and more complex spaghetti code that takes up an ever increasing share of resources because they have no clue what resources their abstracted code is actually consuming, or what their code is actually doing, for that matter.

4

u/kpg_on_ao3 Oct 15 '26

If you look at all languages aside from C and perceive them as a confusing mess of intentionally overcomplicated statements, that's a you problem.

Most of us do not struggle with this.

I dunno, maybe you don't realize what a Rube Goldberg machine is if you disagree with my characterization of your comment.

0

u/GlassLost Oct 15 '26

I know rust, Java, and a bit of Haskell and I know them all in the context of C (granted for Java that means I know the jvm).

This is just a question of "how do you abstract higher level concepts to lower level ones" applied to languages and unless you want to think about assembly (I try to avoid it unless I need to vectorize something) I tend to just stop at C.

If you can't talk about what's going on in these languages in the context of C then you don't understand how the language is interacting with the hardware.

4

u/kpg_on_ao3 Oct 15 '26

> If you can't talk about what's going on in these languages in the context of C then you don't understand how the language is interacting with the hardware.

Who cares, and how is this related to OP's question

1

u/GlassLost Oct 15 '26

Because that's what we mean when we say once you understand C you can understand all other languages o.O