Live data from Hacker News

Ask HN: What is the most enjoyable language to code in?

news.ycombinator.com

1–10 of 25 posts

Ask HN: What is the most enjoyable language to code in?

#1
I'm a self taught web developer working primarily with advanced PHP and wanted to get an idea of what you guys think is the most enjoyable language to create something with? I tend to feel "comfortable" coding things with PHP but hate the fact it's one of the poorest languages to have in the toolkit. Looking for prospects...

Re: Ask HN: What is the most enjoyable language to code in?

#2
A poor coder blames his tools (or language). You can make a masterpiece in any programming language. For that matter though I love PHP, been using it for over 10 years. I've used other languages extensively too but for my own projects it usually falls back to good old PHP.

I definitely wouldn't say it's one of the poorest languages to have in the toolkit though; http://news.netcraft.com/archives/2013/01/31/php-just-grows-...

Most enjoyable for web : php,

Most enjoyable for apps : c

Re: Ask HN: What is the most enjoyable language to code in?

#4
Like you, I was a self taught developer working on PHP. I switched jobs to a Python shop and love it. It is so clean and nice to write.

That said, I think I like JavaScript the most. Simply because I know it the best, it's simple, and flexible.

I picked up Objective-C last year and really liked it too.

All that to say, there's a lot more out there and I think you should definitely explore outside of PHP. Once you get comfortable with a couple the rest come much easier and it doesn't really matter anymore.

Re: Ask HN: What is the most enjoyable language to code in?

#5
For me it's always been the language that gets the job done. If you are a hobbyist programmer you can pick whatever feels fun or interesting, but if someone is paying you to code they usually don't care about programming languages. In most real work you won't get to choose the language anyway, because the decision has been made already or you are working with a big base of production code.

I enjoy getting things to work and making clients happy. The programming language doesn't really enter into it, though some tool sets can be more frustrating than others. I charge more if I have to work with something I know in advance will be tedious or painful.

As for saying PHP is "one of the poorest languages to have in the toolkit," that's only true for bragging to other programmers. PHP is what the majority of web sites are written with. If you want to make money programming you'll find that the uncool languages and tools such as PHP and MySQL (like Visual Basic and Access before them) are the richest vein of paying work.

Keep your eye on new things but don't forget that professional programmers -- those who get paid for programming -- shouldn't hobble themselves by insisting on only using their favorite language or tools.

Re: Ask HN: What is the most enjoyable language to code in?

#6

For me its C# - but maybe because I've become 'fluent' in it, so I now find it easy to churn out decent code. Also I find the Visual Studio IDE a great help.

I have to agree. Visual Studio + Reshaper makes coding an absolute pleasure. The best investment I made was actually getting a book and really learning how to use the VS IDE - time well spent.

Re: Ask HN: What is the most enjoyable language to code in?

#7
post #5

For me it's always been the language that gets the job done. If you are a hobbyist programmer you can pick whatever feels fun or interesting, but if someone is paying you to code they usually don't care about programming languages. In most real work you won't get to choose the language anyway, because the decision has been made already or you are working with a big base of production code. I enjoy getting things to w…

And then to answer your actual question: for me C has been the most enjoyable, but that is largely a function of my age and career experience. One of the most fun applications I've written in my 30+ years was in Fortran IV.

Re: Ask HN: What is the most enjoyable language to code in?

#8
I'm pretty much a self-taught programmer in my 50th year of programming, and the languages I've enjoyed most aren't so much languages as environments. They all provide one thing: quick feedback: not necessarily a REPL, but very close.

They've included: assembly language on III Comp-80/FR-80, Basic and Modula-2 on DEC Vaxen, Oberon-F/Black Box on 68K Macs, and Octave, Racket, and Scala(in Eclipse) on current Macs. My favorite is still the Black Box environment, and I mourn the fact thet Oberon Microsystems hasn't seen fit to port it to Intel Macs.

Re: Ask HN: What is the most enjoyable language to code in?

#10
I agree with a lot of you about PHP being quite great for the applicable job. I just tend to feel the hn community can be pretty biased at times. Either way, I appreciate the input. Lots of great points made, particularly:

"You can make a masterpiece in any programming language."

and

"Keep your eye on new things but don't forget that professional programmers -- those who get paid for programming -- shouldn't hobble themselves by insisting on only using their favorite language or tools."

I actually enjoy javascript better than PHP even though it tends to be more tedious.

Post reply on HN