Archive for February, 2010
My Choice of SCM: Git vs. Mercurial
Feb 26th
If you Googled “Git vs. Mercurial”, you will see a long list of pages that compare Git and Mercurial. Well, I think I’m writing one of those too.
In past, normally when I was developing, I will just use local copy and backup and use diff/WinMerge utility to compare and merge files. My life change when I starting to know SCM/VCS.
I started using SCM for the first time when I start looking into Robocode’s source (as per Pavel Savara’s request to be a tester), which use Subversion. I know basic of the operation before (commit and checkout mostly), but I had never use any of it prior than that time. As I continue using SVN for Robocode’s source, I slowly learned more about SVN including what is branches, tags and trunk. I learned about patch later.
Since then, every time I develop some project, I need to have a VCS repository for my code (either local or hosted), all are SVN since I don’t know others. I knew that there is CVS, but its idea really confused me. I also knew that CVS is dated, and many projects that used to use CVS have already migrated/are migrating to SVN or other VCS.
My view of VCS changed when simple-php-framework moved to GitHub. I learned that there are also Git, Mercurial and Bazaar, which are DVCS. I still perfectly happy with SVN, so I didn’t really care about them, as long as GitHub provide a tarball link for me.
My first project which I use hosted SVN is napv-ce. I use Subversive plug-in for Eclipse as my SVN client. I hosted my project on Google Code. As I develop, the commit part really annoyed me since sometimes it just fails. And sometimes I don’t want to connect to the internet. The idea of DVCS starting to get back into my head.
OOP Learning Process
Feb 21st
Three years ago, I started to learn Java and OOP. That time, I found OOP quite interesting because it is a grouped functions. I slowly learn it from time to time.
Next year, when my teacher knew that I was into OOP, he told me to search about MVC, which I found it also quite interesting. I searched about PHP MVC and I found several PHP framework. The one which attracted my eyes the most is CakePHP, so I decided to give it a try.
At first everything seems to go well and I love it. Separation of design and code and all of it. But as I use it for a while, I started to think that by having to many DBALs to my database, I have to learn about it all. So later I use my own Module-View design for my relatively small web, which I have Module as Controller and Model together.
Recently, when I have to code real web and I use Module-View, my webpage get dirtier and dirtier with SQL request, so I remember the MVC and move things to Model. That’s how I know the real reason of MVC.
Second thing: ORM. I was never able to understand the need of ORM library until recently. I found that ORM make my life easier if I use it with light DBAL.
I wrote this all because I want ones who fall under the smiler route with me that in order to understand the reason behind each invented things, you have to use it yourself.
Post Valentine: Poems and Haiku
Feb 15th
For her own good
There’s one who I love
Who I care about the most
Who I really want to spend time with
Who I’m going to lost.Yet, there is still a hope;
Not much, but worth living.
I don’t want to lose her,
But I don’t know if it is a good thingI may just being selfish,
But I’m not in the mood.
I know she has to go,
’Cause she is leaving for her own good.But chances are, she may not leave.
Wht? — I don’t really know.
I don’t care — as long as she stayed;
I can’t afford losing her, no…
More >
More Valentine Poems
Feb 14th
EDIT: A link to my poem posted pre-valentine: Gain and Loss
These poems should be songs, but due to much works I don’t have time to compose the melodies for them. Well, here are poems:
Some times I have noticed you
For once, I have never felt before,
Not before I notice you.
I feel calm, I can control my anger
Because of you, and only you.Form the past, I don’t even know you.
From the time of bad, I noticed you.
In the time that worse, I found love in you.
Best of all, you guide me through. (secretly)
More >
Valentine Poem: Gain and Loss
Feb 13th
Gain and Loss
It was a time that I missed her
That I know I love her.
Who I have never noticed before,
These times passed like a blur.But on the other day,
Her beauty stunned my mind.
She helps me control myself
Better than the days I used to cried.Yes, I do love her,
Very much indeed.
The thought makes me warm;
The feels of love and need.
More >