Hacker News new | ask | show | jobs
by denvaar 996 days ago
I think what makes a programming language easy to use is largely due to the constraints that it imposes, through carefully thought-out design decisions.

At first the constraints may be difficult to grasp. You may feel like a feature is missing, but that's part of learning a language. Once you have learned them, the constraints actually become helpful.

One thing I dislike about JS is that it's like the wild west. You have a mash-up of all different paradigms that are possible, so you get libraries like this. No, I wouldn't say this makes code more readable, though I'm a fan of the pipe in other languages. It just makes yet another way to do the same thing.

I don't mean to be rude or ranty, so with that said, it's cool that you were able to make this. Kudos for that.

1 comments

> I think what makes a programming language easy to use is largely due to the constraints that it imposes, through carefully thought-out design decisions.

That's interesting. I'm pretty well convinced of the opposite. I primarily work with Ruby, which doesn't really have a whole lot of language constraints in the context of "what can I do?". Part of the language design philosophy of Ruby is to give developers "sharp knives" and let them individually avoid chopping off their own fingers. I haven't tried my self but I would expect that something similar or identical to this could be implemented in Ruby and I wouldn't consider that to be something which makes it worse. Indeed, that's one of my favorite features of the language.