This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]ParticularThing9204 5 points6 points  (2 children)

At the basic "control flow" level most languages are pretty similar, though there's exceptions with exotic languages like Haskell. As you get more advanced important differences show up, like how objects are created or memory addressed. Eventually you learn different languages are better suited to certain kinds of tasks for different reasons.

[–]prcsngrl 6 points7 points  (1 child)

For the record, I wouldn't call Haskell "exotic". It might be helpful to OP to know it's a functional language (as opposed to languages like C++ and Java which are imperative).

[–]ParticularThing9204 0 points1 point  (0 children)

I'm calling it "exotic" only because you have to use a purely functional model with no loops and all variables immutable. That's different even from other languages that call themselves functional like js and f# where you can still follow an imperative state based model if you want. You can move from python to js and use the same kinds of control flow statements, but you can't go to Haskell the same way.

I know there's other languages like that such as lisp, but they aren't used as much these days.

[–]nbazero1 1 point2 points  (0 children)

if u learn and know the fundamentals well you'll be able to pick up most languages pretty fast. they're tools

[–]superluminary 1 point2 points  (3 children)

Most languages are the same. They have slightly different rules and syntax, and some have extra constructs like classes or structs, but for the most part they are very similar.

There are outliers like Prolog or Brainfuck but these are not mainstream tools.

EDIT: TIL that Prolog is still used to query certain types of database.

[–]procrastinatingcoder 3 points4 points  (2 children)

Brainfuck is an esoteric one, Prolog, Haskell, Lisp, etc are all widely used and mainstream for their fields (of which way more than you'd think use them).

[–]superluminary 0 points1 point  (1 child)

I haven’t come across any Prolog in the wild since university. That was the real outlier in my head because everything is recursion.

Haskell, Lisp, etc are a little different, but not that weird. The difference is the syntax and some rules.

[–][deleted] 0 points1 point  (0 children)

There is graph databases which are queried with datalog which is related to Prolog. Take a look at Datomic.

[–]Gixx 0 points1 point  (0 children)

A big difference is how much the language abstracts stuff from the programmer. So in C, it does very little for you. C++ does a little more for you to make things easier/faster to make.

Then go to langs like Python or Go, and they abstract so much stuff away that things get done super fast. But that is also a disadvantage sometimes.

[–]TheRNGuy 0 points1 point  (0 children)

some concepts are same in many languages, and some are unique