top | item 31281841

(no title)

tsupiroti | 3 years ago

> The logic of most prominent programming languages, such as Python, is based on English vocabulary and syntax — using terms like “while” or “if not” to trigger certain actions — which makes it that much more difficult to learn for non-native speakers. Furthermore, many of the most popular educational resources for learning to code, including Stack Exchange, are also in English.

It seems to me that the latter is a much bigger problem for Spanish. Programming languages have relatively few keywords. I imagine English keywords might be a big problem for people who doesn't know the latin alphabet though.

discuss

order

pfortuny|3 years ago

“If not” (i.e. else) translates to “si no”. Imagine finding that in a line of code… You need a tilde “‘“ to say “yes” (sí) but… are you really going to introduce keywords with accented chars?

pvaldes|3 years ago

"si no", is a clear spanish construction. Everybody understands its meaning and it does not need a tilde.

You could use "otro" (=another, =different) also, that is even shorter, has the advantage of being a single word instead two, and is used routinely in dichotomic keys.