English code

English is perhaps the only one suitable for writing code. The words written on it are relatively short and almost do not change shape depending on the context. But the main thing is that feature that in English the imperative mood of utterances differs little from the indicative. This is important because in the paradigm of object-oriented programming, the name of the method refers to the behavior of the entity, and according to the device of dynamic languages, a method call is sending a message to the target entity, which decides what to do with it. Consider this with examples:



imperatively order



 -> 
      
      





or declare behavior



 .()
      
      





even the infinitive option looks like a noticeable Native American accent



 .()
      
      





while in English both the one and the other will be written as



 mailClient.receiveMessages()
      
      





therefore, the code that is written in national languages โ€‹โ€‹almost always looks like โ€œshitโ€ in the eyes of the beholder, and in English there is a chance that it will be accepted with complacency no matter what paradigm each programmer thinks.



All Articles