News by Daniel Vega

This feed does not validate. (details)

Learn To Evaluate Your Code

23 Jan 22:20
I am in the middle of reading a new book from the Head First series titled Object-Oriented Analysis & Design. I am on part 2 of chapter 5, good design = flexible software. There is a very important paragraph in this chapter that I would like to share with you. If you are reading along at home we are on page 246. It's easy to rip apart someone else's code, but you've got to learn to look at your own code, and identify problems.

Ben Coming to Cleveland?

22 Jan 22:51
Is Ben Forta Coming to Cleveland? Help the Cleveland ColdFusion user group answer this question. We are working hard to bring Ben to Cleveland towards the end of April / Beginning of May. If you are in or around Cleveland please pledge your support by registering for the event here. You can also learn more about our efforts and getting Ben to Cleveland on Brian Meloche's (our fearless leader) blog.

Ben Coming to Cleveland?

22 Jan 22:51
Is Ben Forta Coming to Cleveland? Help the Cleveland ColdFusion user group answer this question. We are working hard to bring Ben to Cleveland towards the end of April / Beginning of May. If you are in or around Cleveland please pledge your support by registering for the event here. You can also learn more about our efforts and getting Ben to Cleveland on Brian Meloche's (our fearless leader) blog.

Dynamic XML Settings Download

10 Jan 03:12
A couple people have emailed me and asked me to post a complete code example. If you click on the download link below you will get a settings.zip file that contains 3 files Application.cfc Index.cfm org.danvega.Settings.cfc The Application component will show you a quick of example of how to instantiate the object and place it into the application scope. I would normally do this via ColdSpring but for the example I will keep it simple.

Dynamic XML Settings Download

10 Jan 03:12
A couple people have emailed me and asked me to post a complete code example. If you click on the download link below you will get a settings.zip file that contains 3 files Application.cfc Index.cfm org.danvega.Settings.cfc The Application component will show you a quick of example of how to instantiate the object and place it into the application scope. I would normally do this via ColdSpring but for the example I will keep it simple.

Dynamic XML Settings Part II

8 Jan 12:10
I just finished implementing the other methods in my new Settings component and I thought I would share it with everyone. First I have made some changes with the init method. I broke the path of the file up into a path and file name so now you pass the path that would hold settings file and a file name. This approach is scalable and will allow for multiple config files if need be. First I will show you my 2 new methods and give you a complete code listing at the end.

Dynamic XML Settings Part II

8 Jan 12:10
I just finished implementing the other methods in my new Settings component and I thought I would share it with everyone. First I have made some changes with the init method. I broke the path of the file up into a path and file name so now you pass the path that would hold settings file and a file name. This approach is scalable and will allow for multiple config files if need be. First I will show you my 2 new methods and give you a complete code listing at the end.

Dynamic XML Settings

8 Jan 11:07
I am working on a project and in this project there are many variables I want to store in an xml file. I could just stick them all in there as key/value pairs but I enjoy some type of structure in my application settings (as well as life). Typically I break my settings into logical groups such as the example settings.xml file below. settings.xml mysite v 0.1 {alpha} http://www.mysite.com https://mysite.com mydsn mssql me pass mail.mysite.

Dynamic XML Settings

8 Jan 11:07
I am working on a project and in this project there are many variables I want to store in an xml file. I could just stick them all in there as key/value pairs but I enjoy some type of structure in my application settings (as well as life). Typically I break my settings into logical groups such as the example settings.xml file below. settings.xml mysite v 0.1 {alpha} http://www.mysite.com https://mysite.com mydsn mssql me pass mail.mysite.

Random CFC

29 Dec 05:13
Today I was inspired to write a Random utility component. The first article that inspired me to write this utility was Pete Freitag's article on selecting a random row from a database table. The second was Ben Forta's article on how ColdFusion is not a DBMS. The main point was to leverage the DBMS whenever possible and let ColdFusion do the job that it needs to.
Pages   ← previous   next
1 2 3 4 5