piglet
Posts: 63
Nickname: piglet
Registered: Dec, 2005
|
|
Re: English-centric Programming Languages vs DSLs
|
Posted: May 8, 2006 4:09 PM
|
|
I am glad English has become the standard for programming languages. I find the english syntax to be simple, concise, and logical. If you compare the same text in different languages, the english version is always the shortest. For programming, as for other kinds of technical/scientific communication, short and simple is preferable as long as you don't lose precision.
English has abandoned most grammatical verb and noun forms, without losing precision. English hardly cares about grammatical gender. The english grammar has many nice constructions combining succinctness and expressivity. And of course words tend to be short, due in part to the lack of endings. I like program code that can be read like natural language, thanks to the use of explicit, unabbreviated names for language constructs. This is hard to imagine, say, in German. Compare:
English: add, sort, copy, close, clear, save, get, set
German: hinzufuegen, sortieren, kopieren, schliessen, freimachen, sichern, holen, setzen
French: ajouter, trier, copier, fermer, effacer, sauvegarder, obtenir, fixer
(Some of these translations do not convey the exact meaning, e.g. set and get, so crucial in OO programming, don't have adequate counterparts in German and French.)
German-speaking programmers usually code in English. I am curious how natives of other languages handle this. In Québec, the standard is to code in French, especially in the administration. The results of this policy are not beautiful. French doesn't lend itself well to programming. The accents are an issue. Without the articles, it sounds wrong. You can't group nouns together, as in "data base column name". You have to say "nom de colonne de (la) base de données". Try this: obtenirNomDeColonneDeBaseDeDonnees(). And imagine that this has to coexist with language constructs based on English. In Java, you have the keywords in English, you have to observe the get/set convention, you make extensive use of libraries that are all designed in English. You simply can't combine this with another language without producing gobbledygook. It is an abuse, an insult to both languages. It may however have the advantage of making outsourcing to India more difficult ;-)
|
|