Prototyping and Rails
Marlon said: I've been a fan of HAML since before I was a fan of SASS! I love not having to remember to close tho...
[More]
Ayn Rand's Objectivism Embodied
jason olmsted said: @Hal - I really should remember to check your blog more frequently, I enjoy the thought provoking ar...
[More]
Posted At : May 16, 2011 6:51 PM
| Posted By : Admin
Related Categories:
Project Management,Code
Recently, I was commissioned by Vin 65 to write up a guide to hiring and cultivating great developers. They were generous enough to allow me to share it with everyone. It's much too long for a blog post, but here's the URL to the PDF: https://github.com/halhelms/Hiring-and-Cultivating-Great-Developers.
Over the last couple of weeks since starting this "Learning ColdBox" series, I've been working more extensively with the framework. There's a lot in ColdBox and it took me quite a while to really feel comfortable with it. Having gotten over that initial hurdle, I'm very glad I did. Many thanks to my colleague, Ben Densmore, who has been always willing to answer my naive ColdBox questions -- even at 2.00 AM. I'm by no means an expert; I've just gotten to the point where I'm happy being a bit reckless!
Before we get into writing the application, I want to ask about logging with LogBox. A while ago, I felt the need for something more than I could get with native logging. During development, I wanted to have the ability to log something. That something might be a simple value, an array, a struct, an object, etc.
While I didn't want logging to occur when code moved to production (for obvious reasons), I did want to leave the code in place (so that, for example, I could turn it on if some anomaly occurred or if I wished to time certain processes while running in production). And finally, I didn't want to wrap logging code in if statements. That's ugly and, with enough of them, could become expensive. What to do?
With the (very) basics behind, I'm ready to try my hand at a CRUD application. (Hopefully, that won't prove to be prophetically named...) But before I start, I want to explain how I do things presently -- and ask expert ColdBoxers for some guidance as to what should be changed to best use ColdBox.
In Learning ColdBox: I, we began creating an app by getting ColdBox installed and responding. Today, we're going to go a bit deeper -- adding event handlers and associated events.
So...my first step is going to the ColdBox site to download the framework: http://www.coldbox.org/download. I created a coldbox directory directly under wwwroot. For now, I'm going with my idea of a Philosopher Battle game (see yesterday's post). (BTW, as Phil Nacelli pointed out, ColdBox comes with several sample applications already! Why not just one of these? See below...) So, let's start with creating a "Philosophy Game" app.
Lately, I've undertaken to learn ColdBox, as I'll be using it on an upcoming project. ColdBox is a powerful, robust ColdFusion framework. Luis Majano and contributors have done a pretty terrific job, it appears to me. In fact, all FOSS developers could learn a great deal from how well documented the project is.
So I mean the project no disrespect when I say that, as a newb, what would be most welcome is a small but comprehensive sample application. Since version 3.0 was just released, (http://www.coldboxframework.com/), it seems that this would be a perfect time for such a sample app/tutorial.
Posted At : November 20, 2010 5:14 PM
| Posted By : Admin
Related Categories:
Puzzle,Code
Here's another little puzzle. Here, we're trying to come up with the least processor-intensive algorithm for determining, given an array of random integers, how many are even?
I have a solution that works, but I'm not sure it's the most efficient. What's your solution? (If you want to see mine, highlight the space below -- the code is white on white).
function evens( arr ) {
var numFound = 0;
var i = arr.length;
while ( i-- ){
if ( arr[ i ] % 2 > 0 ) {
continue;
} else{
numFound++;
}
}
alert ( numFound );
}
Posted At : November 20, 2010 1:13 PM
| Posted By : Admin
Related Categories:
Puzzle,Code
Here's a fun puzzle for you to try in the language of your choice. We have two boolean contrarians, A and B. (A contrarian might be too-simply defined as someone who opposes the conventional wisdom on a topic.) Since they're contrarians, we expect/want them to not agree on a topic. If they do, we're in trouble.
What's the shortest function that will return true if A is true AND B is true OR A is false AND B is false?
A recent email asked for my advice: "Our 'team' has 9 developers. We're all doing our own separate projects. That seems bad to me. But my boss says it's more efficient. Is he right? If he's not, what can I tell him?" Hmmm...excellent question -- and in an area that I think the right decision can have a huge impact.