Live data from Hacker News

Ask HN: What is your favourite programming language? Why?

news.ycombinator.com

41–50 of 60 posts

Re: Ask HN: What is your favourite programming language? Why?

#41
post #20

swift, because it has a high level syntax with a really nice Generics implementation, but can still interface relatively easily with low level API's. Also because it uses reference counting for memory management instead of mark and sweep garbage collection so has more predictable performance and low memory overhead.

I've just started doing some Swift, I've been really impressed so far.

Re: Ask HN: What is your favourite programming language? Why?

#43
F#: the syntactic power and delicious type system of OCaml combined with the coding ease of Python, all the best of modern C#, a runtime that's essentially a first rate JVM clone, all wrapped up an packaged by one of the better dev tool suppliers...

It hits a real sweet spot for Enterprise coding, domain modeling, scientific computing, and cloud computing. It's the only way I'll touch legacy MS-ecosystem projects. The community is driven by open source and highly cross platform. It's also got type-checked scripting that makes 'plumbing languages' and utility scripts look second rate, for pragmatic day to day stuff, while maintaining complete access to the libraries and models of any of your systems.

Potent stuff for people whose technical decisions are regulated (or even just subject to Enterprise Thinking by Important People).

Re: Ask HN: What is your favourite programming language? Why?

#44
post #2

Important not to mistake fluency for favourite. I code mostly in python but I am attracted to lisp and Haskell. Because they have beautiful simplicity in the first case and interesting outcomes in the second. I continue to struggle to achieve expressiveness in either. Maybe before I die. But my real favourite is awk. Because it was the first language I used with a hash structure and so let me explore writing code whi…

There is this oddness between how programming in Haskell feels and programming in Python. Each time I go back to Haskell to try and learn a bit more about that environment, I find the mindset carrying over to what I write in Python.

I spent a few years as a Python developer followed by a few years working with Haskell. Now I've gone back to Python and I'm a much better Python developer because of my Haskell experience. In fact I think I'm even better than I would have been if I'd swapped my Haskell time for more Python time.

Re: Ask HN: What is your favourite programming language? Why?

#45

Let me earn myself a -4. I do my hobby code in VB .NET. VB6 was the first thing I learned, and whether I'm doing C++, C#, or PHP, whatever else I've ever used, I'm usually translating in my head what I want to do... from VB. So I've ended up back at VB after several years in other languages because it cuts out the cognitive load.

hero

Re: Ask HN: What is your favourite programming language? Why?

#46
i absolutely love D! its such a nice mixture of both worlds, you have the good things of a compiled language, the extensebility of C/C++ and the really handy things scripting languages provide :D it feels like a scripting language with the power of native speed and compability

Re: Ask HN: What is your favourite programming language? Why?

#47
post #4

Probably javascript. With the caveat that all of the work I've done in javascript has been of the old school "write it in a text editor and FTP it to the server" variety, and I have little real exposure to the modern ecosystem or the problems people seem to have with javascript at scale. I like the simplicity of the syntax. Arrays and objects are easy, closures are easy, and I like prototypal inheritance as a concept…

I second this. I love ES5. It was a beautiful, simple language. And it runs just the same on literally every device. The JavaScript community has taken a horrible turn towards complexity. I’ve been planning a fork of the npm tree, to return to ES5. But it’s a big project and I want to be ready with a good modern, modular web toolkit before I do. (The plan is not just to fork an ES5-compatible tree, but to allow peopl…

i understand your love for javascript... but i dont understand the hate for es6 & upwards. ive rewritten all my code to atleast es2015 and lost so much overhead while doing it wich makes my projects alot easier to maintain. (and alot more predictable)

the only thing wich is lacking right now is native support for it in the browsers

Re: Ask HN: What is your favourite programming language? Why?

#48
When I was a student, I learnt OCaml and loved it. Unfortunately there are very few opportunities to work with these kind of languages. So I tried my best to use some functional featured to the languages I work with, mainly JavaScript, and more recently Typescript which I really like.

I started to look into Elm and might fall in love with it soon enough, if so I'll try my best to make my coworker love it too :)

Tldr: OCaml in my dreams, Typescript in reality, probably soon to be replaced by Elm

Re: Ask HN: What is your favourite programming language? Why?

#49
I've used a lot of languages in my career, and Clojure is easily my favorite. I have never found anything else that comes close to being fun to use, getting the heck out of my way, and allowing me to solve real problems fast. The combination of generic data programming, sane state management, and access to host platforms with reach is a killer combo.

Re: Ask HN: What is your favourite programming language? Why?

#50

Earlier quoted context omitted.

I second this. I love ES5. It was a beautiful, simple language. And it runs just the same on literally every device. The JavaScript community has taken a horrible turn towards complexity. I’ve been planning a fork of the npm tree, to return to ES5. But it’s a big project and I want to be ready with a good modern, modular web toolkit before I do. (The plan is not just to fork an ES5-compatible tree, but to allow peopl…

i understand your love for javascript... but i dont understand the hate for es6 & upwards. ive rewritten all my code to atleast es2015 and lost so much overhead while doing it wich makes my projects alot easier to maintain. (and alot more predictable) the only thing wich is lacking right now is native support for it in the browsers

Promises introduce declarative control structures basically between every function call in an async application, which is a nightmare for debugging.

ES6 introduces way more syntax, making it much harder for beginners to learn.

Arrow functions make scope much harder to reason about, which makes closures more of an anti-pattern. In ES6 closures are one of a tiny number of scope patterns so you can actually use them.

Arrow functions cause bind to break in unpredictable ways.

Most other ES6 features are just syntactic sugar which offer no software engineering benefit and add a whole layer of conflicting code styles that one must constantly switch between, or else deal with constant pointless linting fixes if you are adhering to a consistent standard.

ES6 demands you use a transpiler which makes debugging flakier, and adds another place for bugs and maintenance work, in addition to often slowing he build down.

If I wanted deal with that much headache I’d just use typescript and at least get type checking in exchange for the syntax change and transpile step.

ES6 exists because some programmers never understood prototype and bind. And felt naming a function that is only called once was icky. Mostly former Ruby programmers. So they bolted a shitty Ruby onto JavaScript in order to get people to stop using prototype and bind, which are the heart of JavaScript’s control flow.

Basically the chest burster from Alien.

Post reply on HN