Thursday, April 23, 2009

Lesson Learned

So since I am slacking at work someone had to refactor my code. Although the code that I wrote started from pretty much the beginning of my career.

I started writing this code and as functionality needed to be added I just added it to the module. I had modular code to a certain extent but used it in the wrong way. When a certain case hit I was using one module to do the other modules task. This made my code confusing for other developers.

Another big thing wrong with that code was that things could be extracted. While programming classes are made to do a certain task, and that task alone. I was making the class do several different things which could be extracted into their own classes.

The lesson learned here is keep my code modular. Refactoring as I go.

The bad habit that I had was started out with a modular design and just adding functionality to classes as those functions were needed. I need to learn to pull that functionality from the class and create new classes which can be used by my original class.

Thursday, April 2, 2009

Back from Vacation

So I went on vacation. Took a break from school work, and work.

It was a good break from everything, I think I really needed that vacation cause I just might be over working myself. The three hour time difference is small but I can actually notice that I am more tired than normal. Catching up on school work and work work is rough with having to work at the restaurant. Cooking at the restaurant after a two week break is kind of rough as well, having to get used to being in a cloud of smoke just sucks.

Back to the same old routine now.

Another thing I noticed is that a lot of the fixes I had done prior to my vacation were not correctly done. I need to start looking into the correct ways to implement my code. I should already know these things but I am still missing them. Taking more care when doing my work might take a little more time but will help me in becoming a valuable asset to any company that I may work for. Plan to read more technical books to learn how to program better. Just have to find free time to do things such as read.

Back to my endless nightmare known as life.