Drupalcon Boston 2008 Day 3

Michael Goldsmith and Adrian RousseauI talked for a while to Adrian Rousseau from Bryght/Raincity and Michael Goldsmith. Adrian decided that as he's done upgrade contracts for involving CCK, he's phasing out or reducing use of CCK in their sites (where possible).

He mentioned some nice APIs for CCK2 are coming, and would work nicely with Views, but writing custom modules is faster in some cases when custom output is needed and the views support is roughly equivalent, granted all the node_example.module hooks are implemented to expose the fields to Views.

I asked if how they use CCK if at all anymore then, and they said it was good for prototyping.

At Classic Graphics, we have built a custom engine that directly queries a custom content type's tables. While using the content.module API functions should have probably be done in the first place, there are a lot of special case reasons the direct query was done and I can't imagine having to rewrite those 50-line queries every time CCK changes database structure.

This has had me thinking, instead of venturing into the world of 100% shared fields in CCK and the uncertainty of how field group nesting would get implemented and/or committed, maybe it's time to open the idea realm to consider the occasional custom content module. I spend more time re-rolling the nesting patch than I do actually making progress on it.

If we were to venture down that road, then how do we handle CCK nodereference/rolereference/usernode/date type fields? I think once the CCK handler stuff gets chopped out of those modules, you're left with just a few tiny functions that could roll into custom modules. That removes community maintenance though. It's an difficult tradeoff.

I talked it over with Chris and I think he's starting to think I'm really crazy now. Even I'm getting a feeling like it's hard to make up my mind. I think at least for upgrading our existing sites at Classic Graphics to Drupal 5, we can/should stay with CCK since I think it's still fairly straightforward from 4.7. For Drupal 6, that might be a place to consider this custom content type coded module idea instead of CCK.

I also overheard a discussion from someone trying to plug their consulting services that's related to yesterday's session about development workflow. As an example of what type of experience he offered, a possible solution to the issue of sandbox to dev to test/staging to live, he writes as much config as he can in code. Instead of configuring blocks and menus through the GUI, he writes them in code like hook_menu() and hook_block(). Then the SVN update to the live site takes care of a lot of the clicking configuration. It puts more dependencies on developers (translate in this guy's case: followup consulting), but his solution isn't totally without merit. The harder part is deciding whether or not that's an unacceptable burden to repeatedly ask developers to *create more* maintain and revise as opposed to allowing room for creating new and better. Again, I think this idea falls into the category of *a* solution, not The Solution.

My evening was spent in the Drupal Association meeting for the Permanent Members. I'm sure the important parts of the meeting will be covered in the various sessions the association will have tomorrow. I got some photos.

When I got back to the hotel, Nikki Henninger and Brenda Boggs were in the Royal Sonesta Business Center to get some Internet (it's not working in the rooms). Nikki and I had a short talk about when we worked and then stopped working at Trellon. We seem to share some of the same observations from our time there. Cheers to morbus, who was also a fun partial topic of the conversation.


Topics: · ·
» deekayen's blog · Printer-friendly version · Send to friend

Thanks

Drupalcon Boston 2008, demonstrating where Drupal can go with the Semantic Web. It includes the original narration, which is perhaps a bit more of a firehose than the narration given by Dries at Drupalcon.

reply

It's like been there!!

what an excellent series of posts! with so many names, pictures and references, you have made me feel like if I was there. It is not only interesting about the various topics, but because of the way it is written... thank you!

reply

Oh hey, deekayen. Now I have

Oh hey, deekayen. Now I have made the connection of who you are, duh. You are the guy I was thinking of who "returned", by the way.

reply

cck/custom node module

David,

I can relate to what you are talking about here. For the longest time, I hear drupal devs encourage cck use and discouraging writing node modules. I understood where they were coming from, but everytime I try to do anything very compledx with CCK, I seem to hit road blocks. I started a project at UNC Charlotte last year using CCK and quickly dumped that for a content node module. It really was a turning point for me and turned out to be the best decision. I was able to still leverage actions and workflows. Best part was I added custom actions in the custom module.

Are you using SVN for dev/testing/prod? I am now, but would love to hear details of your development workflow. I am basically using MAMP on my MacBook Pro--build new site, check in to SVN repo, checkout to test servers and prod servers as needed. I am using Navicat to move databases around easily. I am still trying to figure out the best ways to deal with updating sites already in production with live data. Using hook_menu() and hook_block() is very intersting..

Thanks! Shrop

reply

We're using SVN to check

We're using SVN to check stuff in, but it's not totally worked into the development workflow to check out to live. SVN is only a recent development, so we're still working out the policy.

reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options