Live data from Hacker News

Italian Ruby

github.com

81–90 of 178 posts

Re: Italian Ruby

#81
post #71
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

As a native speaker I would never read - in context - "ometti" as little men. IE: "Se ometti un parametro...". Every language is context sensitive. Same for "moda", when I read: "moda, mediana e media..." I would never - ever - think that "moda" is, in the context, "fashion". "resto" - as used in: "Here is your change" - "Ecco il tuo resto" - would never be read as such in context. IE: the nursery song [1] "Quarantaq…

Sure they do make sense in context.

Re: Italian Ruby

#82
post #45
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

A fun one is: “throwing an error”, which can be translated in “lanciare (launch) un errore” or “tornare (return) un errore” or “causare (cause) un errore”.

"return" in this context is "restituire", so "restituire (return) un errore" .

Re: Italian Ruby

#83
post #45
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

A fun one is: “throwing an error”, which can be translated in “lanciare (launch) un errore” or “tornare (return) un errore” or “causare (cause) un errore”.

I don't understand what's you problem with "lanciare". In C++ you have the couple "throw" and "catch", like "you throw the ball and I catch it". In Italian that is perfectly translated with "tu lanci la palla e io la prendo". What's the problem with that?

Re: Italian Ruby

#84
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

You're just not used to it.

Now look at programming in English and it has the same "issues". "bug" means defect when it could also mean a little critter. "super" means the parent class? How do people know you don't mean the superlative? How does "short", "float", "long" describe numbers? You "catch" things? "map" and "dictionary" certainly aren't the things I have on my coffee table by the same name. I've heard of race being a "protected class", but not a "BeanFactory" being one.

It was always arbitrary from the start.

You're making the same mistake that beginners make when they think "ugh, English is so much more precise than this language I'm unfamiliar with!" when they are completely blind to the ambiguities of English that we take for granted.

Re: Italian Ruby

#85
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

I am appalled. " "by default". In Italian it is translated (correctly) "per difetto" " Correctly? Not at all! Please don't take as given Google Translate's translations.

Is the dictionary of Repubblica (one of the main Italian Newspapers) authoritative enough?

https://dizionari.repubblica.it/Inglese-Italiano/D/default.h...

Nowadays it is not used much, but it has been for years in texts related to IT, a reference:

http://vietatoridere.blogspot.com/2012/06/default-significat...

BTW "per difetto" is also used in legal matters to mean "in mancanza"

Re: Italian Ruby

#86
post #71
post #23

Also, sometimes, translations have a different (perceived) meaning. A pet peeve of mine is "by default". In Italian it is translated (correctly) "per difetto", and it is "fine" when other people already know the term, but otherways "difetto" is also the translation of "defect", and you will have a tough time explaining to a layman that it is not a "defect" in that other sense. Another "queer" word (I found it in the…

As a native speaker I would never read - in context - "ometti" as little men. IE: "Se ometti un parametro...". Every language is context sensitive. Same for "moda", when I read: "moda, mediana e media..." I would never - ever - think that "moda" is, in the context, "fashion". "resto" - as used in: "Here is your change" - "Ecco il tuo resto" - would never be read as such in context. IE: the nursery song [1] "Quarantaq…

I always remember “mode” as coming from “moda”, i.e. popular. The mode is the peak of the distribution, the most “fashionable” number.

Maybe it’s fake etymology, but it works

Re: Italian Ruby

#87
There's this absolutely mind bending idea that is - every single function should have a unique identifier. Which is to say:

def square(x: Int): Int = x * x

should get hashed (and if it has dependencies, they should get hashed in there, too), and your programming language should track the unique identity of this function, and keep a list of names separately from the hashes.

This totally solves the localization problem: you can just write localizations in one place, and whenever you need to represent them, use the hash to look up your representation. This lets everyone (compatibly) name their functions/variables whatever they want.

Less intuitively, it also basically removes the need for builds. Every function has a verifiable unique identity, so your compiler can tell with 100% certainty whether or not something needs to be rebuilt. When you modify a function, it changes the hash, so you end up with both the old and the new function. Any code which requires the old function can still access it.

This has been implemented in the Unison programming language (https://unisonweb.org/) which is very much in alpha. I don't know if there are other platforms implementing it.

It is so elegant and freeing. I am really stoked for the future of programming languages, when localization is just a matter of translating some words.

Re: Italian Ruby

#88

Only ~5% of Earth speaks English natively. Another 15% speak it as an nth language. I think English based programming is an anomaly that came out of the post-WWII US/UK cultural world order, and from that sustained economic boom came modern computers, languages and the internet to a mass market. 20% of the world speaks Mandarin Chinese (not all as a first language tho). And, about the same % as speak English natively…

Written English is by far the best language among the globally popular ones and the European languages because it's easier to learn due to its small alphabet with no special ligature rules, small frequently used vocabulary, and low number of word variants.

Spoken English is not so good due to complex and unintuitive pronunciation, but that's not very relevant nowadays where most media is text (and also, it would be easier to popularize a new pronunciation for English, e.g. pronouncing it as if it were Latin, than a whole new language).

Re: Italian Ruby

#89

Related stuff: * Claim that word order in Japanese suits ST-style message-passing OOP better than English: https://thoughtbot.com/blog/learning-japanese-the-rubyist-wa... * APL, a language that uses symbols instead of keywords: https://en.wikipedia.org/wiki/APL_(programming_language) * Non-English-based PLs on Wikipedia: https://en.wikipedia.org/wiki/Non-English-based_programming_... * How does English proficiency co…

[deleted]

Re: Italian Ruby

#90

I just got back into ruby after a while and I must say it feels so zen.

Indeed. I recently re-decided to default to Ruby for side projects. If you don't need to squeeze the very last drop of performance, I can't think of a more comfortable language.
Post reply on HN