News for hackers. Stuff that matters.

Fastest Programming Language to Learn?

Let's say you met someone, who for whatever reason is going in for a whiteboard interview in a month.

If you had to suggest they learn a programing language, what would you pick ?

I'd go with Python, although JavaScript is a very very close second.

( 17 comments | 5 points | on HN )
Re:Fastest Programming Language to Learn? by eyelidlessness on Sunday December 26, 2021 @12:59AM (#29690122)
The fastest-to-learn language I’ve picked up was Clojure. For whiteboarding, it has the added benefit that your interviewer probably doesn’t know it/might know general lisp concepts and you can handwave pseudocode as needed.

For “you can pick this up without knowing much about what you’re picking up” Python is almost certainly up there. JavaScript is a good choice because it’s ubiquitous but it’s a minefield and will be for whiteboarding.

To be honest I think the question is not setting the hypothetical interviewer up for success. They’d be better off learning relevant domain knowledge about the work they might be doing, and focusing on being prepared with good questions and generally explaining how they think through problems. They can use any language of their own imagining to express that on a whiteboard. If the interviewer wants something closer to real code that’s already a bad sign that they’re asking the wrong questions.

Re:Fastest Programming Language to Learn? by nomorecommas on Saturday December 25, 2021 @08:07PM (#29688696)
R5RS scheme can be quick to pick up because it's very small. What is it, 50 pages or so? Doing anything useful requires extended study and practice, but that's true of practically any language.

Of the popular languages I'd say python or ruby, where python is probably easier to pick up. I hate saying that because I'm very partial to ruby.

I wouldn't say javascript is fast to learn. It's a popular language and will be with us for many years to come. The hard part is avoiding the many traps, a skill which requires time to learn.

Re:Fastest Programming Language to Learn? by gompertz on Saturday December 25, 2021 @10:56PM (#29689519)
This is going to be a bit of a wild answer... But I'm going to say Awk. All the basic programming constructs/concepts are there, without having to get lost in compilers, IDEs, makefiles etc. On Windows you can get coding with just a single gawk.exe binary doing very practical things for real world tasks. Not to mention the original Awk book is maybe a 4 hour read, and very understandable.
Re:Fastest Programming Language to Learn? by Qem on Sunday December 26, 2021 @01:52PM (#29695181)
Nice point. Reminds me of this: https://web.archive.org/web/20131028201123/http://www.wra1th... Unfortunately it seems the original page died.
Re:Fastest Programming Language to Learn? by WheelsAtLarge on Saturday December 25, 2021 @10:02PM (#29689282)
I would learn "C". The language is small in terms of key words. It has all the tools you will need to whiteboard a solution. You can't be an expert in a month but you can get a handle on the basics relatively fast.

Stay with the basics and don't make the mistake of trying to learn everything. You can't and you won't in a month.

If you aren't given a specific language, I would pseudocode the solution. Once you get a handle on pseudocode writing you can use it for all your whiteboard tests.

https://towardsdatascience.com/pseudocode-101-an-introductio...

Re:Fastest Programming Language to Learn? by shric on Saturday December 25, 2021 @10:43PM (#29689474)
I love C, but strongly disagree with the "learn C" part. It's not a suitable language for interviews even if you're an expert. C is by far my strongest language but I wouldn't dream of using it in any generic FAANG like interview, I'd chose something like Python which has plenty of built in things like appendable lists, dictionaries, garbage collection, et cetera.

Agree with the psuedocode part though.

Re:Fastest Programming Language to Learn? by kadoban on Saturday December 25, 2021 @11:04PM (#29689557)
Someone isn't going to learn to program from scratch in a month to any reasonable degree, so the answer depends too much on the asker, what they know, what they have already studied.
Re:Fastest Programming Language to Learn? by 999900000999 on Tuesday January 04, 2022 @12:09PM (#29797079)
Python is easy enough I'd venture to say if you make it your full time job , you'll be a programmer within a month.

I essentially taught myself JavaScript in a month or so, but I was going at it 8 hours a day

Re:Fastest Programming Language to Learn? by atarikraken on Saturday December 25, 2021 @07:48PM (#29688555)
I'd say the fastest is the one they can relate to the most / have prior similar experience with. Could be 'scratch.'
Re:Fastest Programming Language to Learn? by pipeline_peak on Saturday December 25, 2021 @11:24PM (#29689650)
For the sake of industry relevance I’d say JavaScript. It has the simplicity of C and doesn’t enforce style constraints the way Python does. And unlike C, you can’t blow your arm off with expected memory management.

It’s so easy to declare record types. They’re just hash tables that can be extended with either properties or member functions.

let person = { name : “Tim”, age : 27 }

How much easier can you get?

Re:Fastest Programming Language to Learn? by karmakaze on Sunday December 26, 2021 @12:26AM (#29689978)
Knowing all that I've learned, I wish I'd picked up F# or Go as a first language. Ruby or Python are pretty good too. Js/TS is widespread but has a few quirks and prototype-based object types isn't too useful outside of themselves.
Re:Fastest Programming Language to Learn? by ozzythecat on Saturday December 25, 2021 @11:17PM (#29689617)
> Let's say you met someone, who for whatever reason is going in for a whiteboard interview in a month.

I’d say Java or Python. Both languages are simple enough that you can focus on the whiteboard problems and not worry about the language itself.

Re:Fastest Programming Language to Learn? by uberman on Saturday December 25, 2021 @07:54PM (#29688593)
Outside of package management and async I would say javascript if probably easiest to start with.

If you throw package management into the mix then the whitespace disadvantage of python is more than offset by pip.

I would also consider ruby or lua as good first starts.

Re:Fastest Programming Language to Learn? by tony-allan on Saturday December 25, 2021 @10:06PM (#29689301)
Definitely Python. You can be writing simple programs with a very small subset of the language and a couple of concepts.

Easy to code many day-to-day algorithms.

Re:Fastest Programming Language to Learn? by johnthescott on Sunday December 26, 2021 @02:56AM (#29690572)
easy. golang.org
Re:Fastest Programming Language to Learn? by tomohawk on Saturday December 25, 2021 @08:41PM (#29688894)
ruby
Re:Fastest Programming Language to Learn? by postalrat on Saturday December 25, 2021 @10:03PM (#29689293)
pseudocode