Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Major programming languages think it's perfectly sufficient to let everyone sound like Yoda.

To be fair, I snoozed through sentence structure in English class. It wasn't until I was trying to conjugate verbs in another language that it became concrete for me and I had to understand it.

If you have a DSL that retains order of the arguments, you're gonna have a bad time. Full Yoda mode engaged. If you have one that allows named interpolation, you'll sound less dumb. If you have one that allows conjugation, better yet. But at the end of the day there are languages that use different adjectives or number systems[1] based on the object or direct object of a sentence, and so you might not be able to substitute "apples" "people" and "files" interchangeably into the same template, even if you can do things like differentiate "There is 1 file in this directory." from "There are 3 files in this directory." without having to build a Cartesian product of all combinations.

1) In Japanese there are different words for counting different things, but Arabic numerals are acceptable, so you can leave it to the reader to determine which word to use. I don't know that this is true in all other languages with discrete counting systems.



Last time I worked with a product that had translations, we very quickly centered on needing to just translate the whole phrase. And we were only doing a couple "boring" European languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: