I don’t mind if I’m incomprehensible


leave a comment »

I’m live blogging from OSCON, bitches.  Just gonna be some random notes updated throughout the day…

I was working during the keynotes, so I didn’t pay close attention, but O’Reilly was talking about the popularity of some languages and frameworks, CakePHP was not on the list.  This is A Good Thing.

Yesterday I encountered a bug in Cake that gives me the rage.  I was doing a $model->findbySomething where the argument for something is a random generated string like `48784231410e978`.  Cake was like “oh an exponent, and since it’s a number I’m not a gonna qoute it in the SQL.”  Oh fuck you Cake.  Now I’m getting a MySQL error because you are passing a massive number (e978 is HUGE) to a varchar column.  WTF!

Anyway, the first session I went to was Terry Chay’s “The Internet is an Ogre“. It wasn’t that educational, but it was fairly amusing. I like that Chay said “shoot” when something with the presentation went awry, but dude was all “fuck” and “shit” during the presentation.

Right now I’m in the “Metaprogramming in Ruby” session. Too much Ruby this Ruby that, not enough meta-programming so far. Also, dark blue font on black background does not show up well on projection.

Of course, OSCON is same as always. Over 9000 nerds, but only 3 of them are female.

Today OSCON lunch was brought to us by Google. It was so much classier and better than previous years. And like I said to Montana, it probably cost about five seconds of Google’s revenue. (It’s probably less, but I’m too lazy to do the math.)

The dude from Google doing the Code Review session I’m in right now mentioned this book. This guy <3 peer programming.

Code review tools: rietveld, review board, codestriker, java code reviewer (written python and reviews more than just java code).

So far the dtrace session was the coolest. It spilled over by 14 minutes and almost everyone stayed, so you know people were into it.

The file IO talk was pretty interesting. One trick the speaker mentioned is to write to a temp file, fsync, close, and then rename. So if the write fails, the original file is still intact. Of course, don’t do for large files. Apparently Evolution does this trick even if your mailbox file is huge.

Also, on OSX fsync() doe NOT sync your shit to the disk. LOL

The speaker also recommend using sqlite when appropriate. This way you don’t have to worry about all the data integrity stuff.

Dude said WIN and FAIL way too much though…like, over 9000 times!

Whoa whoa whoa, free beer and wine during after hours? Too bad I’ve got this headache. (I’m staying after for a while because there are no internets at my parents’.)

EDIT: regarding the CakePHP thing I bitched about–it’s not totally Cake’s fault. is_numeric(‘48784231410e978′) in PHP returns true. Perhaps Cake should check the column type or somethin’.

EDIT II: Cake 1.2 is totally checking the column type yo!


Written by Barry

July 23, 2008 at 12:12 pm

Posted in Nerdy

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: