We all know the task of programming in computer science. But there are still so many interesting and funny facts about Programming and programmers which are known by a few people. In this article, I will be sharing 10 interesting facts about programming which will help you to know more about programming.
10 interesting facts about programming
1. There is a thing called “Constant Variable”.
My teacher asked me one day, What do you mean by “Variable”? I said: the value of a variable can change within a program. The other asked, What do you mean by “Constant”? I said: the value of constant can’t be changed. Another question was, What do you mean by “Constant Variable”.
2. A parent can kill its children if no longer needed.
Such an evil concept. How the f*ck a parent can kill its children when if the task assigned to them is no longer needed.
3.The root is at the top of the tree.
Anything can happen in programming and here is the example. The first and the top element of a tree is Root. Well.
4. ‘=’ != ‘==’
It has been a big confusion for a beginner. How an equal to is not equal to equal to.
5. That ‘dead moth’
The first actual computer “bug” was identified in 1947 as a dead moth. It was stuck in a Harvard Mark II computer. And now the generation of dead moth is living in the form of 0 and 1s.
6. Ctrl C, Ctrl V, and Ctrl-Z have saved more lives than Batman.
Yes, Batman, it is true. The amount of copied code is hundred times more than typing a code. The Ctrl-Z is better than a time machine.
7. Programming and coding are not the same.
A coder is clearly instructed on what should be done and what needs to be accomplished. But as a programmer, you must be able to imagine a broad set of solutions to a problem before you even start writing codes. A programmer is a coder but a coder may not be a programmer.
8. Who Invented Java, and when?
James Gosling, at Sun Labs, around 1992; the group was building a set-top box and started by “cleaning up” C++ and wound up with a new language and runtime.
9. PHP wasn’t Meant to be Programming Language.
Lerdorf, the PHP founder, has never intended for PHP to become a programming language for the world. He had created the language, or interface at the time, for the purpose of managing his personal website.
10. The first programmer was a lady.
Can’t a girl code? The first ever programmer on this earth was a female, named Ada Lovelace. She was a writer and gifted mathematician and the first woman to devise an algorithm that could be processed by a machine.
11 Comments
A typical variable issue with constants is related to Fortran kind of parameter passing: Call by reference:
int FTNroutine( int *i) {
*i = 2;
return *i;
}
Include this is code: i = FTNroutine( &j ); or in FORTRAN as j = FTNroutine(1)
Now you have made the constant 1 to 2, and it is really up to the compiler to limit the damages.
The double up assignment relates to Algol / Simula, before that, assignment and comparison was the same operator. In C, Kernigan and Ritchie got the point “=” is an assignment, just as “:=” in Simula/Algol, and “==” is the comparison. While Algol/Simula demanded comparison only in a condition, C allows the mix of assignment and comparison. Bjarne Stroustrup defined C++ and made a huge error in allowing to many construction modes. He introduced a lot from Simula because he had full visibility to the work that was ongoing with making “Beta” – the system programming language to Simula. Java corrected some of this to reduce memory leakage and simplify memory management. Maybe it is time to relaunch Simula.
I think programming is the most difficult thing in the world , i have failed C++ for three times in my engineering career :p but still i really want to invent something by programming, and i found your work very informative 🙂
Try out D lang. It is like C++ and very cool. 🙂
first coder wasn’t a lady , stop that lie . we don’t have any evidence to prove that .
was thinking the same thing dunno where people got that shit from
That’s true she was the first programmer.
And to our surprise she wrote programs for a machine(Analytical Engine) which was not even invented in her times.
Charles Babbage designed Analytical Engine but the actual implementation was done years after they both deceased.
Even today programmes are being written for machines that don’t exists. 😉
yeah.. not a coder.. She was a programmer and very good one too. She wrote programs for non-existing computer and they worked! She was a first human to make a program (an algorithm written in computer language).
Funny. Thanks
Cool brief wasn’t it?
ebi u dont swear 2nd of all **** u
No doubt programing is very difficult to under stand (for me) but i like it and trying to undestand it properly