Since I have a been 13 years old I have been interested in programming.
I don't have an education directly as a software developer, I am hardware developer this means that I design and devlop microchips.
But I like to automate my work via software.
The reason why I write this post is that I would like to help other to learn to program.
Ok. How to do start programming if you are new to programming.
They are a lot of program langued to choose from.
Just to mention some of them Algol, Cobol, Fortran, Forth, Modula 2, Basic, Pascal, Comal 80, awk, perl, java, bash, tcl, python, javascipt, C, C#, C++, D, F#, Haskell, Lisp, Prolog, Objective C, Solidity.... and and and
This just forms my to of my head but they are much more.
Ok. Where do you start to learn to program?
Yes. This very much depends on what you want to do.
The Different program language has different strength.
This also depends on which platform you are running on and the speed and development time you.
But if you want to program for the Internet it is of cause Javascript which is the prime language.
I use to think that javascript was a stupid half done language.
So I did not want to waste time on it. But the language is the language used by most people.
And it drives all internet browser today.
So javascript is a good place to start.
Here I will show a function which calculates X to the square.
This means if you put in 2 it will return 4 so 2 times 2.
var sqr = function(x) {
return x*x;
}
var y=sqr(2);
// the variable y becomes 4
Javascript is what is called a C like a syntax.
The same program in C would look like this.
double sqr(double x) {
return x * x;
}
int main() {
double y=sqr(x);
}
I ma using D. When I write hard metal code
In D the same program could look like this.
module Sqr;
T sqr(T x) {
return x * x;
}
void main() {
auto y=sqr(2.0);
}
So you can see the language looks a like.