DEV Community

Discussion on: Is coding a lenguage like english or portuguese?

Collapse
 
siddharthshyniben profile image
Siddharth

They are similar, as in programming is like a chat to the computer. Here's a sample:

  • You: Declare the variable x to be 10;
  • Computer: OK
  • You: Now, add a random number to x, and put it in the variable y
  • Computer: OK

The computer is very strict about your language, ie. If you make a typo, the computer will throw an error:

  • You: Dclre the variable x to be 10;
  • Computer: Error!

There is also more to code, like functions (similar to functions in math):

  • You: Declare a function called add, which takes two numbers, adds them, and returns them back.
  • Computer: OK
  • You: Declare x to be the value of calling the add function with 1 and 2
  • Computer: OK (x will be three)

So you can consider programming a superset of languages? Maybe, I'm not sure.

There is much more to know, but this should give you a basic idea about this.