Moderators: phlip, Moderators General, Prelates
http://en.wikipedia.org/wiki/DSV_Alvin#Sinking wrote:Researchers found a cheese sandwich which exhibited no visible signs of decomposition, and was in fact eaten.
εξετάζωσ("%σ", δσει);scanf("%s", pstr);Look at it from the point of view of what the code on its face says you're doing. If I read a while loop in code, for example, I see "while this condition is satisfied, do this." I imagine that's where they got their name.ahammel wrote:Even a native English speaker has to translate the concept of "while" in C code into something like "check if the condition returns something that isn't a zero, execute the code in the block and then take it from the top". That has only a passing similarity to the concept of "while" in English, so I don't know how much cognitive load it would add if, instead of "while", the keyword was "grest" or something. I imagine it would be much harder if you had to learn a new alphabet as well.
starslayer wrote:Look at it from the point of view of what the code on its face says you're doing. If I read a while loop in code, for example, I see "while this condition is satisfied, do this." I imagine that's where they got their name.ahammel wrote:Even a native English speaker has to translate the concept of "while" in C code into something like "check if the condition returns something that isn't a zero, execute the code in the block and then take it from the top". That has only a passing similarity to the concept of "while" in English, so I don't know how much cognitive load it would add if, instead of "while", the keyword was "grest" or something. I imagine it would be much harder if you had to learn a new alphabet as well.
ahammel wrote:Unix users grep and cat away with no problems, and how many people could figure out what those do just from the name?
ahammel wrote:There are plenty of analogous situations in computing, now that I think of it. The Lisp commands car and cdr have their origins in English phrases, but I'm sure most Lisp hackers are perfectly happy to use them without knowing what the phrases are.
Proginoskes wrote:'scanf("%s",xpr);' looks like English to you?
void fillWithCake(Mouth *mouth, Cake *cake)
{
while (!mouth->isFull()) {
mouth->insert(cake->getNextPiece()); // assume everlasting cake
}
}
void fuellenMitKuchen(Muend *muend, Kuchen *kuchen)
{
while (!muend->istVoll()) {
muend->einfuegen(kuchen->beckommenNaechsteStueck()); // der Kuchen ist ewig
}
}
maafy6 wrote:Same reason why we own the moon - we Americans got there first.
maafy6 wrote:
- Code: Select all
void fillWithCake(Mouth *mouth, Cake *cake)
{
while (!mouth->isFull()) {
mouth->insert(cake->getNextPiece()); // assume everlasting cake
}
}
than this
- Code: Select all
void fuellenMitKuchen(Muend *muend, Kuchen *kuchen)
{
while (!muend->istVoll()) {
muend->einfuegen(kuchen->beckommenNaechsteStueck()); // der Kuchen ist ewig
}
}
public ActionResult Login(LoginViewModel model, String returnUrl)
{
if (ModelState.IsValid)
{
if (Accounts.Login(model))
{
if (Roles.IsUserInRole(model.Username, "Admin"))
Info.Log("Admin logged in");
if (Url.IsValidUrl(returnUrl))
return Redirect(returnUrl);
else
return RedirectToAction("Index", "Home");
}
else
ModelState.AddModelError("", "The username or password provided is incorrect");
}
return View(model);
}
http://en.wikipedia.org/wiki/DSV_Alvin#Sinking wrote:Researchers found a cheese sandwich which exhibited no visible signs of decomposition, and was in fact eaten.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Dopefish wrote:I'd generally assumed that all the code/academic stuff I've read was in English was because I was looking for such, but if you were in china and spoke mandarin you'd have just as many papers/code available to you in mandarin, and hence there would be no more incentive to learn English then there is for English speakers to learn Mandarin. Is this not the case?
Not to mention all the standard libraries and associated documentation.Shivahn wrote:I was initially going to say that it wasn't like you had to learn too much English to code (e.g., "int x=15;" is not something that takes orders of magnitude more effort for a Russian coder to use than an English one), but then I saw people talking about exceptions and such and realized that for a lot of stuff, it does kind of suck if you don't speak English.
Dopefish wrote:Indeed, it is rather convenient for native English speakers, but I've always been uncomfortable with the idea that theres something special about (spoken) language <x> so nonspeakers of <x> will just have to deal with it and learn <x>.
The fact that non-English people typically code and furthermore comment in English comes as a bit of a surprise, since it means they really do need to essentially learn the language to at least a functional level, even if they're not fluent. If I had to learn to code with foreign keywords, that might be doable, but I'd just be figuring out what symbol/sequence of symbols gives me the expected behaviour (e.g. a while loop, or an if statement), and memorising that, rather then actually learning the language, and go on using english comments/variable names. Actually learning a language would be too big a barrier for me (as a monolingual) I think.
ryan7113 wrote:I don't know about you guys, but I wrote a module (I use python) that makes all of the functions into different words. print() is now banana(), input() is now dinosaur(), etc. I'm not sure about different languages, but it sure makes coding a lot more fun.
ahammel wrote:Right, but the English sentence "while this condition is satisfied, do this" is highly ambiguous. I know that it means "check the condition before starting the loop, and every time a loop terminates", but I had to learn that. A novice coder could easily think that it means "check the condition after every line" or "check the condition continually" or "do this block of code once, unless the condition stops being true"
Users browsing this forum: No registered users and 6 guests