Coding
Coding
High-level computer programming languages have similar syntax, semantics, and terms
as natural languages. For example, statements that contain the English words 'print', ‘if’,
'input', and 'while' are common in Python programming statements.
Machine level languages use machine-specific syntaxes, codes, and binary numbers. This
illustration shows the difference between high-level languages and machine code.
What is coding?
Coding or computer programming involves creating step-by-step instructions that have a
logical structure. Inputting these instructions means a computer can execute a program, or
a compiled set of programs, called software applications.
When you write a computer program using a high-level language like Python, you are
instructing a computer what to do for a specific purpose. This instruction is then
translated into machine codes and binary bits of information by the computer. Although
you can use ready-made and user-friendly applications to do certain tasks, there are many
cases when you’ll need to customize your programs or software applications, or even
develop your own.
For instance a light sensor normally is a light sensing device, for instance a photodiode, that
generates a voltage signal that can be read from a microprocessor using some form of Analog
to Digital converter. (A/D).
Another example is temperature sensors that, for instance in the PT100 type, transform the
temperature change into electrical resistance change that can be measured using a bridge that
ends into a voltage signal, like before.
One more example is Geiger tubes that measure ionizing radiation. In this case measurement
is carried out counting the pulses, so the sensor generates directly a digital signal that, to
some extent, can be counted using a hardware or software counter.
Control System
A Control system is a system or a set of devices that manages command and directs the
behavior of other devices or systems. It works on the principle of the input-process-output
cycle. since the output is controlled by varying input. They are widely used in electronics,
automation, and engineering.
It is made up of three components mainly: sensor, controller, and actuator. Here the
sensor senses physical characteristics such as pressure, and temperature and converts them
into an electrical signal and it generates an output signal which is used to control the
actuator.
Rather than focusing on the execution of statements, functional languages focus on the output
of mathematical functions and evaluations. Each function–a reusable module of code–
performs a specific task and returns a result. The result will vary depending on what data you
input into the function. Some popular functional programming languages include:
Scala
Erlang
Haskell
Elixir
F#
This type of language treats a program as a group of objects composed of data and program
elements, known as attributes and methods. Objects can be reused within a program or in other
programs. This makes it a popular language type for complex programs, as code is easier to
reuse and scale. Some common object-oriented languages include:
Java
Python
PHP
C++
Ruby
4. Scripting languages
Programmers use scripting languages to automate repetitive tasks, manage dynamic web
content, or support processes in larger applications. Some common scripting languages
include:
PHP
Ruby
Python
bash
Perl
Node.js
Linux operating system is the primary choice for those who prefer open-source software [1].
Familiarizing yourself with Linux can be useful for someone who is interested in learning
scripting languages.
5. Logic programming languages
Instead of telling a computer what to do, a logic programming language expresses a series of
facts and rules to instruct the computer on how to make decisions. Some examples of logic
languages include:
Prolog
Absys
Datalog
Alma-0