
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: Uncategorized
Subroutines, Functions, Methods
Most, if not all, programming languages allow you to create subroutines, functions, or methods, all of which follow the same principle. You can think of them as blackboxes that contain source code to perform a specific task. For example, you … Continue reading
Posted in Programming Essentials, Uncategorized
Tagged c, function, method, parameter, return value, source code, subroutine, variable
Swapping Variables
Many algorithms, including the worldfamous Euclidean, require to swap the values of two variables. So you probably know the following principle. int x = 8; int y = 123; int tmp = x; x = y; y = tmp; However, … Continue reading
Posted in BitTwiddling, Information Theory, Uncategorized
Tagged bittwiddling, c, logic, variable, xor
A Beginner’s Guide to Object Oriented Programming (1)
What’s so fancy about Object Oriented Programming? Computers have been invented to help realworld people solving realworld problems, even though it seems today that computers actually contribute problems to the real world. Since a plain computer doesn’t know anything about … Continue reading
Posted in Programming Essentials, Uncategorized
Tagged java, Object Oriented Programming, OOP
1.61803398…
In order to declutter my website at school I decided to move all explanatory content over to this blog. I decided to start with an interesting number I have been using in some of my programming assignments. This magic number … Continue reading
Posted in Math, Programming Assignments, Uncategorized
Tagged assignments, Golden Ratio, Math
Yet another “trick” that isn’t really a trick …
In my attempt to answer a question during my lecture this afternoon I typed in a quickanddirty program that was supposed to illustrate what I was saying. In the program I had to pass a variable number of struct pointers … Continue reading
Posted in Pointers, Programming Essentials, Uncategorized
Privacy on the Internet? (nontechnical)
Last week I had a lengthy discussion with a friend about privacy issues pertaining to social networks on the Internet. Privacy and social networks? The longer I think about it, the more I believe that our society must be sick … Continue reading
Posted in Nontechnical, Uncategorized
Tagged internet, nontechnical, social
The XFactor (OR The Power of XOR)
Once upon a time, a girl (noncomputer scientist) had bought two pieces of cake for coffee. She asked her nerdy boyfriend: ‘Do you want this one or that one?’ He said ‘Thanks!’ and he quickly moved both pieces onto his … Continue reading
Posted in BitTwiddling, Uncategorized
Tagged bittwiddling, logic, masking, xor