A night of ColdBox
http://blog.coldboxframework.com/post.cfm/coldbox-presentation-recordings-at-ocdev
http://blog.coldboxframework.com/post.cfm/coldbox-presentation-recordings-at-ocdev
Let's say I have a method that returns an array. Example below:
As you can see, a very simple example. So now, in my code outside my method I want to be able to access let's say item number 3 from the method call and the key called awesomeLevel from the structure call. Then I can do this:
item3 = getArray()[3];
MyAwesomeLevel = getStruct()['awesomeLevel'];
How cool is that, finally!! Array syntax from method calls.
Let's say you want to assign a value to multiple variables in coldfusion. You would usually do this:
Name = "Luis Majano";
ColdboxAuthor = Name;
CodexAuthor = Name;
AwesomenessAuthor = Name;
That is really neat right, well, Railo makes it fun!
Name = "Luis Majano"
ColdboxAuthor = CodexAuthor = AwesomenessAuthor = Name
How about that!! I can assign values to multiple variables, by just concatenaning the equals. Keep exploring Railo and you will find some nice hidden gems.
/* Start Exporter */
sqlBuffer = createObject("java","java.lang.StringBuilder").init('')
/* Create Function Namespace */
createNamespace(fncNamespace)
/* Read fnc Library */
xmlDoc = xmlParse(expandPath('web-cfmfunctionlibrary_1_0'))
fncXML = xmlSearch(xmlDoc,"//function")
fncXMLLen = arrayLen(fncXML)
I like this! No more noisy semi-colons. Just beware that if you are doing multiple statements on a single line, you will actually HAVE to put in the semicolons.
function formatnow(){ return "#dateformat(now(),"yyyy-mm-dd")# #timeformat(now(),"HH:mm:ss")#"; }
A part from that, I love it!
You can also register for our CBOX-100 Pre-Conference ColdBox Training class while you are there. Register Now!!
The websites look phenomenal and we also get a documentation website powered by Codex. I wonder who did the initial documentation?
You can download the open source version of Railo from their nice downloads page.
http://ocdev.org/post.cfm/ocdev-april-meeting-coldbox-platform-more-than-mvc
I completely forgot to post about this and post a link to the event we hosted at Cal Poly Pomona last month between Adobe and Microsoft. The debate was excellent and we had great attendance for the IECFUG. We where able to get more students and interest in our ColdFusion User Group and hopefully get to recruit some more after an awe inspiring presentation by Kevin Hoyt.
Unfortunately, I won't say anything bad about Microsoft because I won a copy of Vista Ultimate! :) (hmm, what did I do with it?)
If you want to see the video for yourself and see how the debate was laid out see who won, check this link out:
http://video.csupomona.edu/streaming/Events/FutureOfComputing.html
SELECT SQL_CALC_FOUND_ROWS
Users.user_id, Users.user_fname, Users.user_lname, Users.user_email, Users.user_isActive
FROM wiki_users as Users
WHERE Users.user_isActive =
LIMIT
SELECT found_rows() AS foundRows
First of all, do you see any problems with this approach?
Second, how would I reproduce this in MSSQL?
ColdBox 2.6.3 was released today and you can now download it from the main coldbox website.
This version tightens up the new features introduced into 2.6.2 and actually did more optimizations and cleanup. So you will see that the core size has actually been reduced in this release (Go figure!!). We have also introduced some nice enhancements to the new features introduced in 2.6.2 and you can read all about it in the What's New Document for 2.6.3. You can also read all about the fixes and optimizations in our Latest Release Notes.