tina fey is my hero

Tina Fey was on SNL last night as Sarah Palin again, and I think she really nailed it, from the look to the vague, unrelated answers she gave during the Katie Couric interview this week:

I’m a woman, and I consider myself all about equal rights for women, including the possibility of a woman being president someday. However, this particular woman (Sarah Palin) is most definitely not who we need a beat away from or (God forbid) in the presidency. She has, so far, shown no indication that she has any actual foreign policy experience, or even somewhat knowledgeable about any big topic such as the financial crisis this week, what to do about the slumping economy, and (that awesome hot-button) abortion. Frankly, I shudder to think of her in charge of the entire U.S.

Here’s the orignial interview for fairness sake:

Please don’t vote for McCain/Palin just because she’s a woman, or an attractive woman. That’s as anti-feminist as I can think of, IMO.

[steps off soapbox]

php frameworks – my opinion

I heart PHP. I’ve been working with it in one form or another for over 8 years — back in the PHP 3 days, even! I’m entirely self-taught, relying on php.net and tutorials to help me figure out how to do stuff.

Last fall I was working on a niche-oriented CMS and was getting majorly bored/burned out by all the procedural stuff; the code felt horribly messy to me and I wanted to get into OOP (Object Oriented Programming) but previous attempts had left me scratching my head.

Somehow I stumbled on CodeIgniter and I was immediately hooked. Once I figured out my way around MVC and their way of doing things I tripled the amount of code I was able to put out. Was my code the best you could ever find? No, but it was definitely a step ahead of where I’d been.

Once I finished the CMS I decided to tackle another project and turned again to CI. I’ve been working on this project for the majority of 2008, and might have it done by the end of the year.

Now, I really love CI because it’s so easy and flexible, and it’s pretty much agreed that they have the easiest to understand documentation. However, I began to get frustrated with some of the features the default CI lacks – Auth being the biggest — so I started “shopping around” some other popular frameworks. Following are the ones I dabbled with. Note that there are no benchmarks because frankly that wasn’t my concern — realtive ease of use and the speeding up of my development were the primary concerns was.

Zend Framework – http://framework.zend.com:
Impression: After Symfony, I say ZF is probably the daddy of the frameworks. You can develop some really powerful stuff with it. That said, I found it to have a really steep learning curve and to be too loosely coupled for my taste. Requires more manual configuration than most other frameworks. It took me almost a full day to figure out the Zend_Db class and even then I wasn’t able to move too far with it. I was really impressed with their ACL and Auth classes, although I didn’t get far enough to really dabble with them.
Conclusion: If I had more time to play with it, I’m sure I could figure ZF out and develop some really cool stuff. For now, I will most likely stick with implementing components of ZF with other frameworks.

CakePHP – http://www.cakephp.org
Impression: One of the most popular frameworks. Pretty strict with naming conventions. Models are a must (this is not a bad thing). I actually played with this for a couple of days and got a lot farther with it than I did with ZF. The docs (2.2) are pretty good and I was able to find almost everything I needed to know within them. Because it’s so popular, finding things that weren’t in the docs — like a form tutorial — was really easy.

Conclusion: I may go back and try my hand developing something with Cake. If you have moderate experience with MVC, it’s not (IMO) that hard to learn. It’s a lot slower than pretty much any other framework but it also does a lot of stuff for you that could speed up your production.

KohanaPHP – http://www.kohanaphp.com
Impression: Kohana is a relative newcomer to the PHP Framework scene; it originated as a fork of CI when a bunch of CI developers got tired of waiting for EllisLab (creators of CI) to fix bugs with CI. Right now the current release is 2.2 (I think) and while a lot of things are different from CI, it’s still feasible to port CI apps to Kohana by renaming a few things and following some different rules, like using helper::helper_function instead of $this->load->helper(‘helper’) and helper_function(). I wasn’t very impressed with their docs; I found reference to the “Forge” class, that helps consolidate form creating/validation rules, only to find out Forge has been depreceated in Kohana 2.2.
However, Kohana does seem very powerful and I don’t think it would be too big of a leap to go from CI to Kohana. I really like that they have an advanced archive class as well as auth and payment modules.

Conclusion: I will probably use Kohana at some point; I may even recode the 2nd draft of my current project in Kohana since it provides more built-in functionality than CI does. I really like that it is community based; however, from what I’ve read the framework seems to depreceate things fairly often, which could make developing with it a pain in the ass.

CodeIgniter – http://www.codeigniter.com
Impression: As I said, I love CI. It was so easy to learn and really helped speed up my PHP production. The community is awesome, the docs are awesome, and it’s so flexible I can do pretty much anything I want with it. The “bare-bones-ness” of it, though, is also frustrating at times, especially when I have to manually code something in that the other frameworks provide by default — again, mainly Auth stuff. I think it’s kind of neat that it’s used and backed by a company (EllisLab, which produces the Expression Engine commercial CMS), which should provide security as far as it being around. The bad thing about that is that since it’s developed and maintained by a company, fixes to bugs and other issues can take a lot longer than a community driven framework. I’d really like to see CI get into module-type stuff or at least include company-supported libraries like auth and payment.

Conclusion: I will likely stay with CI for now; when I get more time to dabble with Kohana more it will become more of a competition in my mind. I have to say, though, that for each (hee!) framework I tried, I ended up going back to CI with relief mostly for its flexibility. That could just be due to my being most familiar with CI, though.

To wrap it up, my choices would likely go like so:

  1. CodeIgniter
  2. Kohana
  3. CakePHP
  4. Zend Framework

I know that this hasn’t been a very “techy” type of comparison; as the title suggests, these are merely my opinions on the 4 frameworks I’ve tried out. Eveyrone has one that clicks for them, and you’re definitely entitled to use that one and call it the best (for you!).

good ev-e-ning…

I got my wisdom teeth out (FINALLY) this past Monday. I was so nervous about the IV sedation; however, it turned out to not be a big deal at all. Hell, I wish I could get it when I get cavaties filled! ๐Ÿ™‚

The biggest post-op things have been the swelling — the lower part of my cheeks swelled, making me look like Alfred Hitchcock — and the overwhelming “Ugh” feeling. I get tired out pretty easily (the coedine probably doesn’t help, although I’m down to just 2 per day) and I just generally don’t feel good. I was running a mild (100 and less) fever Wednesdayย  but now it seems to have leveled off.ย  And the whole not being able to open my mouth or chew anything harder than boiled chicken is definitely not fun.

Truthfully, I’m all right with all of those things; I know they’re just temporary. And the best part is — those broken-ass wisdom teeth are gone for good! Woohoo! ๐Ÿ™‚

This is why

I really support Barack Obama for president. He seems to focus more on what he’s going to do, instead of throwing out unfounded and ridiculous accusations towards McCain/Palin every chance he gets.

Seriously, take 2 minutes out of your time to watch this ๐Ÿ™‚


First mini-goal reached!

I actually reached it last week but I’ve been in a slump for a few days and didn’t even want to get out of bed, much less work on anything.

But I finally reached goal #1!!! Yay! ๐Ÿ™‚ I can actually see myself getting to my 2nd mini-goal and sailing past it as I keep losing weight and I weigh less than I have in almost 10 years! ๐Ÿ˜€