Browse: Home / development
By barneyb on March 5, 2009
Project Euler is a collection of mathematics/computer science problems, as you probably already know. I've solved almost 50 of them so far, and I've developd a collection of utilities to make my job easier. Some of them (factorization routines, prime generators, etc.) I'm not going to share as they are fundamental to solving certain problems. [...]
Posted in development, groovy, java, project euler
By barneyb on February 5, 2009
In my ongoing rampage through the Project Euler problems I've needed a prime factorization routine several times, and figured I'd share it as a complement to the sieve I shared last week. Implemented in Groovy, of course. Typing is a little strange on first glimpse because Groovy uses Integer by default which only supports values [...]
Posted in development, groovy, project euler
By barneyb on February 5, 2009
In the comments to my post about my prime sieve from last week, Duncan pointed me to Project Euler, which is a collection of math problems that you can solve. Not sure if it makes me crazy that I think it's really cool, but I do. Even better, once you solve a problem, you gain [...]
Posted in development, project euler
By barneyb on February 4, 2009
This is the final expected RC for CFGrovoy 1.0 and includes a couple more API tweaks (backwards compatible, of course). Bad form to do this right now, but like the attributes-to-params change, I want to get them in before the 1.0 release so I can build the next round of enhancements without mucking up the [...]
Posted in cfml, database, development, groovy, tools
By barneyb on January 29, 2009
Ok, it's really Eratosthenes', but it's my implementation (in Groovy, of course) along with simple display (in CFML, of course), and can be found here (with full source, of course). If you just want to see the core sieve, here it is ('bound' is the upper range of the search):
class Node {
[...]
Posted in cfml, development, groovy
By barneyb on January 16, 2009
Four things of import, in no particular order:
First, another bug fix to CFGroovy today, this one more serious. I made a silly blunder in the way I was executing scriptlets that lead to a slow memory leak from extraneous java.lang.Class instances being created. It also reduced performance of scriptlets by a tangible amount. If you're [...]
Posted in cfml, development, groovy, tools
By barneyb on January 13, 2009
And why am I writing about this? Because it's also the first CFGroovy / Hibernate app we've deployed into production. So how did this first real-world adventure go for my youngest project? Just swimmingly.
The adoption was actually championed by Joshua since I was working on another project at the time. We went skunk-works, helped Koen [...]
Posted in cfml, development, groovy, personal, tools
By barneyb on January 7, 2009
First, a confession. I cheat hard-core on the deployment for most of my personal apps. In almost all cases I check out a working directory in the production webroot and just use `svn update` to "deploy". I've a couple apps that I use an Ant/Rsync-based mechanism to deploy where I actually have stuff to build, [...]
Posted in cfml, development
By barneyb on December 28, 2008
I did a little experiment this weekend. I needed (well, wanted) to build a really simple little photo viewer application. Create a gallery, add some photos, view the photos as a slideshow. Really basic. The catch is that I build it using no framework at all, aside from Application.cfm. Note the 'm'. And no IDE: [...]
Posted in cfml, development, fusebox, tools
By barneyb on December 20, 2008
If you're showing a textual label such as "N items found", please, pretty please, put the logic in there to hide the "s" when N is equal to one. Same goes for changing "children" to "child", etc. It's not hard, and it makes your software look retarded (or super enterprise-y) when you don't do it. [...]
Posted in development