Live data from Hacker News

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

news.ycombinator.com

21–30 of 60 posts

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

#22
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 people to rewind the npm tree to an arbitrary branch mask based on any linting rule they like and append from there. If you want to narrow to only typescript+react packages with named exports for tree shaking, you could. I’m gonna do good old fashioned ES5 though, no promises allowed and no assignment in global scope)

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

#23
C# is my favorite language as long as we're only talking about the language. It gets out of my way - I can write it without thinking consciously about the programming language. If the run-time didn't have garbage collection, it would be my ideal language. The GC never gets out of my way, ever.

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

#24
At the moment, Go. I like the focus on features that make programmers happy, like `gofmt`. I love that most of the things I want to be able to do are already available as a library - it feels like Python in that regard. I really love how easy it is to cross compile for different platforms. I think they still have some issues with dependency management, but `dep` has made my life much better already.

I love Rust as well, though I love it more as a concept than as an actual useful language. If only it weren't so freaking hard to get anything done in that language!

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

#25

Clojure, because of Datomic.

I have been meaning to try datomic for a while but love every minute of my current job doing Clojure. My company has been converting everything to it at every reasonable time, from web servers to massive ETL jobs to our Clojurescript React Native mobile apps. We've always been very happy with the conciseness of the code, the clarity gained from immutability and pure functions, the performance switching off Rails to the JVM and far easier parallel programming tools, and the ability to utilize the vast Java/JavaScript ecosystem if someone hasn't written something in Clojure itself. No ecosystem is perfect, but it has been the most charming environment I've worked with ever. Cursive rocks too!

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

#27
I've got two: I write and prefer to write code in Go. But when I'm in my thinking mode, I like and use Haskell a lot.

I find Haskell clears up your thinking a lot, but it's really not great for production work. Go on the other hand is extremely great for prod work

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

#28
Python is my favourite by far, mainly because when I first read over the syntax I typed in an ultra simple program and it worked first time. Normally, you would wrestle with constructors, imports / includes and semi colons in the appropriate places, but the fact that this program worked first time really impressed me.

It has a beautiful clean syntax, which is as concise as I can imagine that a human readable language could get to giving instructions to a computer.

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

#29

Kotlin. Less verbose than java, functional and modern features when I want them but doesn't implement every programming idea like scala. My second favorite language is python, but I like getting the type safety while writing way less code.

Another vote for Kotlin - it strikes just the right balances for me in the functional vs. objective and verbosity vs. readability ranges.

Its connection to Java brings a huge ecosystem of tools and libraries to the table, but if you don't need those, today Kotlin can also be used without Java or the JVM.

It has been my main language for work projects for over a year now and I still love the language.

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

#30
My favorite programming language is Zero (yes it is my invention). If you have not heard of it then I am not surprised because the language is very new (theoretical actually). You develop programs in it by defining new infinite sequences from existing ones.

All begins with the primitive infinite sequences and the language's means of combination (specified with decimal digits)

---universe begin---

sequence 01: 0 1 2 3 4 5 ...

sequence 03: 1 2 3 4 5 6 ...

sequence 05: 2 3 4 5 6 7 ...

sequence 07: 3 4 5 6 7 8 ...

...

---universe end---

0105: count by two

---universe begin---

sequence 01: 0 1 2 3 4 5 ...

sequence 02: 0 2 4 6 8 10...

sequence 03: 1 2 3 4 5 6 ...

sequence 05: 2 3 4 5 6 7 ...

sequence 06: 1 3 5 7 9 11 ...

sequence 07: 3 4 5 6 7 8 ...

...

---universe end---

01030501: set up some cycles

---universe begin---

sequence 01: 0 1 2 3 4 5 ...

sequence 02: 0 2 4 6 8 10...

sequence 03: 1 2 3 4 5 6 ...

sequence 04: 0 1 2 0 1 2 ...

sequence 05: 2 3 4 5 6 7 ...

sequence 06: 1 3 5 7 9 11 ...

sequence 07: 3 4 5 6 7 8 ...

...

---universe end---

Please note that as the universe grows we always leave space for more sequences by skipping every other sequence designation.

What makes this language useful is that with very little effort any two arbitrary infinite sequences can be defined. As a consequence any mathematical relation is easily defined as a mapping from members of one sequence to the corresponding members of the other sequence.

I will briefly describe the language's means of combination. Writing a sequence designation one next to another will form new sequences by pulling out corresponding members. But all sequences are infinite so after the last designated sequence is visited the member value is used to select the possibly new member in the first designated sequence. Digits that are not able to be confused with sequence designations specify the three other primary means of combination. They are "cons", "car", "cdr". With a proper understanding of their use one can build arbitrary sequences. I will just say that "cons", "car", and "cdr" are used to combine entire sequences which is logically equivalent to combining corresponding members of those sequences.

In the code above I write "0105". The "01" is a sequence designation. The "05" is a sequence designation.

Post reply on HN