-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: Programming Essentials
Let’s make the stack explode in Java!
In one of my lectures about memory management in Java, I was looking for a quick and simple way to demonstrate the influence of local variables on the stack memory usage. So what came to my mind was this: Local … Continue reading
Posted in Java, Programming Essentials
Tagged java, memory management, runtime environment, stack, stack overflow, virtual machine
Comments Off on Let’s make the stack explode in Java!
A simple way to obfuscate string literals
By Andre M. Maier While I was sitting in a doctor’s waiting room last week, it occurred to me that I could send out a geeky holiday greeting to my younger programming students. Naturally, as a teacher, I wanted to … Continue reading
Posted in Information Theory, Java, Programming Essentials
Tagged characters, education, java, obfuscation, programming, strings
Comments Off on A simple way to obfuscate string literals
Let’s make the heap explode!
This blog entry is dedicated to those who teach computer science at high schools and vocational schools. In one of my Java programming classes, only few of the students showed up. It didn’t seem to make sense to continue with … Continue reading
Posted in Java, Linux, Programming Essentials, Uncategorized
Tagged efficiency, garbage collection, heap, java, memory, Object Oriented Programming
Comments Off on Let’s make the heap explode!
Pointers and References – Part 4 (Hacker Stuff) ;)
Ok, guys … party’s over. Some of you have requested some more in-depth stuff on pointers, so here we go: Function Pointer Arrays. Depending on your previous programming experience, Function Pointer Arrays (FPA) may seem a bit nerdy to you. … Continue reading
Posted in Pointers, Programming Essentials, Uncategorized
Tagged array, function, function pointer array, pointer
Comments Off on Pointers and References – Part 4 (Hacker Stuff) ;)
A Beginner’s Guide to Object Oriented Programming (2)
Long time no see. I hope you still remember my recent posting on object-oriented programming. Here is part two, which I hope you are interested in. Today, we are going to have a look at inheritance. If you do not … Continue reading
Posted in Programming Essentials, Uncategorized
Tagged inheritance, OOP, polymorphism
Leave a comment
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 black-boxes 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
Leave a comment
A Beginner’s Guide to Object Oriented Programming (1)
What’s so fancy about Object Oriented Programming? Computers have been invented to help real-world people solving real-world 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
Comments Off on A Beginner’s Guide to Object Oriented Programming (1)
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 quick-and-dirty 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
Comments Off on Yet another “trick” that isn’t really a trick …
Lost in translation (C vs. Assembly Language)
In my classes on microcontroller programming I often draw comparisons between C and assembly language. This is to show my students that either programming language has both advantages and disadvantages. While the efficiency of C code predominantly depends on how … Continue reading
Posted in Programming Essentials, Uncategorized
Tagged 8051, assembly, c, efficiency
Comments Off on Lost in translation (C vs. Assembly Language)