by prepend · 2y ago · 0 comments
Programming languages follow rules and programmers should follow the rules. Just because mistake is common doesn’t mean the language should incorporate it into its functioning. That makes inconsistent behavior and is a pain in the long run because instead of learning and following logic, programmers have to guess what’s a common enough error that the language compensates. And over time the language drifts and is hard to work with.
It seems easier to me to just suck it up and learn the right way to do things in a language.
People react strongly to "I'm Sorry Dave, I'm Afraid I Can't Do That" types of messages, and the exit command one is pretty close to that. If instead they went for a more question like "unrecognized command. Did you mean 'exit()' ?" type of prompt users would react in a milder way.
In particular, choosing an imperative tone in help messages is probably not optimal.
The dutch make a strong case for the rules to follow what the people do naturally, and using design to make the correct thing the easiest one, rather than presenting a stiff ruleset and expecting people to contort themselves around it.
I don't know what a dutch programming language looks like, but i think it'd be better than what we've got now in terms of all readers and writers getting the same understanding of the same code
Python? Heh. (Not Pascal: Wirth is Swiss). And of course, Dijkstra was involved with Algol 60.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
This follows its internal rules.
A good example of why having a language that is squishy to common errors is valuable. I still understood your point even though it’s grammar wouldn’t compile.
It’s ok for things to be different.
It’s cool that I understood what you meant when you said “it’s grammar wouldn’t compile” but I would definitely expect a compiler to barf unless you entered “its grammar.”
Being frustrated that this is the case is expressing an underserved need in the market. You're aware of the limitations and have grown to be okay with them because otherwise you'd probably hate programming, but that doesn't mean we should all always be okay with them forever.
"Be liberal in what you accept, and conservative in what you send"