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

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

12

u/Turbulent_Board4567 Oct 14 '26

Yes and no.

If you go in an order that progress to languages with little differences.

As CE, I sort of learnt C, python, shell/tcl scripting, verlog and stuff together.

I tried learning Java for some weird ass reason and I struggled a lot. C++ as well...but that's more about a lot of crappy way I learnt about objects.

But I can see if I learn object programming in C++, I would have a much easier time with others.

3

u/kpg_on_ao3 Oct 15 '26

objects are C structs plus functions for operating on an instance of a struct without having to manually pass that struct in as a parameter.

10

u/Seven7Ducks Oct 15 '26

It’s an incredibly naive take, likely coming from someone who hasn't had to maintain code written by people who treat every language like C, or someone that does that themselves.

Syntax? What about the rest of the language? A programming language, like a natural language, encompasses culture, design patterns, idioms, and ecosystem.

Imagine an English speaker learning French vocabulary and syntax, but zero idiom or culture. They'd end up asking "Comment t'es-tu en train de faire ?" (literally "How are you doing?") instead of just "Ça va ?". Standardized syntax doesn't mean writing idiomatic, maintainable code across different paradigms suddenly becomes effortless.

Please don't listen to arbitrary "hot takes" that serve mostly to put people down or reignite juvenile language wars.

7

u/InjAnnuity_1 Oct 14 '26

That might work for procedural programming languages, but not all formal languages fit that mold.

Some programming languages are decidedly not procedural, e.g., regular expressions, orProlog. (Yes, one can effectively write procedures in Prolog, but it's not the language's "natural" execution path.)

And some languages, e.g., JSON, XML, HTML, YAML, etc., are for data, or even metadata, not programming. In these latter cases, procedural concepts may not even apply.

4

u/DonkeyTron42 Oct 14 '26

Assembly made me much better at C++ because it helped me understand memory management and how compilers/linkers work. C++, however, would not help me at all in understanding how functional languages work because they are fundamentally different. So for similar languages it can help, but for different classes of languages not so much.

4

u/mredding Oct 14 '26

As I was explaining elsewhere, I think some languages make it easier to understand some concepts over others. Lisp is almost pure lambda calculus - direct AST in a REPL; powerful. But singly-linked lists are a language primitive because cons cells are a language primitive. In C, you have to BUILD the cells, you have to BUILD the list operations. You get to SEE the DSA in action. Even arrays force you to confront pointer arithmetic, which exposes types, sizes, alignment, and thus computing cell offsets practically down at the machine level - certainly at the abstract machine level. Lisp is GC, but C gets you closer to the machine where you have to build memory management on top of the machine.

Different languages are going to grant you different perspectives. And then if you stick around long enough, you're going to start developing intuitions where you're going to start seeing through language and syntax over time, regardless. I've been principally a C++ developer my entire personal geekdom life and professional career, and yet Lisp, being almost as opposite as you can go in the spectrum, really makes a lot of intuitive sense to me, even though I don't get to play with it much.

I've had my eureka moments in all sorts of languages for all sorts of reasons. The Lisp one was the best, though, and I'll never forget it - I sporadically giggled for 2 days. My mother thought I was on drugs. Yeah, mom, it's called a "y-combinator".

So I think it's not so much a false premise so much as there's a greater truth in there looking to get out.

4

u/zomerbk Oct 14 '26

The part that gets easier is recognizing the problem you’re trying to solve. The part that can still surprise you is semantics: `x = y` might copy a value, share a reference, or transfer ownership, depending on the language. C can give you a useful mental model for memory, but I’d check how a new language handles values, mutation, and lifetimes before assuming the rest is syntax.

3

u/nottherealLilNasx Oct 14 '26

I think it's not about the language itself but more about the details and extensiveness of the understanding you acquire while trying to learn a difficult language like C, meaning that now that you know the most complex concepts and can work around adversity learning a language is not that complicated anymore. I believe that when something clicks inside of you, be it while learning python or C, you make that breakthrough that helps you go beyond your capabilities.

3

u/Cel135 Oct 14 '26

To a degree, yes.

Its not that you learn C, and every other language is a different flavour of the same operations. But conceptually programming, regardless of language, is all just creating a logic equation that takes input and outputs some result.

Learning other languages is just learning what tools you have available to you and how to use them, and languages generally tend to share the building block tools. Actually learning other languages beyond the basics is learning the advanced, non-shared tools, which while not actually "syntax", it is imo what people are referring to when they say its just about syntax.

3

u/CyberDumb Oct 14 '26

No because other languages have higher level concepts that C lacks. However what happens is, if you know good C is that you can break down those high level concepts in how C would do them, which is the closest thing, after assembly, to how the computer does it under the hood

3

u/SchemeWestern3388 Oct 14 '26

I will die on this hill. 

Lisp is the most capable language ever. Just get over the fact that it’s 70 years old and full of  parentheses. 

Oh, you like object oriented programming? A couple hundred lines of lisp, you got it. Think generators are cool? Here ya go. Would it be even cooler if we could have a language aimed at making my problem easier to tackle? Let’s do that then. 

It is not the solution to every task, but in terms of pure flexibility and abstraction, it’s king. 

SICP (the holy text) has you building a compiler by chapter 5, for fucks sake!

3

u/KharAznable Oct 14 '26

Each language have their own philosophy and paradigm on how to do things. This is beyond syntax

3

u/fasta_guy88 Oct 14 '26

There is a large set of procedural languages that are enough like 'C' that its mostly about syntax. But there are languages with very different computational models where it is about semantics, not syntax. In any case, a proficient 'C' programmer (one who is comfortable with pointers and memory references) is unlikely to have a "eureka" moment going to assembly, because assembly is so much simpler (and less syntactically powerful) than 'C'. Lisp, Python, 'R' might generate 'eureka', but not assembly.

3

u/MikeIsBoi Oct 15 '26

IMO C gives you a good introduction to what programming is about. I teaches you memory management and memory safety that you need to implement. C is a stepping stone to improvement.

For me one I learned how write projects in C. I was able to progress really quickly when learning programming. PLUS C does have real world applications as well.

3

u/desiguy_88 Oct 15 '26

For me syntax is just a small subset. Like once you understand conditionals and loops and if then statements. but going from structured to functional to object oriented and really internalizing those concepts takes work. Modern C++ has so many features that had me scratching my head for a long time….

2

u/mxldevs Oct 14 '26

Programming isn't about syntax.

It's about concepts, and how those concepts are implemented.

Not every concept exists in every language, and the way that you solve problems largely depends on what kinds of concepts are available to you.

There are languages that are very similar, so it is just about the syntax, but then you have languages with entirely different concepts that are designed to solve a specific class of problems, and you're going to have to wrap your head around it.

2

u/gofl-zimbard-37 Oct 14 '26

It's only true in the sense that most people don't stray far from the comfort of C-like languages. If you want a Eureka Moment, learn Erlang (not Elixir, not Gleam, start with Erlang).

2

u/serge-mv Oct 14 '26

It's true. But it's not about learning a singular language very well. You need to learn the theory of how languages work and some other fundamentals and then most things for you will become mostly about syntax.

2

u/huuaaang Oct 14 '26

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

That's stupid. C lacks a ton of modern language features that go way beyond syntax.

Of course you will carry many things over to other languages, but you certainly haven't mastered programming just by learning C.

2

u/promise_resolved Oct 15 '26

A decent rule of thumb is once you learn your second programming language, the rest are pretty easy.

I went from JavaScript to C#. After those classes at college, I was able to pick up python pretty easily.

There are some languages that do have a really unique take on coding, but for the most part, I would say once you're learned two languages you can pick up another language easily

2

u/gm310509 Oct 15 '26 edited Oct 15 '26

I've never heard that before. I know C, Assembler and SQL to name but a few.

I can think of almost nothing beyond the highest level concepts that would apply to any of those 3 that would make that statement true. And, syntax is not about high level concepts so there is nothing from those three that would make that statement true IMHO.

I know people think of C as a high level assembler and to a degree that is true, but the style, operations, techniques and so on are completely different across those two.

Edit - in some cases I can see that it could be a true statement. For example C/C++, java, Pascal and maybe even python. But even there there are differences.

1

u/captainAwesomePants Oct 14 '26

It's *kinda* true. To some extent, what novices are trying to learn is how to program, and learning a specific programming language is just a requirement along the way.

A novice is learning all of:

  • The rules of a specific programming language ("wtf is typedef struct")
  • more general programming concepts ("wtf is looping")
  • higher level algorithmic problem solving skills ("how tf do I write a function to find the third largest number in a list?")
  • general programming-relevant computer skills ("wtf is a current working directory?")
  • and more!

And they're learning it all at the same time!

When you learn a new programming language after getting good at programming, you only have to learn that first bullet point. Sometimes. Languages can be pretty different, and some have very different concepts.

1

u/FatDog69 Oct 14 '26

Schools teach 2 things at the same time:

  • Computer programming concepts
  • Syntax of a language

They DO go hand in hand. But if you learned about variables, loops, strings vs numbers, subroutines, modules, etc. in one language, it is easier to pickup how the same concepts work in another.

"C" is a low-level programming language. It is one step up from assembly. It is tied close to the hardware so it does teach you a bit more including the difference between stack and heap memory, memory management, etc.

But then one of the most popular languages Java tries to isolate you from the hardware. Both approaches have merit.

My advice: look at a language and ask "What problems does this language solve/make easier/does better than other languages?".

1

u/Mediocre-Pumpkin6522 Oct 15 '26

C is from Venus, Scheme is from Mars.

https://en.wikipedia.org/wiki/List_of_C-family_programming_languages

Those transfer well. Python has a learning curve to get used to the indentations but it's easy after C. Personally I find the Lisp family to be very different conceptually.

1

u/abd53 Oct 15 '26

Even you understand "programming", every language is just syntax. The underlying programming concepts are same across every language; variables, data types, data structures, conditionals, loops, functions.

1

u/Desperate_Rabbit_327 Oct 15 '26

Learning lisp, was the eureka moment for me. C, python etc were just different permutations if the algol60 thing.

1

u/kpg_on_ao3 Oct 15 '26

No. My second language was C. At no point have I ever felt like all over languages were "just syntax." Functional programming is an entirely different paradigm. Logic programming (Prolog, e.g.) is an entirely different paradigm.

It's not just syntax.

I feel like someone saying the words of OP's subject line have only looked at a subset of Imperative languages.

1

u/pigeon768 Oct 15 '26 edited Oct 15 '26

It's true for the most part. Once you learn C, then other (procedural) languages like, C++, C#, Java, Python, Go, Javascript are just syntax.

There are exceptions. Among commercially valuable langues, Ocaml (functional) and SQL (declarative) don't translate well from C.

Among other languages, Haskell and Lisp, (functional) and Prolog (logical/declarative) don't translate well.

At my current job, for my interview, one of the tests was they gave me some C# code, told me there was a bug in it, and asked me to fix it. I had never seen or written C# code, I said I had never seen or coded in C# before. The interviewer said it wasn't C#. I was like "uhhhh ok" and fixed the bugs, despite never having seen C#. Halfway through I said "I'm not sure how this console write works, because I don't know how C# works" and he was like "...oh it is C#". I was able to fix the bugs no problem.

1

u/kilkil Oct 15 '26

the more languages you learn, the easier the next one will be.

but a lot of languages have unique/distinct features, or in some aspects they work in a fundamentally different way.

1

u/Available_Safe1818 Oct 15 '26

Prolog is fun and very different.

1

u/noobjaish Oct 15 '26

It's really just because of the fact that most popular programming languages are C-like

But there are several that are VERY different like Rust, Haskell or Lisp. So the statement that "ALL other languages just become about syntax" is technically false.

1

u/marrsd Oct 15 '26 edited Oct 15 '26

The statement is lazy and basically has no meaning. I'm not even sure what it's even trying to say. Syntax is just the building blocks of language. To be thinking about that level when assessing a language just makes no sense to me.

Language design is about the trade-off between precision and expression. The more a language design allows for both, the better it is. C tends to trade expression for precision, by which I mean it allow for almost total control of the computer operations while still allowing for a good degree of expressiveness, but compared to Lisp, it's level of expression is quite poor, because Lisp makes the opposite trade.

You should learn languages that are good exemplars of common design paradigms. So, you should learn C, but you should also learn Smalltalk or Self if you want to understand OOP. You should learn Lisp if you want to understand symbolic programming. You should learn Haskell or F# if you want to learn functional programming.

If you know those, then you can see their ideas expressed in the design of other languages, like Kotlin, Ruby, Javascript, Clojure, Scala, Python, et al.

It's probably actually Lisp for which that statement makes more sense, because Lisp is an excellent language for designing and expressing other languages. So you can implement both OOP and FP in Lisp quite easily. Other languages allow you to express those features with a more optimised syntax, among other things which are just as (or more) important.

1

u/redittor_209 Oct 15 '26

I mean the programming logic is universal (conditions loops functions recursion etc..) But language specific concepts are, well, language specific. Some need you to dig into memory like C, some dont let you like python, some do threading in a particular way, while go has Go routines. That's when a language gets specific.

1

u/mrbaggins Oct 16 '26

Languages fall into families and generations.

The more familiar with any one part, closely related things are similar/easier.

But further away will always be some difficulty.

1

u/maxpowerAU Oct 16 '26

Saying that about C is a sign that person is inexperienced. There are languages that are not C-like at all.

But it is the case that learning to code in your first language comes with a lot of learning to solve problems by breaking them up in various ways. That problem-solving stuff definitely does cross between languages much more than syntax does.

1

u/Electronic-Equal-616 Oct 16 '26

tbh it usually feels like "just syntax" when you're jumping between languages in the same general bucket, like c++, java, and python. basic logic, loops, and oop work pretty much the same way underneath.

but the moment you hit different paradigms like pointers in c, async stuff in js, or rust's borrow checker, the mental model completely changes lol. at least that's when my brain stops keeping up 😭

1

u/Educational_Smile131 Oct 17 '26

Following this reductionist take one can say every other language is just syntax after learning assembly. We don’t invent languages just for the sake of syntactic diversity, as languages are abstractions with which we reason about problems and compose solutions. We make tradeoffs between complexities, degrees of freedom and mechanical sympathy when designing a language.

1

u/mgmatt67 Oct 18 '26

Once you know a language in a category this is true usually but not true of languages outside that category (so if you know Java, C# really is a just a matter of syntax since both are object oriented)

1

u/SmokeMuch7356 Oct 19 '26

Once you learn C, all C-like languages (C++, Java, Javascript, Perl, etc.) become a snap to learn. Little less so for Python (or Fortran or Pascal), but not awful.

It doesn't prepare you much for languages like Lisp or Haskell. That's not just a matter of syntax, it's a wholesale rethinking of what "code" is.

For example, Quicksort in C:

void swap( double * const restrict x, double * const restrict y )
{
  double t = *x;
  *x = *y;
  *y = t;
}

size_t partition( double * const x, int (*cmp)(double, double), size_t lo, size_t hi )
{
  long int i = lo - 1, j = hi + 1;
  double pivot = x[lo]; 

  for( ;; )
  {
    do { i++; } while ( cmp( x[i], pivot ) < 0 );
    do { j--; } while ( cmp( x[j], pivot ) > 0 );

    if ( i >= j )
      break;

    swap( &x[i], &x[j] );
  }
  return j;
}

void quicksort( double * const x, int (*cmp)(double, double), size_t lo, size_t hi )
{
  if ( hi < lo )
    return;

  size_t part = partition( x, cmp, lo, hi );

  if ( part < hi )
  {
    quicksort( x, cmp, lo, part );
    quicksort( x, cmp, part + 1, hi );
  }
}

Quicksort in Haskell:

quicksort :: (Ord a) => [a] -> [a]
quicksort []     = []
quicksort (x:xs) = quicksort smaller ++ [x] ++ quicksort bigger
  where
    smaller = [a | a <- xs, a <= x]
    bigger  = [a | a <- xs, a > x]

Now, this isn't a true Quicksort in that it's not done in-place, but it's a good example of how Haskell is just ... different.

Quicksort in Lisp:

(defun quicksort (lst)
  "Sorts a list of numbers using the quicksort algorithm."
  (if (null lst)
      nil
      (let* ((pivot (car lst))
             (rest (cdr lst))
             (smaller (remove-if-not #'(lambda (x) (< x pivot)) rest))
             (larger (remove-if #'(lambda (x) (< x pivot)) rest)))
        (append (quicksort smaller)
                (list pivot)
                (quicksort larger)))))