Please enable JavaScript.
Coggle requires JavaScript to display documents.
Computer Science, Code annotation- Explains what you did in the lines of…
Computer Science
Quality of code
Readability- How easy is it to read ,how you can go through them
Robustness- Unbreakable , how easy is it to crush it.
Efficiency- How much power does it use , how you make it more compact and readable at the same time
-
Portability - Use it on different websites , how accessible is it
Types of languages
Declarative languages - Language that you are using to locate the information and the system will show it to you . You are declaring the result not instructing on how to achieve it.
Example: (ML)
Imperative languages - languages that can be more readable , easier to understand and learn by people , instead of using many numbers , it uses a lot more English .
Compiled languages - Converting the code so the machine can understand it before you run it. An executable file is produced . Can be distributed and ran multiple times .
Interpreted languages- While you run it . Needs an interpreter to run . Can be ran in any environment which has the interpreter.
Code Readability
-
Naming conventions - It helps when reading the code , makes it easier for you to understand it
Indentation
The use of brackets { } , spaces between lines of codes , makes it easier to understand witch part is if from .
Paradigms
-
Procedural programming - This paradigm uses a linear top-down approach and treats data and procedures as two different entities. Based on the concept of a procedure call, Procedural Programming divides the program into procedures, which are also known as routines or functions, simply containing a series of steps to be carried out.
Event driven programming - If it detects that an assigned event has occurred, it runs an event handler (a call-back function or method that's triggered when the event occurs)
Computational Thinking
Decomposition– breaking down a complex problem or system into smaller, more manageable parts
Abstraction– focusing on the important information only, ignoring irrelevant detail
-
-
IF statements-
-
An if statement executes some code if its Boolean value is true, and it skips that code if the Boolean value is false
allows you to cover every possible remaining value without having to write millions of "if" statements.
Pseudo code
-
Loops
-
-
Do While -checks the condition at the end of the loop. This means that the statements inside the loop body will be executed at least once even if the condition is never true.
-
-
-
-
-
Code annotation- Explains what you did in the lines of code (doesn't repeat the code itself) , or it could explain what are you trying to code before coding it, commenting and coding should be done in tandem .
-
-
-
-