Posts Tagged beginner

Adding Emphasis with jQuery

Decreasing the emphasis of elements lower on the visible screen provides a less distracting environment for your users.

Many websites these days are very graphic intensive, have a ton of contrast between content the the background, or are simply overly complicated. One method to reduce this visual noise and provide a more harmonic user experience would be to downplay elements on the screen that the user is likely not paying attention to.

(more…)

Making Bad Code Good

Following best practices is an easy way to keep maintenance costs down.

After listening to Dan Wilson’s session on Making Bad Code Good at cf.Objective() 2010, it really got me to thinking of some best practices that I wish everyone would follow in order to keep that maintenance period (which consumes a majority of a developer’s time and effort) as short as possible.

(more…)

Faster Development with Mach-II’s View Tag Library

Mach-II offers several tag libraries to aid in fast application development. The view tag library reduces the time spent in writing mundane or complicated code in your views.

A major headache that many developers experience when coding their Mach-II views is the fact that they end up writing and re-writing the same (or similar) complex code in order to output simple elements like anchor tags or alternating row colors in a list or table.

Luckily, since version 1.8, Mach-II offers the view tag library to not only help reduce the amount of code required in each view, but make the code easier to read and look cleaner.

Mach-II View Tag Library

(more…)

Search Engine Safe URLs with Mach-II

Mach-II provides a convenient way to create Search Engine Safe (SES) URLs for your web application without getting your hands dirty.

What are Search Engine Safe (SES) URLs anyway? Typical dynamic pages generated by server-side code require that either FORM or URL-scoped variables be provided in order to differentiate one dynamic page from another. A majority of these URLs look plain ugly: index.cfm?event=welcome&firstName=Adrian&lastName=Scott.

Wouldn’t it be a lot nicer if we got rid of the ?, =, and & symbols in favor of a more structured (and clean) method like: index.cfm/event/welcome/firstName/Adrian/lastName/Scott/. Not only are URLs like this easier to read and understand, but they supposedly also increase search engine optimization.

SEO Consultants – Search Engine Friendly URLs

(more…)

Mach-II First Steps

Mach-II is an event-driven, MVC framework which gives CFML developers a highly flexible and maintainable environment to work with.

To start off, I am a pretty big advocate of the Mach-II framework and entirely biased for its use. I’ve been using Mach-II for almost 2 years now and have loved every second of it. My background has been Java development, so I’m no stranger to object-oriented design, which Mach-II really prides itself on.

One of the biggest frustrations in ColdFusion-land, for me anyway, was the fact that everything was procedural. Meaning, the more code that you wrote, the more it would start to resemble something you’d find on your plate at your favorite Italian restaurant. Prior to using Mach-II I really pushed my peers into making use of as many CFC’s as possible, essentially generating my own framework of sorts.

(more…)