Jul 30
Allright, so I've always known that to instantiate a component using the createObject function, you have to provide the dot-delimited path of the component. Like so:
Today, I was looking through the ColdBox framework documentation and I came upon this line of code:
I thought that this couldn't be right because the getSetting("AppMapping") gives you the slash-delimited path from the root of your site to your app. So I tested out the code myself expecting to get an error and guess what -- it worked!
So then I thought I'd try just hard-coding the slash-path that is returned by getSetting("AppMapping"):
It still worked. Even though now the path was a combination of slashes and dots. So I went ahead and just hardcoded all slashes.
You guessed it -- works fine!
So it seems like using dots, slashes, or a combination of the two works. Is anyone else surprised by this besides me?
Jul 25
I'm a big fan of the ColdBox framework. I think the core MVC part of the framework is very intuitive and easy to get started with (the loads of documentation also doesn't hurt). And then as you get more comfortable with it and want to implement more advanced techniques, you can take advantage of the vast array of tools and extension capabilities that it provides, which is why (as Luis Majano frequently points out) it's more than just a framework, but a also a software development toolbox.
Be that as it may, I believe it's always helpful to look at different frameworks and methodologies for ideas and inspiration. The other day, I was checking out the ColdFusion on Wheels site.
Read more...
Jul 22
At the age of 3, my son Eli was diagnosed with PDD-NOS, which is a "mild form" of autism. Although his condition is not as severe as those on the other end of the autism spectrum, he definitely has challenges (mostly in the realm of social skills with peers and language) that we are helping him overcome. The great thing is that he has deinitely made a lot of progress since his diagnosis (he is now 4 and a half).
Read more...
7-25-2008
7-22-2008
6-29-2008
5-20-2008
5-14-2008