CFML 101: Using CFML to read and update INI files.

{ Posted By : Eric Cobb on February 11, 2011 }
2584 Views
Related Categories: CFML 101

In this installment of my CFML 101 series, I'm going to show you how you can read and update a INI file with just a very little bit of code. I'll have to admit, when I first tried to do this I was surprised at how simple it was. I guess I shouldn't have been surprised, though. Making hard things easy like this has always been one of the hallmarks of CFML. This is true regardless of whether you're using Adobe ColdFusion, Railo, or Blue Dragon. The CFML language is built in a way that allows you to accomplish a lot of work with just a little bit of code. So many things are just so neatly packaged together that all you have to do is call one tag or function, and it runs a whole whoost of java code behind the scenes for you.

More »

CFML 101 - The importance of proper variable scoping

{ Posted By : Eric Cobb on September 22, 2010 }
2665 Views
Related Categories: CFML 101

One thing that always surprises me is the number of CFML developers who either don't use, or don't know about, proper variable scoping. I see it almost every day, whether it be at work, on side projects that I help out with, or even many of the open source CFML applications that I download and use. The lack of proper variable scoping seems to be rampant throughout the CFML world, most especially when it comes to the VARIABLES scope.

More »

CFML 101 - Fun with Lists

{ Posted By : Eric Cobb on December 23, 2009 }
3785 Views
Related Categories: CFML 101

I love lists in CFML. I try to use lists whenever possible. They're efficient, clean, and powerful. I've wished for a long time that SQL Server and Oracle had built in list functions that were as easy to use as the CFML list functions. I'm not going to go over all of the list functions here, but I will cover a few examples and ways they can make your life easier.

More »

CFML 101 - Rookie Mistakes Part 2

{ Posted By : Eric Cobb on December 17, 2009 }
3286 Views
Related Categories: CFML 101, CFML

Just as in Rookie Mistakes Part 1, this post will cover mistakes that we've all made at one point or another. These are things that seasoned developers instinctively know to do, but beginners may not realize are better or more efficient. Some of this post is based loosely on Adobe's Coding Best Practices for ColdFusion Performance, with a few of my own personal favorites thrown in there.

More »

CFML 101 - Rookie Mistakes Part 1

{ Posted By : Eric Cobb on December 7, 2009 }
3643 Views
Related Categories: CFML 101, CFML

This is the first in what I hope to be a continuing series of CFML 101 articles. My intent is to produce a blog series aimed at the beginning CFML developer, one which helps to explain basic techniques and concepts to those new to the CF world. The topics and examples covered in this series focus on the CFML programming language in general, not a specific application server. So whether you're using ColdFusion, Railo, or Blue Dragon (referred to as CF/R/BD from this point forward) to run your CFML applications, these concepts still apply.

More »