Archive for November, 2007

Communication Among Developers

Thursday, November 29th, 2007

Developer 1: “I think we need to sort this array by it’s value”
Developer 2: “You should write a hash, store the values in the hash, and then sort it”
Developer 1: “That’s what I just said…”

Developer 1: “Alright, I’m going to sort this array”
Developer 2: “Alright, but before you do that… I want you to create a hash. Put the values into the hash and then, using the sorting function, sort the array.”

Developer 1: “This idea your purposing contradicts statements you previously made about your algorithm. I mean, what you’re purposing causes the work done by previous scripts to be rendered useless or is in essense saying that previous scripts aren’t doing their job right.”
Developer 2: “No. We are making these changes to the results of the script, we are creating better results down the line.”
Developer 1: “But, according to you, if those scripts truly did what we designed them to do, then we shouldn’t need to manually edit the results”
Developer 2: “I don’t understand what you’re getting at. We are improving the results by editing them.”
Developer 1: “But if the scripts… did their job right… then… *sigh* Whatever”

Developer 2: “You know… I thought about it… And I think you’re right, there is something wrong with the algorithm”
Developer 1: “Okay”
Developer 2: “But we’re still going to edit the results to better suit what we think should be there…”

Developer 1: “How do you plan on going about tackling this problem?”
Developer 2: “Well… we can try this, this, and this, and then have the algorithm do this…”
Developer 1: “We’ve already tried that and it didn’t turn out too well, you might want to account for cases such as this in your solution.”
Developer 2: “I don’t see why this case would occur”
Developer 1: “Believe me, it often does.”
Developer 2: “Stop being so pessimistic, we can do anything.”
Developer 1: “No… I’m just saying you might want to account for this case when you come up with your solution, it’s what makes this problem challenging”
Developer 2: “You shouldn’t give up just because it’s hard. We can do this, we have a week. You and I should combine our forces, share our ideas, and hammer up a solution that works.”
Developer 1: “But… I’m already letting you know what I think on it”
Developer 2: “Trust me, it’ll be okay. We at the very least 75% of the time the script will do what it’s supposed to.”
Developer 1: “But, it already does that right now…”
Developer 2: “We’ll see, okay? We’ll see.”

Ah… I forget how working in teams can sometime feel like running head first into a brick wall.


Thursday, November 29th, 2007

Here are some quotes that I really like:

“All that is complex is not useful. All that is useful is simple.” — MikhailKalashnikov
“It should be as simple as possible, but no simpler” — Albert Einstein
“Do the simplist thing that works” — Second XP Principle
“You aren’t going to need it” (YAGNI) Principle – unknown

I think the above quotes are very interesting and true. I think they will most definitely play an important role in any programmers life.

Linux Box!

Friday, November 23rd, 2007

I just ordered a box from Dell so that I can install Linux, Apache, MySQL, and PHP on it. I think it’ll be a good investment because I think Linux is a very important OS to learn and get under your belt. Another reason why I want this box is because my current set up with GoDaddy requires for me to access my database via a web-based interface, which is very annoying because of the fact that there are page refreshes, slowness, and time outs.

I think this box is a good investment because it’ll one, increase my understanding of my developer environment, and two, give me quick and response test environment to work off of before deploying my code.

Although I find it sad that this new box cost only a fraction of the price of the PC I built back in 2002 and will perform far better than it, I’m looking forward to it.

Google API Shelved

Friday, November 9th, 2007

Just when I thought was onto something, the project got shelved for another one of more importance. The importance isn’t based on how technical it is though, just in terms of priority to the company.

Google API

Friday, November 9th, 2007

Yay… My new project is to play, I mean work, with the Google API ūüôā

Database Data Migration

Thursday, November 8th, 2007

Today, I am to write a simple script to allow the data in one database to be migrated to another database. It doesn’t sound that bad. I’m sure other projects will soon follow.


Wednesday, November 7th, 2007

So we encountered some security issues today, although there is little you can do against a person who is ultra determined to hack into your system, there are many things you can do to deter him. You can employ an account based restriction, ip address based restriction, browser based restriction, and many more other ways.

I think the best way to fight hackers is to learn how they’re hacking the system, and then prevent that method from working properly. Today’s hacker’s alert was brief, but I learned a lot. Now I’ll know what kind of things to keep in mind when designing secure code.

Oh well

Monday, November 5th, 2007

My boss wants me to replace the existing logic in our relativity system with his new logic. Looks like AJAX will have to wait once again.

Switched Back

Friday, November 2nd, 2007

So close, yet so far away. After hours of skimming through books at Borders, I’ve managed to find and purchase, in my opinion, a pretty decent AJAX book. Now I know what AJAX is. AJAX stands for Asynchronous Javascript and XML. Basically, it is Javascript that pulls info from a server and updates the content of the webpage without a refresh. Without some sort of database or server, it’s just Javascript; and that (Javascript) I know.

¬†Unfortunately, AJAX is going to have to wait because I have switched back to a shelved project. I can’t wait to finish the shelved project though because playing with AJAX is going to be awesome. I’m going to spend some time either leafing through a PHP book on programming design patterns and structures, the AJAX book, or my website. Decisions, decisions.


Thursday, November 1st, 2007

AWESOME! I just updated my boss on the project and he’s going to think about it for a while, and in the meantime I got reassigned to learn and code a new AJAX component for our client server interface. I’m very excited.