News for hackers. Stuff that matters.
Re:Show HN: Programming in non-English languages by czechdeveloper on Monday June 08, 2015 @02:59AM (#9677588)
I'm not native English speaker, but I wish people would just accept that English is Latin of computers.

I still have to come to servers installed in German or French and guess by memory where stuff are.

Re:Show HN: Programming in non-English languages by timonoko on Monday June 08, 2015 @03:36AM (#9677666)
It is really horrible when local civil servants start to invent translations for English words, which did not mean anything computer-related to begin with. Like Spool and Cache and Cookie. Why cant browser's Cookie be just Cookie, it is easy to vocalize in any languiage. Why they want to translate Cookie into local bakery term? It does not raise level of comprehension any.
Re:Show HN: Programming in non-English languages by blowski on Monday June 08, 2015 @05:23AM (#9677992)
Partly because 'cookie' requires the latin alphabet, and the ability to pronounce those sounds (it's not as easy as you think). If you're trying to avoid dilution of your language, you may want to come up with your own localised words.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @06:03AM (#9678093)
> dilution of your language

Let me guess, you're french?

Re:Show HN: Programming in non-English languages by blowski on Monday June 08, 2015 @06:42AM (#9678180)
Nope, British. But I'm interested in linguistics, and how English affects other languages and the communities that speak those languages.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @07:42AM (#9678328)
I don't see how this is a bad thing though. The more cultural and linguistic bonds there are between nations, the happier everybody gets. More empathy, less war, easier trade, more friends and more options for living and working wherever you like.
Re:Show HN: Programming in non-English languages by blowski on Monday June 08, 2015 @07:54AM (#9678364)
Personally, I think there are advantages and disadvantages. The big disadvantage is that small communities which have high social cohesion get squashed by the larger community, which leads to resentment and bitterness. In the UK, we see this with Scotland, Wales, Cornwall, Scouse, Geordie, the Black Country, etc. They have all been squashed by 'Estuary English' (although some are making a resurgence).

Online communities (including StackOverflow and Hacker News) do much the same thing by putting rules in place about how people talk with each other. When people break those rules, we get upset, because we see those breaking the rules as 'outsiders' and a threat to the community.

I believe that language can have much the same effect. When English comes in, it often results in people forgetting local mythology, songs, rituals, etc, as a result of forces like Hollywood and Simon Cowell. The community withers and is replaced by the great 'meh'.

Re:Show HN: Programming in non-English languages by darklajid on Monday June 08, 2015 @05:15AM (#9677977)
I agree. Localization is nice for end users, but I really don't get localized servers, localized .Net errors etc..

People argue that newcomers need to learn 'two things at a time', English and programming. I think that's absurd. No programming language (cue the COBOL people complaining?) is remotely similar to English, the language. Keywords are limited and it's a very foreign way to talk to a machine. Not a language in which you're going to ask where the next loo is.

You might recognize some of the things you had to type to make your name show up in an endless stream on the screen as words when you learn English as a foreign language. Fun moment. But until then, this is really just painting buttons in green instead of red.

I think the idea of that project is neat, interesting. But I don't believe that this is a good way to do things and I cannot imagine that I'd use something similar when my kids are old enough to start exploring this field.

Re:Show HN: Programming in non-English languages by patrickg on Monday June 08, 2015 @03:41AM (#9677685)
Teaching programming to my 8 year old is a burden, because everything is in English. Teaching two things at a time is more difficult than it has to be.
Re:Show HN: Programming in non-English languages by giancarlostoro on Monday June 08, 2015 @05:06AM (#9677953)
A lot of the best programmers I know are foreigners, and they learned English and their respective programming languages side by side. It is a lot more useful to know English to search and ask for programming help in, than to seek help from natives of your language whose skill set may be very minimal and may not be of any use, or worse, they may suggest poor programming practice.
Re:Show HN: Programming in non-English languages by patrickg on Monday June 08, 2015 @08:25AM (#9678488)
You did read that I was talking about an 8 year old kid who is learning the words "clothes" and "red" in school? Still a few years to go to ask for and look for programming help in English.
Re:Show HN: Programming in non-English languages by giancarlostoro on Monday June 08, 2015 @04:12PM (#9682050)
A lot of programmers I know start young, maybe not that young though, my apologies. I know people who started at age 12 or so. I started looking at programming maybe at 11 years of age or 10, I didn't get anything till years later, it takes time and practice.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @03:55AM (#9677732)
Kids learn languages a lot better when they have a use case, so I'd argue that teaching them english at the same time as teaching them programming, is actually beneficial.

And let's face it, the vocabulary of programming languages is tiny.

Re:Show HN: Programming in non-English languages by philh on Monday June 08, 2015 @05:07AM (#9677956)
This feels like a case of, if we all got hit on the heads with baseball bats every week, people will start to extoll the benefits of getting hit on the head with baseball bats. It builds character! And it's not that painful!
Re:Show HN: Programming in non-English languages by patrickg on Monday June 08, 2015 @04:06AM (#9677775)
While I agree to the use case / tiny arguments, it doesn't seem to work in practice. I am now using Scratch (https://scratch.mit.edu/) to teach programming. Much better.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @04:26AM (#9677845)
Scratch has the advantage of making the limitations of the computer tangible. The block nature will show you what can be done and what can't. For example, newbies in procedural languages often try things like

if(something){loop = while} else {loop=if} loop{print("hi")}

and it's not immediately obvious why that isn't valid in text, while in scratch it is.

I don't think its the language though that makes things easier.

Re:Show HN: Programming in non-English languages by lmm on Monday June 08, 2015 @05:04AM (#9677948)
> if(something){loop = while} else {loop=if} loop{print("hi")}

The only reason that wouldn't work is bad language design. In e.g. Smalltalk or TCL it's fine.

Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @05:49AM (#9678054)
Thats not relevant to the point. And even smalltalk wouldn't allow this, without reflection, since method handles aren't really first class objects.
Re:Show HN: Programming in non-English languages by lmm on Monday June 08, 2015 @05:58AM (#9678081)
It is exactly the point: the problem is real, but you don't have to throw the baby out with the bathwater. Instead you can use a simple, homoiconic, but still very "real" programming language for teaching.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @06:15AM (#9678117)
> homoiconic

I don't think it means what you think it means.

Re:Show HN: Programming in non-English languages by lmm on Monday June 08, 2015 @06:30AM (#9678154)
It's not strictly what I mean, but in practice there's a close correlation; homoiconic languages naturally lend themselves to metaprogramming and so it's more normal to implement e.g. control flow as ordinary functions in the language (where they might be dedicated syntax in other languages). But yes, I really mean a low-syntax language, and they're not all homoiconic.
Re:Show HN: Programming in non-English languages by raverbashing on Monday June 08, 2015 @04:27AM (#9677846)
Really?

I just memorized things. And they'll learn a little bit of English

They don't need to know what 'if' means, they just need to learn "you use if to do this"

(Now, to be fair the docs were in my native language, that helped a lot)

Re:Show HN: Programming in non-English languages by Dewie3 on Monday June 08, 2015 @03:57AM (#9677737)
If you were curious about learning the guitar, would you first purchase the best 10,000$ guitar you could find at your local shop? No; you'd find some cheap guitar to play on initially to see if you could actually make a habit out of practising the guitar. Now if it turned out that you didn't like it, you have minimized your financial losses.

Similarly, some people don't know English. Maybe they're curious about programming. Should they have to learn a whole new language first? Or be distracted by the fact that the foreign programming language they have to write is also written in a foreign natural language?

I'm not sure I even agree with your premise. It's a bit premature to worry about having to interact with code written by people that are just learning programming, isn't it? Like anything, when you empower people to learn things like this you have to trust them to have the decency to write programs in English in settings where there might be other people who don't speak their language that have to deal with their programs. Or trust that they wouldn't be hired for such jobs in the first place.

> I'm not native English speaker,

And? Does that give your argument more weight?

Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @04:06AM (#9677778)
> And? Does that give your argument more weight? Yes because he is potentially one from the target audience of this.

If somebody isn't willing to put in the tiny bit of effort to learn the tiny bit of english required for programming, they're not willing to put in the huge amount of effort that is required to learn programming anyways.

We have enough horribly documented code that needs maintenance, there is no need to add horrible documentation in hundreds of languages.

Re:Show HN: Programming in non-English languages by Dewie3 on Monday June 08, 2015 @05:25AM (#9677999)
> Yes because he is potentially one from the target audience of this.

No, because he already knows English.

The proclamation "We should tax the rich less" is a self-serving sentence whether it comes from someone who was born into wealth, or it comes from someone who became rich later in life.

> If somebody isn't willing to put in the tiny bit of effort to learn the tiny bit of english required for programming, they're not willing to put in the huge amount of effort that is required to learn programming anyways.

I think you're coming from the viewpoint of "what would I do to learn programming if I had started from scratch today". But like I've argued, this is not a good view of the process of learning to program! It's more like you are vaguely interested in some discipline or skill, or might need it for something, and so you want to dip your toes in it. You have no idea whether you will like it or not, or how far you will take it. To put up all these demands -- what they should learn and focus in order to in time become your ideal programming colleague -- is just too much to demand of someone who is just exploring a new world to them and don't know where it will take them, if anywhere. How about they learn to actually put things like for-loops, if-statements and such together, before you demand that they should embody all the skills to write great documentation, use best practices, and whatever else?

Just think of all the different things that are "bad practices" that even experienced developers can manage to do with a clear conscience. You can't pick one aspect and demand that a green programmer should have the personality and disposition to know beforehand that such things are "bad practices". People can learn and change.

But why even bother. These topics just devolve into downvote/upvote battles.

Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @06:01AM (#9678088)
> No, because he already knows English.

And he didn't have to learn it at some point?

My english was pretty much nonexistent until I picked up programming.

Like I said below, nobody is arguing against beginner languages/tools like scratch and logo that could essentially be programmed in emoji, for what it's worth.

But people are arguing against "real" programming languages being translated, because that's a waste of everyones time.

Re:Show HN: Programming in non-English languages by gear54rus on Monday June 08, 2015 @04:29AM (#9677852)
> Should they have to learn a whole new language first?

No. That's the difference between this and the guitar: you can't buy a few bits of guitar. But you can learn words like 'print', 'var' or 'for'.

I'd steer this more into the land of 'manhours spent localizing are manhours wasted' rahter than

> to worry about having to interact with code written by people that are just learning programming

Re:Show HN: Programming in non-English languages by lmm on Monday June 08, 2015 @05:07AM (#9677957)
A non-English programming language is more like buying a Keytar so you can get the feel of playing guitar without having to learn something different from the piano. It's not terribly useful, and if you decide you actually want to pick up the guitar you'll just have to forget everything you've learnt and learn it all again.
Re:Show HN: Programming in non-English languages by Dewie3 on Monday June 08, 2015 @05:28AM (#9678013)
Logic, imperative programming etc. is not tied to any natural language. You wouldn't have to relearn the same concepts at all.
Re:Show HN: Programming in non-English languages by j-pb on Monday June 08, 2015 @05:56AM (#9678075)
Then why choose a "real programming language" anyways? Go with something like scratch, or something that uses symbols to program tiny machines, like half a dozen iOS games.

"Real" programming languages aren't suited for beginners because error messages are usually to cryptic and should contain hints how to solve the problem.

Re:Show HN: Programming in non-English languages by czechdeveloper on Monday June 08, 2015 @07:35AM (#9678302)
> And? Does that give your argument more weight?

I'm likely to have to live with results of this. I already do to some extent.