Mike Neir's Page[ignignokt][err]
Mike should proofread his status updates better. (8 hours ago)
A Month

Friday, February 15 2008, 9:35 AM

Eeek! It's been a month since I last updated here. Time flies when you're ... alive. I guess.

I haven't really been up to all that much. I had a couple of pretty hairy weeks at work where I was called upon to help clean up messes that I did not create. This occured on multiple occasions, and because of which, I was pretty stressed out during those two weeks. Its been better recently though, so I can't complain a whole lot.

I recently picked up some new pickups for the Carvin, and I'm mighty pleased with how they sound so far. I bought a pre-assembled pickguard on eBay from a guitar store in Florida, and it came loaded with three Lace Sensor pickups. I had a Lace Sensor in the Carvin before the upgrade, and I always liked the way it sounded, so I figured I couldn't go wrong. I'll be updating the guitar page with the new details sometime relatively soon (read: before 2017), and I may post some sound clips for the axe handlers out there.

It seems like I also put some more work into refining the code of the old web site here a few weeks ago. I converted some of the code to handle data objects over to an object-oriented approach using classes, and it's reminded me how easy they can make things. Instead of having to write code each time I want to say, make a form to add new content or submit new comments, I can just call methods on the class object. A few calls to something like $ContentObject->setTitle('OMG Wheee!'); and a $ContentObject->commit(); sure as hell beats a bunch of SQL statements.

Tags:


Comments

Phil :: 02/15/2008, 5:25 pm :: Reply

OOP has always given me troubles. I vaguely understand the concept, but it just doesn't want to click. Probably because I have never HAD to use it.

Mike Neir :: 02/15/2008, 5:42 pm :: Reply

Its not an exact match, but think of a database. You can define a class around each table. Each instantiation of the class (the object) is analogous to a row, and the data stored within the object belongs to that object only. Classes are obviously not limited to that, but they match up very well with the concepts present in a database.

AG :: 02/16/2008, 4:41 pm :: Reply

I want to hear what your Uncle has to say about the last paragraph.

sneezer :: 02/22/2008, 11:04 am :: Reply

I had the same problem - but was able to successfully instanate the groups by isolating the classes AND the rows. It sounds simple and it is... IF you redefine the database in the SQL.

you can thank me later.

Alex :: 02/22/2008, 4:20 pm :: Reply

boy thats been giving me troubles too. Thanks!

Alex :: 02/22/2008, 4:21 pm :: Reply

boy thats been giving me troubles too. Thanks!

AG :: 02/26/2008, 7:27 pm :: Reply

Totally.

sneezer :: 02/24/2008, 11:18 am :: Reply

you're welcome

sneezer :: 02/24/2008, 11:18 am :: Reply

you're welcome

Michael :: 02/24/2008, 8:16 pm :: Reply

Sounds similar to how I organized the code on my site, I made a python module to handle SQL queries.

Phil :: 02/29/2008, 6:12 pm :: Reply

did your python wear perls

benny. :: 02/27/2008, 3:24 am :: Reply

...

twelve days.


Add a comment



RSS Feed | Comments RSS Feed | Valid HTML 4.01 | Valid CSS
Memcache: Hits: 34 Misses: 1 Updates: 1 Deletes: 0 LocalHits: 0 Time: 0.0084
MySQL: Selects: 6 Inserts: 4 Updates: 0 Deletes: 0 Time: 1.6606
Page Render Time: 1.8433 seconds