Yohanes Mario [dot] com

my online scrapbook of scrambled thoughts

Just recently, I studied OOP (Object Oriented Programming) based on java, and am facing my first exam on this subject. It has been an exciting journey to shift from procedural programming to object oriented programming. When you can see things as an entity instead of just an array of codes, it makes coding a real joy.

After several months with OOP, when I see my codes behind this blog engine, I realize it was a mess. Code flies everywhere. There are no clear division of which code handle the database connection, which code handle the html representation, everything was mixed. I was not good at commenting on codes either, so everything is sort of tangled.

Finally, here comes the good news. I decided to drop this project and do it from scratch. However, now I will be using OOP as the base architecture of the project. I hope that the usage of OOP (and better code commenting) will leverage the flexibility of the system. One class per file, one class combiner, and one index for clearer presentation of how the system works. Why do I choose OOP? Clue: private $password;

I'll have my exam soon, and I hope I can get my hands off my keyboard ASAP. Happy blogging!


A 3D graphics in a web browser has been many people's dream. Imagine what we can build using this technology. People no longer have to download client application to play 3D online game, or we can even make a 3D UI for our website. This technology exist. It's called "WebGL".

Currently, I'm still in the process of studying this thing, so I don't have much to share. All I know so far is that this stuff is not very much different from OpenGL, so people who have studied and understood OpenGL should be able to understand WebGL with virtually no problem at all.

With that being said, The progress of this CMS' development will be on halt for a while, because I need to study WebGL for future developments of this CMS. If you want to study WebGL, you can learn from the lessons provided here.

Hopefully, I'll understand this quickly, and then I can continue developing this CMS. I'll post something if I find interesting things during my study.
Thanks for reading and happy blogging!


Finally, the moving process is done. Previously, I use a hosting plan that is both overpriced and underpowered. I've just realized that recently, when I compare my hosting plan to my friend's. Previously, I've got 500MB of disc space and 15GB of bandwidth at Rp450,000. Now, I've got 5GB of disc space and 100GB of bandwidth at Rp400,000. That's almost 10 times the power with a cheaper price. That's something to be questioned.

However, since this is an announcement post, I'll try to set everything straight. With this new hosting power, I'll be experimenting a lot with HTML5, especially it's ability in playing multimedia files (video/audio) without the need of Flash. I'll also be experimenting a lot with HTML5 canvas and it's implementation with javascript to create a dynamically changing UI.

I'll try my best to keep you posted when I have time away from my work and my real life.
Happy blogging!