Friday, August 9, 2013

A Journey to be The Ultimate Programmer - Part 2

Before I start, in case you are wondering where on earth is part 1, its here.

As you can see, it was written in 2009. At that point of time, I was just writing it for the sake of writing. Well, perhaps I had "some" interests in programming. But not that much. Just looking at part 1, made me realize how pathetic I am. To date, I have not even touched Perl nor Ruby.

It was just recently that I decided to become a programmer when I applied for job in early 2013. At that point of time, I was still serving NS, and was preparing for my CCNA. Or to be exact, I had finished studying CCNA. I was about to take the exam. But then, if you know me in real life, you should know that  I am not the type who makes decision without thinking twice, thrice, and maybe more?

I was in dilemma. There were too many things in my mind, and so many things that I could not decide. One of them is to decide whether to take CCNA, or be a programmer. Well, if you ask me why, its because I don't really have interest in networking areas, neither do I have interests in programming. But I know I can perform if and only if I want to. Its just a matter of interest, and interest is something that you can develop over time with an open mind and an open heart.

After thinking for days, weeks, I decided not to take my CCNA exam. Instead I submitted online job applications first. I told myself that I will only specialize and move accordingly depending on the job that I am getting. I started applying for jobs in late December. It was 6 months before ORD.

As you guess, no one contacted me as I still have 6 more months. It was 3 months before I ORD that I managed to lend an interview with a start up company. During the interview I honestly told them that I have forgotten everything. To may surprise, they do not mind that as they understands it completely. A week later, I was offered a position with them, and I accepted the offer straight away. I signed my contract in early April. Oh and before I forget, I was their first employee. But not the first who started working.

July 1st - I walked into the office. I was totally clueless and helpless as I could not recall whatever things that I have learnt in SP. Prior to that, I only managed to learn some basic Javascript, HTML, and CSS on my own. Its just basics, really.

The next 2 days, we went out for some PlayStation seminar. It was quite a honeymoon for me I guess? Nevertheless, during lunch time, I indirectly told my boss that I wanted to be a good programmer like him, or maybe better, and I even expressed my interest to be posted overseas if there are some vacations. Laugh! I can't believe how bold I am sometimes!

On my first week, I somehow managed to recall back most of LINUX basic commands. It was quite an accomplishment to me as I think it was quite fast. On the second and third week, it was a little too fast. I was like forcing myself to learn and practice PHP & MySQL as much I can, even though it does not make some sense in the beginning. It was in the 4th week that I started to feel comfortable with PHP & MySQL, and I started to be able to understand other people scripts. Oh just to remind myself, I had no background in PHP at all previously. As for SQL, I only knew the basic SELECT all command. That's all.

Ok back to the story. As I was getting comfortable more and more with both PHP & MySQL, here come the shift. My colleague and I were asked to specialize. Both of us were like undecided as we wanted to try out everything as much as we could. To cut the story short, I was asked to start programming in using Objective-C, and that is when the nightmare started.

I looked at Objective-C, Objective-C looked at me. It was horrible. I felt like as if a mountain fell on me. The first 2 days looking and reading about Objective-C, I felt so helpless and useless. I could not understand a single explanation presented. It was like a totally different languages. At that point of time, I felt that I am so stupid. A mere 3.75 CGPA does not mean a thing any more. Now, its just between life and death.

Objective-C to me, is nothing like C/C++, JAVA, PHP, MySQL, Javascript, etc. The learning curve was so steep! I cannot even tell what simple example is doing initially. But then of course, I can't just give up. Running away does not solve a thing either. So, I was like really forcing myself to make some sense. I am glad I did.

Its been 3 weeks now, I guess I am slowly getting used to Objective-C, though there are still many things I still need to learn. Now now now now now, reading at the title, I do not know whether will I ever be an ultimate programmer? I don't know. But maybe, just maybe, I would be able to be a good programmer someday.

Doing Objective-C makes me appreciates the simplicity of C, PHP, etc. Thinking about it, make me laugh at myself back then. I don't understand why was I so afraid of C during my poly days. Its much simpler than Objective-C. I do not know, but I feel that once I master or maybe be good in Objective-C, I could do anything! Just maybe.

Well, that's about it for now. Till we meet again, dear bloggy.

Tuesday, May 14, 2013

Chocolate Lasagna

INGREDIENTS

1 package regular Oreo cookies (Not Double Stuff) – about 36 cookies
6 Tablespoon butter, melted
1- 8 ounce package cream cheese, softened
1/4 cup granulated sugar
2 Tablespoons cold milk
1- 12 ounce tub Cool Whip, divided
2 – 3.9 ounce packages Chocolate Instant Pudding.
3 1/4 cups cold milk
1 and 1/2 cups mini chocolate chips

DIRECTIONS

1. Begin by crushing 36 Oreo cookies. I used my food processor for this, but you could also place them in a large ziplock bag and crush them with a rolling pin. When the Oreos have turned into fine crumbs, you are done.
2. Transfer the Oreo crumbs to a large bowl. Stir in 6 tablespoons melted butter and use a fork to incorporate the butter into the cookie crumbs. When the butter is distributed, transfer the mixture to a 9 x 13 inch baking dish. Press the crumbs into the bottom of the pan. Place the pan in the refrigerator while you work on the additional layers.
3. Mix the cream cheese with a mixer until light and fluffy. Add in 2 Tablespoons of milk, and sugar, and mix well. Stir in 1 and 1/4 cups Cool Whip. Spread this mixture over the crust.
4. In a bowl, combine chocolate instant pudding with 3 and 1/4 cups cold milk. Whisk for several minutes until the pudding starts to thicken. Use a spatula to spread the mixture over the previous cream cheese layer. Allow the dessert to rest for about 5 minutes so that the pudding can firm up further.
5. Spread the remaining Cool Whip over the top. Sprinkle mini chocolate chips evenly over the top. Place in the freezer for 1 hour, or the refrigerator for 4 hours before serving.



Common Mistakes During Job Interviews


I Love You Mum


Rabbit Cat

I wonder why cats does not eat rabbits? I don't understand.

No Energy!


Should You Work Hard?


Two Types of Programmer


Sunday, March 31, 2013

Lambda Expression Only Available With -std=c++0x or -std=gnu++0x

So here is the story in short:

I was revising my C++ programming based on a book that I borrowed from a library titled, "Sams Teach Yourself C++ in One Hour a Day", written by Siddhartha Rao. The book is good. Its pact with tons of examples. But its proofreading is not so good. So, if your programming is not bad, you should be able to spot the mistakes when you read through. The downside to this book is that it does not mention the solution that we have to configure if certain examples does not work. for example, it makes quite a difference to,


#include <string> or its variant of .h</string>The extra blogger codes drives me crazy. I do not know about other books. To be honest, I never read other programming books in detail before. So, I don't know. But overall, I like the book.

Ok, I think I have drifted away. Let's get back on the track. So, today, while I am trying out the lambda function, I came across this error, "Lambda Expression Only Available With -std=c++0x or -std=gnu++0x".
I googled for quite sometime. Most of the answers are for those who are familiar with their IDE. They keep on saying add the command line to your compiler. I looked at my compiler setting, I scratched my head.

After searching and thinking for awhile. I opened up my compiler setting again for the second time. This time, I read carefully, then I saw something and I ticked it as shown below:

Binggo! That's it! It worked! Now, the codes can be compiled.

Hope that you enjoyed this post. It is not meant for those who are familiar with their IDEs. The last time I used codeblocks was in 2009. ;)