Hint: Use 'j' and 'k' keys
to move up and down

Yaz's Blog

I am a php developer. I am a geek. I am a fiction reader. A movie and tv addict.
An XBOX360 player. A snowboarder. A cyclist. A Softball player. A Venezuelan-Canadian.

Learn Python The Hard Way

For later, when I have free time. Its kinda exciting to learn a new language, specially one that can be learned easily; comes installed in OSX: 1+, has a free book 1+.

"Good, quick, and cheap. Pick two."
- How I feel about web dev.

Javascript + prototype new object/class definition

john = new Person(); 
var susan = new Person();

function load_div() 
      $('random_div').show();
      john.say("Hello"); // doesn't work
      susan.say("Yo"); // works!
}
Huh.

"You know the real problem with frameworks? They demo too well. Someone shows you their favourite framework and demonstrates how you can build 50% of your application in half an hour! Great! That other 50% can’t be hard, can it? But it turns out that what looked like 50% is actually 5%, and filling in the other 95% gets exponentially more difficult as you approach the 100% mark. Frameworks are great for building toys, and that fools us — again and again — into assuming they’re good for building products."

No MySQL Test Syntax Functions…

I normally don’t post things about work or my career here, but this doesnt really fit anywhere else.

I’ve been working on this one php script for about 2 days. It basically updates very critical information about an user on several tables. Not something unusual but I’ve always been scared of testing scripts that affect our main user tables. And yeah we do have backups but this would be one of those times when reverting would be a b!tch.

So I decided to go hunting for a function that would test my MySQL query without actually running the query. And to my amazement, it doesn’t exist! Not only am I amazed, I’m shocked somebody hasn’t created a native php function.

God knows how much time did I spend figuring out why my queries were breaking when I started coding. It would be incredibly useful, since like me, I’m sure there are a lot of people out there that would like that safety feature. For now though, I’m just going to have to run the script and hope for the best.