News for hackers. Stuff that matters.
Re:The more you learn, the faster you can learn by stan_rogers on Monday September 02, 2019 @12:19AM (#20856747)
"The determined Real Programmer can write FORTRAN programs in any language." - Ed Post, Real Programmers Don't Use Pascal, 1982.

There is a hell of a lot more difference between the various programming languages than their syntax. Natural languages as well - you can render idiomatic English in any language, and if you don't care very much about getting your intended meaning across (and your listeners are both patient and fond of puzzles), you may well choose to do so. It may get you food and lodgings for the night. But the computing equivalent of getting by in a pidgin isn't quite the same thing as programming in the language you're using.

Re:The more you learn, the faster you can learn by aur09 on Monday September 02, 2019 @12:42AM (#20856815)
100% agreed. You can write C-style code in JavaScript, but it won't be idiomatic C and it won't be idiomatic js.

Syntax is a very minor piece of the programming language pie. If Python, Haskell, and Rust all shared the same syntax an expert Python programmer would still have a hell of a time getting anything done in either of the other two languages.

Re:The more you learn, the faster you can learn by flukus on Monday September 02, 2019 @02:11AM (#20857101)
Discovering the differences between languages is all part of the learning process If you can start off with "this is how I would do it in C" and try that in JavaScript you'll speed up your learning by focusing on what features are unique/different in JavaScript. Ultimately they have more in common than they differ.
Re:The more you learn, the faster you can learn by lacampbell on Monday September 02, 2019 @01:34AM (#20856979)
Eh... once you know a handful of languages, it's fairly easy to adjust to a new one. If I have experience in C++, C#, Ruby and Javascript, do you really think Java is going to blow my mind? Or I won't be able to write decent Python? I'm sure I'd pick up a few tricks and my code would get idiomatic but I am going to be 90% there from day one.
Re:The more you learn, the faster you can learn by samvher on Monday September 02, 2019 @01:46AM (#20857022)
I'm pretty sure Erlang, Prolog and Forth would blow your mind.
Re:The more you learn, the faster you can learn by codyb on Monday September 02, 2019 @02:02AM (#20857071)
Alternatively you can just grossly misuse them.
Re:The more you learn, the faster you can learn by johnchristopher on Monday September 02, 2019 @02:24AM (#20857134)
And C would blow his foot, like it does for everyone at some point ^^.
Re:The more you learn, the faster you can learn by userbinator on Monday September 02, 2019 @03:01AM (#20857267)
Or anything from the APL family such as APL itself, or the ASCII-only derivatives J and K.
Re:The more you learn, the faster you can learn by omeid2 on Monday September 02, 2019 @02:06AM (#20857084)
Prolog blows my mind ever time I come back to it.
Re:The more you learn, the faster you can learn by bobowzki on Monday September 02, 2019 @02:56AM (#20857237)
Yes, it's an amazing invention!
Re:The more you learn, the faster you can learn by lacampbell on Monday September 02, 2019 @03:18AM (#20857324)
Are there a lot of Erlang, Prolog and Forth jobs, where you are?

Face it, we all pretty much use the same 10 or so languages in industry.

Re:The more you learn, the faster you can learn by samvher on Monday September 02, 2019 @03:40AM (#20857415)
I'm working mostly in Erlang and from what I can tell there is quite some demand for Erlang and Elixir developers. Also there seems to be a lot of demand for Scala developers which while based on Java is not the same as those 10 languages. I've also used PostScript in a work context (which is stack based like Forth).
Re:The more you learn, the faster you can learn by lacampbell on Monday September 02, 2019 @06:30PM (#20862186)
That's pretty cool. Erlang interests me, mainly because of what a amazing speaker the late great Joe Armstrong was. I don't really solve a lot of Erlang shaped problems right now, however.

My situation is this - people see my CV, see those languages, and immediately dismiss me for Java jobs. I think it's a short sighted decision, but it's the thinking that permeates the industry.

Re:The more you learn, the faster you can learn by perfunctory on Monday September 02, 2019 @04:07PM (#20861464)
Ok, what was the last language you learned? Can you say you learned only 10% of it since the first day?
Re:The more you learn, the faster you can learn by lacampbell on Monday September 02, 2019 @05:37PM (#20861933)
Javascript/Typescript, and yes, pretty much.

This are how you make objects, this are how you make functions, here's constants, here's variables. Use let instead of var for the scoping you're familiar with. Here's a standard library, it's a bit spartan but pretty much everything is familiar.

Later on I stopped using 'class' and 'this' and just used closures that return objects (I consider it more idiomatic, YMMV). I got a good feeling for when to use an object and when to use a Map.