-
Application of bitwise operators in JavaScript
First of all let us revise what bitwise operators are and why you should comprehend them in 2017. Bitwise operators are operators that work on a bit or two bits (comparing them and giving a result based on the comparison) at a time. AND ( & ) will be 1 only if both of the…
-
Programming every day usage differences PART 2
Difference between name-spaces and classes? Namespaces represent scopes {} where variables, classes, structs and other types reside. Classes are just types which also have to reside inside of a scope and this scope is called namespace. If you want to look at it as a hierarchy, namespaces go first here after that all the other elements/types go,…
-
Understanding image rendering (digital image theory)
– When we come close to the TV for example, we can see the little squares. These squares are actually pixels if we then approach really close to a smartphone e.g iPhone 4s we will see that we can’t actually see these little squares or maybe we can but with trying really hard. From this,…
-
Programming every day usage differences PART 1
Difference between methods and functions? When talking about object oriented programming (OOP) then we are using methods. Methods are defined inside of classes. Every “method” defined outside of a class is called a function. Java is a typical example where functions do not exist since Java is OOP. In C++ we both have functions and…
-
Stack vs Heap
I’ve read lot of articles on-line prior on posting about this topic. I will try to combine various articles which talk about it and try to explain it in an interesting and comprehensible manner. I believe everyone who’s starting or has programmed for some amount of time without looking at the theory too much, has…
-
Pointers (playing with pointers in C)
When I started programming (first language in use:C#) I new that pointers existed but I haven’t really had the time to tackle that field although I really wanted to, but somehow ignored that for a while. In C# I didn’t need pointers for anything, you could to everything without them. Later when I was helping…
-
Garbage collector
Taken from wikipedia, url: https://en.wikipedia.org/wiki/Garbage_collection_(computer_science) “In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program” The above definition says all. If you are not dealing with the actual memory in…
-
Strings, Objects (immutability)
Topic includes immutability literal string methods/functions value type reference type object class verbatim string Today I’ll discuss what does the heading above mean and why it is important or maybe it isn’t? When anybody starts to program the first thing that will come up to him are strings. Strings are EVERYTHING in programming, you can…