Should I use views or write my own module?

I just spent a good 8 hours attempting to write a custom drupal module that provides search functionality over a content type. It was a keyword and category restrictors.

Taking a break from coding, I did a 2nd pass at the views module. 5 minutes later, I had completed the functionality of my module!

I think I am going to use the views module for my functionality, but I feel kind of like I am taking the easy road here, but this is an exception post on why to use views over a custom module. For me, it boils down to maintainability. Do you want to maintain 1000 lines of code over the next several years?

http://drupal.org/node/114920

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options