Monday, 30 January 2012
Programming is Fun!
Totally LOL-tastic video about Java. Haha!
Just finished up my IS2103 tutorial which I supposed to do last Thursday. Procrastination power. I'm glad that I finally finished it though, it's kind of fun! Reminds me why I'm in Computing, I like programming. Not to the extent of all the mathematical stuff though, those put me off. I prefer to focus on user-centric programming if possible. Which is why I felt like perhaps I should have gone for the CM (comms & media) major instead. But then they rejected my application to the concurrent degree at Carnegie Melon Uni. And also at that time, I was confused with all the CS & IS departments stuff. So anything CS I automatically closed my eyes to it, thinking it is too technical for me. Oops. Too late for regrets though, can't switch now.
That's not the point of this post though. I wanted to say that I finally coded my own client and server apps for the first time, and it is really fun! Anyway, here is the tutorial for your info. Focus more on Questions 3 and 4.
IS2103 Tutorial 1:
Basically, we were supposed to create a lucky draw client that sends our IP address and name to the lucky draw server. The server then gives us a prize code to redeem a prize. We then send the code over to reveal our prize, and display the information to the screen. Sounds simple? Well, there is some amount of coding to accomplish that. Here is my finished code. Focus more on the client app and server implementation.
The client part was simple and straightforward enough. But the server part is slightly more complicated. You need to take in a request, and somehow generate a prize for them. Not to mention I had to come up with the prize list myself! -_-"
Eventually I came up with some weird algorithm using the system clock, their IP and name, to generate a single digit to give them 1 out of 10 prizes. The system clock just adds to the random factor, which lucky draws should be.
Anyway, there's no need to submit this... I just did it for fun, and to revise some programming too. :P
The first 3 weeks seemed way too relaxed. Now we are off into full blown project mode. I got a project due Thursday that I just learned about yesterday! Talk about blur! Haha. Tomorrow's project meeting expected to start at 6pm! SSB project is starting as well. And we are about to start working on the cyber crime one. Busy busy busy.
And growing older. ~.~
0 comments - Speak up!:
Post a Comment
Thoughts on this post, the weather, sports, news. Or just to say hi! :)