Invalid content

CakePHP Digest #10 - News Overload

Posted by Matt on Mon, Mar 23 2009

News

CakeFest #3

The long awaited end to the CakeFest trilogy has finally been announced (don't worry, I'm sure there will be a prequel). The fun takes places in Germany this time, from July 9th to the 12th. CakeFest is divided into two parts. The first two days are for workshops (499€). The second part is the conference (199€). Put a badge on your website and you could get in to that for free. Proposals for talk at the conference are being accepted right now. Edit: I completely botched this sections in my two attempts.

New Cake 1.2 Released and Even Newer Cake 1.3 In Development

There is a new release of the 1.2 branch, which fixes a bunch of bugs. Also 1.3 is now rolling, with development moved over to Git and located at TheChaw. You can also check out the various branches that are in progress at the moment.

Within 24 hours of the announcement we had the first "Would you recommend us to use 1.3 for new development?" question. To save the Cake devs the trouble of having to answer this question repeatedly over the next few months I will provide an answer here that can be copied and pasted:

Yes, absolutely. CakePHP 1.2 is legacy at this point and won't receive any new features. All the cool development is happening on 1.3. In addition to any new development, you should port all your old projects over immediately, starting with the large mission critical ones.

Twitter

Proving that only 99.99999% of people on the internet are douches, Nate was able to get the @cakephp Twitter account simply by asking. So if you prefer your Cake news in "instant" format, rather then "digest" format feel free to follow @cakephp. Thanks for cutting the legs off this blog post @cakephp...bastards.

Tickets and Commits

If you enjoy bug comment humor (and who doesn't?), check out this ticket (hat tip: @renan_saddam). Speaking of geek jokes, am I the only one who loves flow chart humor? Like this one of Ice Cube's "Today Was a Good Day", which kills me everytime.

In The Wild

edfriedland.com

Only a couple of new sites for this digest. First is edfriedland.com (via twitter), which is the site of bassist Ed Friendland, who presents the important question: If I'm writing my thoughts, isn't that technically quoting my brain and therefor shouldn't everything I write begin with a quotation mark?

davyvandenbremt.be

Also from Twitter is the home page of Davy Van Den Bremt, which promotes his Drupal development skills. I'll pause a moment for you to ponder that.

In The Blogs

Mini Cookbook

You know when you're at a coffee shop and you see a hot girl sitting in the corner trying to finish an important Cake app, only the wifi is broken and she can't pull up the CakePHP manual to figure out how ACL works? And she just wants to be done so that she can get blasted and hook up with some random guy and you're thinking "I'm a random guy." If only you had access to the Cookbook on your handheld mobile device. Thanks to m3nt0r you will never miss one of these opportunities again. The mobile version of the Cookbook works best on the iPhone, which is fine because if you're sporting anything else you don't really have a shot with that chick anyway.

Whitelist vs Blacklist

If you ever thought to yourself "man, I wish there was a series of blog posts covering the best way to implement field blacklisting in CakePHP's Model::save," then this is your week. First up is teknoid's quick way. m3nt0r countered by moving the functionality into AppMode by overriding the default save call. But that approached changed the parameters for Model::save, so cakebaker presented another approach showing how it is done in Rails.

Reverse Routing Cache

In a continuation off a couple of posts mentioned in the last digest, Renan Gonçalves posted a modified version of my code. If only one of us had commit access and could sneak this into the core code...

In The Groups

Summer of Everything But CakePHP

CakePHP was submitted as a mentor for Google's Summer of Code, but didn't make the cut. 150 projects were accepted, including the Derek Zoolander's Center for the Study of Complex Systems and Stuff. My favorite part of their description is "Note that we prefer students who will work on the project "above and beyound" the minimal agreed amount of effort..." Apparently "above and beyound" doesn't involve using spell check. And before you bitch at me for nitpicking this as a typo, note the "i" between the "o" and the "u" on your keyboard.

Uses

I thought this thread was interesting mostly for Miles J's statement that having poor performance from multiple models in a controller "only applies if you have like 10+ models in the $uses var." Look for a future post where I put this to the test. Mostly to make up for the fact that I completely wiffed and didn't mention $uses in my 8 Ways to Speed Up CakePHP Apps post.

In The Bakery

I'm pretty sure there wasn't anything new and if there was it must have not have been very interesting.

I'm Out!

Don't forget to subscribe to my feed or follow me on twitter.

As always if you think I missed something leave a comment. Or if you do something interesting and want it included in the next digest, send me an email.

Posted in CakePHP Digest

11 Comments

nate said on Mar 23, 2009
Hey Matt, the 599 € price is only for people who are also attending the two-day workshop training session on the first two days. The last two days, which is just the conference itself, is going for a much more digestable 199 €. Get it, "digestable"? This a digest?

Okay, okay... keeping the day job. ;-)
Matt said on Mar 24, 2009
Nate,
My reading comprehension skills are steadily declining. I fixed up that first part a bit. Thanks.
Renan Gonçalves said on Mar 23, 2009
Hey Matt, great article.
Just one correction: I already have commit access but, unfortunatly, I can't sneak our little piece of gold into the core code. :(
By the way, great article and keep doing it.
Matt said on Mar 24, 2009
Yea, I knew that...meant it more as a *hint, hint*.
Keymaster said on Mar 23, 2009
Matt,

Invariably, when I read these digests I end up at some point involuntarily laughing out loud (literally). Since I assume there are others who have similiar reactions, it means alot of offices are experiencing interruptions in productivity due to some geek laughing out loud at a screen in the middle of the morning.

You might consider placing a "Not Safe for Work" warning at the top of this digest.:-))
nate said on Mar 24, 2009
Hey Matt... okay, I almost feel bad for bringing this up, what with me already correcting you once, and it's probably my fault for not clarifying on the site, but talk proposals are only being accepted for the *conference*, not the workshop. The workshop is a training event taught exclusively by members of the core team.
Matt said on Mar 24, 2009
I kind of thought that, but on the proposals page it used the work "workshop" which confused me. Plus I was re-writing this at 6:30am and in a rush so I could make my bus...

Anyway, don't worry about the corrections. Fixed once again.
nate said on Mar 24, 2009
Cool. Yeah, I looked at the wording, and it's definitely misleading. That was a hold-over from the last site that I didn't catch. It's been fixed.
Brendon Kozlowski said on Mar 27, 2009
You didn't miss this, but it's an interesting little thing on its own that I just accidentally stumbled on:
http://techno-geeks.org/2009/03/authenticating-a-cakephp-app-against-a-cakephp-webservice/

They
created their own login "service" using CakePHP tools to validate via XML.
Jon said on Mar 29, 2009
Hey Matt,

I'm still digesting (that was for you, Nate) but I'm super stoked to have found your site and cake digest. Good stuff!
Miles J said on Mar 31, 2009
Ha, I just noticed I was mentioned in this post. Well I would like to reiterate a bit.

The amount of models attached to $uses solely depends on how many associations each model has and what works best. If you have 1 model with 15 associations (15 models), it is basically the same as 15 models with no associations.

But I typically found that if you are having to put more then 10 models in $uses, its best to use ClassRegistry() or loadModel().

Add new comment