On Mon, Feb 16, 2009 at 2:07 PM, leo <[email protected]> wrote: > >> http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-... > > Granted this gives great flexibility, but it doesn't really answer my > comment : > I'm not calling into question the new find functionality - that was > just an example. Look at the thread title and the first sentence of > the comment: I'm talking about deprecation: "but I don't really see > the sense in deprecating functions like findAll and findNeighbours". > > They can coexist, but the deprecation tag implies they will be removed > in a later release. Should we then anticipate other deprecations such > as findAllBy ? These functions are so widely used that later upgrading > would be a BIG headache.
Should the latest Cake core support apps that were built with 1.x? I think that would be tremendous waste. Anyway, I can't imagine any software framework worth its salt that didn't resort to deprecation from time to time. Whether it's for reasons of security or simply that new and better ways to do things come along, deprecation is the way to go. It alerts developers that some function/whatever MAY be removed in the future. Obviously, how you deal with that will depend on the situation. The bottom line, though, is that deadweight should be removed eventually. But, really, how difficult is it to grep for 'findAll' in your controllers & models directories? That's what I did to update one site that has 42 models and it wasn't a big deal at all. Besides, programming is full of big headaches. Or maybe that's just the caffeine. >> But I soon realised that it's actually far more robust. > > Are you suggesting that findAll isn't robust? Do you mean flexible? Sure, that's indeed a better way to put it. I said "robust" because I'd been thinking of my initial reaction to the new syntax. It seemed awkward and prone to breakage somehow at first. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
