Thursday, November 8, 2012

In The News

My recent work with the city of Augusta,, was featured in an article that appeared on the Northern Kentucky University home page.  You can read the article here.

Saturday, November 3, 2012

Content Management Systems: 4 Pros, 4 Cons

Content Management Systems (CMS) fascinate me as a web developer, so much in fact that they were the topic of my senior paper for my undergraduate degree. CMS is a polarizing topic among web developers; many dread their usage in anyway, but others use them exclusively for web development projects. Like anything else, there are pros and cons to using a CMS, and the choice to use one depends on many factors, including your skill level as a web developer, the development environment you are in, and what the overall purpose of the site is. I have experience developing in Drupal and Joomla as well as custom solutions, so I sat down with a critical eye and listed the four best and worst aspects of CMS.

The Cons 


#4. Modules
Web projects by nature are very diverse, meaning accommodating for the needs of everyone with a single monolithic framework would be impossible. To solve this, both Joomla and Drupal have a plugin system, where small collections of scripts (a Module in Drupal, Extension in Joomla) interact with a core API to give unique functionality to the site. This is slightly annoying for a developer, especially in Drupal, where the core is so bare bones and the most basic functional aspects of a website require the installation and configuration of a module. The problem with this architecture is that it introduces a slew of new problems to the CMS via third party developers. Individual modules tend to bring bugs of their own, which may never be resolved, especially if developed by an inactive open source community. Also, because the development is managed by a third party, so is the documentation for the module, which is generally spotty or non-existent. Some companies build proprietary modules and support them, but it usually comes at a price, so your free CMS is suddenly not so free anymore. The biggest problem third party module developers introduce is security holes. Every time you install a module, you essentially have to trust that whoever wrote the module took the necessary precautions to ensure the integrity of the sites security remains intact. The most common way CMS sites get hacked is through vulnerable modules, and although both Drupal and Joomla do their best to ensure modules maintain a level of security, there are always some that slip through the cracks.

#3. Bloated Code
By their nature, CMS sites produce bloated code. At the end of the day, when the CMS core, a handful of themes and dozens of modules are used in your site, you end up with a ton of resources, and if not managed correctly, can become a code bloat nightmare. The primary sources of code bloat in CMS is a result of the level of fine tuning regarding the display of your site. Poorly written theme templates output unnecessary markup and sloppy use of inline CSS, replicated a couple hundred times, can greatly increase your code bloat. Code bloat can also arise in the form of poorly written modules that do not take full advantage of what the core already has in place. Code bloat causes numerous problems. Debugging bloated and poorly written code makes debugging web development projects, which is already an arduous task, even more difficult. Poorly structured markup can also interfere with your site's SEO, as crawlers like Google and Yahoo respond better to cleaner code. Finally, bloated code takes longer to load, which means a slower site all around.

#2. Versioning
CMS versioning is the single greatest irritation for me as a developer of a CMS site, without question. CMS are constantly under development to fix bugs and close security holes. In the past five years, Drupal has gone through four major versions, and Joomla three. This averages a little over a year before a version update, which can create major problems for the site developer. The rapid change of major releases means that the documentation and third party developers are constantly trying to catch up with the core development. In the case of Drupal, it is common to find three sets of documentation (for 6,7, and 8) interwoven in the same page. This makes the documentation difficult to navigate and extremely confusing to new developers. Modules, too, must be updated for each version of Drupal, which means that modules exist for some versions but not others. There is nothing more frustrating as a developer than finding the perfect module, only to realize it has not yet been updated to the version of Drupal you have installed. In the end, what these factors mean is that you are left with two choices. First, you can keep your site in its current version and live with the deficiencies, or you can upgrade your site every year and go through the painful site migration process, which if done incorrectly, can damage your site beyond recognition. CMS means you are at the mercy of the speed of core development, which for Drupal and Joomla is rather quick, while hundreds more CMS develop too slowly to meet the growing needs of web developers.

#1. Speed 
This is more of a culmination of the previous points. While you may see an decrease in development time from the use of modules and templates, the learning curve and the time it takes to look up information in the docs is considerably more than a custom solution. Code bloat and poorly configured sites will preform slowly, which can cost you big time. Another speed disadvantage comes from being reliant on the provided user interface to make changes to the site. When using the overlay administration in Drupal, you'll be forced to wait a few seconds while each dialog loads. Joomla seems to have a more responsive user interface than Drupal, but it has its fair share of usability issues that can slow your development process.

The Pros  


 #4. Modules 
If you've read up to this point, this header should be familiar to you. Modules do accomplish a lot of good in the plugin architecture that many CMS employ. Although there are a lot of problems with having major third party development, it means that you won't have to write very complex modules yourself. For example, both Joomla and Drupal have a full fledged e-commerce module that takes payments, sets up a shopping cart, and can manage site subscriptions. For large tasks like these, a module will move your project along much faster despite whatever documentation/versioning issues there are. Another obvious benefit of modules is that it encourages writing re-useable code, which is something I strive for in every project I do. By allowing the user to write custom modules, they are able to create unique functionality that is applicable to a product, and most likely, a family of similar products made by the same developer. Drupal and Joomla modules are very portable and easy to transfer from product to product, unlike code from custom built solutions.

#3. Themes 
Most internet users can look at a site and give the approximate date it was designed. Really bad sites get the "wow that looks like 1997 all over again" whereas some that don't pop as much as modern sites are denoted as "slightly outdated" or "2005ish". The reason for this is that web design is a trendy business and over the years we have seen blocks of traits that define an era in web design. What this means for a developer is that if you're designing a site today, you generally want to look around and pull elements from modern designs into your design. This essentially means that many sites made around the same period will have the same basic layout: Logo top left, horizontal navigation (drop down optional), large banner image, grid based layout, and a footer with contact information. We already know this is the general layout of our site, so why should we code it every time? Themes allow users to reuse and share designs, which means that the majority of those "common traits" I mentioned above will exist in hundreds of themes. Theme developers keep up with web trends, so all you have to do most of the time is swap out colors and images and occasionally re-position stuff. Some might see that as an "easy way out" or being uncreative, but I see it as another chance to avoid NIH syndrome.

#2. Team Based Development 
If you are working with a group of developers and copywriters, especially those that are non-local, using a CMS can greatly streamline workflow. By assigning different roles and permissions, a CMS can manage what each developer is able to do with the content. By default, Joomla has permissions set up for Author, Editor, and Publisher, which allow a user to compose, revise, and post content, respectively. Because this functionality is built into the system, you can organize your work roles and enforce them on the project. CMS typically will have an internal log on what the users are doing, so its easier to oversee development and generate work reports. Joomla also has a built in change control mechanism, so that if a user is editing an article, it will be checked out and no one else can edit it until it is checked in. To me, this seems like a valuable tool to ensure changes are correctly made. It should be noted that in both Drupal and Joomla, a change control system like SVN could be effectively employed to protect changes made to modules or theme files.

#1.  User-Centeric Websites 
I usually classify websites into three categories, static websites, data-centric websites, and user-centric websites. Static websites function as merely billboards that are rarely changed. Data centric sites are dynamic, but may pull data from other online sources or be updated by me, the developer (If needed, I'll write a simple script with a database, like the schedule for TG Entertainment). User-centric sites are those that focus exclusively on user content; reviews, rankings, comments, blogs, etc. Any CMS worth using will offer functionality ranging from user blogs to full fledged social networking. Writing some of these aspects from scratch would be possible, but very difficult. The key here is to pinpoint exactly what the site needs and whether it is truly user-centric or just data-centric. My distinction is like this; if the site owner is the only one updating the site, its probably more on the data-centric side and can be made with a few simple scripts or third party libraries. If the end users are making frequent updates in addition to the site owner, it is probably more user-centric, and a CMS could be effectively utilized.



In closing, there is a definite place for CMS solutions, but it is a constantly evolving place as CMS continue to grow and advance. When it comes down to it, choosing to use a CMS or not largely depends on you, the developer, and the project you're building.