其他(口语)语言编码 [英] Coding in Other (Spoken) Languages

查看:56
本文介绍了其他(口语)语言编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我一直想知道的事情,在网上找不到任何提及它的地方.比如说日本的一家商店写代码,我能用英语阅读吗?还是诸如C,PHP之类的语言都有他们编写的日语翻译?

我想我要问的是,世界上每个程序员都知道足够的英语来使用与我完全相同的保留字吗?

该代码是否需要

If (i < size){
    switch
        case 1:
            print "hi there"
        default:
            print "no, thank you"
} else {
    print "yes, thank you"
}

显示与我现在所看到的完全相同的英语,或者其他非英语国家的人看到单词"if","switch","case","default","print" ,以及其他"else"语言?

编辑-是的,这很严重.我不知道一种语言的不同本地化是否具有不同的关键字.甚至根本没有不同的本地化.

解决方案

如果我理解得很清楚,实际上的问题是:世界上每个程序员都知道足够的英语来使用与我完全相同的保留字吗?"

好吧..英语不是这里的主题,而是编程语言保留的单词.我的意思是,大约10年前开始学习时,我没有英语的头绪,即使我不知道它们的含义(英语),我仍然能够通过学习编程语言来编写简单的东西.事实上,这有助于我学习英语.

例如.我知道要做一个我必须写的iteración"(当然是迭代的):

 for( i = 0 ; i < 100 ; i++ ) {}

对我来说,为",;"以及"++"代表简单的外来文字或符号.后来,我了解到"for"的意思是"para",而"while"的意思是"mientras"等,但是与此同时,我不需要英语,但是我需要的是了解"C".

当然,当我需要学习更多东西时,我必须学习英语,因为文档是用这种语言编写的.

所以答案是:不,我不知道是否,是否会等着我的母语.我看到它们是英语,但是它们对我来说并不意味着它们反过来对编程语言意味着什么.

就像bash中的switch语句:case .. esac.什么是"esac" ...对我来说,bash中switch语句的结尾.

我想这就是我们所说的抽象"

This is something I've always wondered, and I can't find any mention of it anywhere online. When a shop from, say Japan, writes code, would I be able to read it in English? Or do languages, like C, PHP, anything, have Japanese translations that they write?

I guess what I'm asking is does every single coder in the world know enough English to use the exact same reserved words I do?

Would this code:

If (i < size){
    switch
        case 1:
            print "hi there"
        default:
            print "no, thank you"
} else {
    print "yes, thank you"
}

display the exact same as I'm seeing it right now in English, or would some other non-English-speaking person see the words "if", "switch", "case", "default", "print", and "else" in their native language?

EDIT - yes, this is serious. I didn't know if different localizations of a language have different keywords. or if there are even different localizations at all.

解决方案

If I understood well the question actually is: "does every single coder in the world know enough English to use the exact same reserved words as I do?"

Well.. English is not the subject here but programming language reserved words. I mean, when I started about 10 yrs ago, I didn't have any clue of English, and still I was able to program simple things by learning the programming language, even when I did not know what they meant ( in English ). As a matter of fact this helped me to learn English.

For example. I know to do an "iteración" ( iteration of course ) I had to write:

 for( i = 0 ; i < 100 ; i++ ) {}

To me the "for", the ";" and the "++" where simple foreign words or symbols. Later I learn that "for" meant "para" and "while" meant "mientras" etc. but in the mean time I did not need to know English, but in my case what I needed was to know "C".

Of course when I needed to learn more things, I had to learn English, for the documentation is written in that language.

So the answer is: No, I don't see if, while, for etc. in my native language. I see them in English, but they didn't mean to me any other thing that they meant for the programming language in turn.

Is like switch statement in bash: case .. esac. What Is "esac"... for me the end of the switch statement in bash.

I guess that's what we call "abstraction"

这篇关于其他(口语)语言编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆