Thinking In Code.
Abraham J.
Angular Developer | React Developer | Android Developer(Jetpack Compose | Kotlin) | Backend Developer(Nodejs, Nestjs)
What is a code?
According to Wikipedia
Code is a system of rules to convert information— such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret.
This definition above is a short one.
In this article, codes of discussion are Computer Programming Language codes. e.g, Python, JavaScript, C#, C++, Java, etc.
Computer Programming Language is?a means by which programmers (developers) communicate with computers. Programming languages consist of a set of rules that allows string values to be converted into various ways of generating machine code, or, in the case of visual programming languages, graphical elements.
Why Thinking in Code is important in the Programming world?
Every Idea is a product of imagination that comes from our surroundings and goes to our heart and determines if we care about it. If we do, it is transferred to the brain for processing and the brain transfers it to the necessary nerves for us to take action. Now what does thinking in code have to do with this, this same process works for developers, programmers, software engineers, etc.
Computer programmers do not think the way random people do. Their thoughts are based on how to break down the problem or idea in order for a computer processor to understand in code (which is closely similar to the language the computer understands)
Software developers in general break down problems not only for computers alone, in general, but for themselves and other developers through the process of Flowcharts, Pseudocode, commenting, and documentation.
Flowchart: flowchart explains the necessary steps of solving a particular problem in diagrams.
Pseudo code: is a pre-code programming language not for the computer but for the developer or others. it explains the process in English-readable codes that even someone with no programming experience can comprehend.
Commenting: this is a way of leaving a short note that explains what a snippet of code does and how it should work.
Documentation: this is documenting the whole project and code at a large scale, it is a manual on how to work with the code, program, or library.
领英推荐
What you should know to think in code effectively.
Statement
A statement is?a group of expressions and/or ideas that you design to carry out a task or an action.
Expression
An expression is simply a process that generates a value.
Variable
A variable is a placeholder or a container, that holds a value to be used and reused
Data Type
A data type determines the type of data the computer is working with, and we have two categories of data types, primitive type, and user-defined type.
Control Flow
Control flow is the order of executing of the code either conditionally or repeatedly, e.g if-else, for, and while loops.
In Conclusion
Every program developer thinks differently in terms of problem-solving but thinking in code is the baseline for writing a task for a computer to carry out. Having this in mind will help improve cognitive reasoning about how the program should behave.
Have you ever experienced sitting down and thinking in a logical manner using an 'If-else' control structure?