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

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

问题描述

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

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?

这个代码:

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"?

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?"

嗯..这里的主题不是英语,而是编程语言的保留字.我的意思是,当我大约 10 年前开始工作时,我对英语一无所知,即使我不知道它们的意思(英语),我仍然能够通过学习编程语言来编写简单的东西.事实上,这有助于我学习英语.

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++ ) {}

对我来说,for",;"和++",其中简单的外来词或符号.后来我知道for"的意思是para",while"的意思是mientras"等等,但同时我不需要懂英语,但就我而言,我需要的是知道C".

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.

所以答案是:不,我看不到我的母语中的 if、while、for 等.我看到它们是英文的,但它们对我来说并不意味着它们对编程语言的任何其他含义.

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.

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

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天全站免登陆