March 2009
16 posts
2 tags
S-99: Ninety-Nine Scala Problems →
2 tags
Flushing the OSX DNS cache
I need to do this often, but not often enough to remember the bin names.
Tiger: lookupd -flushcache Leopard: dscacheutil -flushcache
2 tags
ERB and JSP and ASP all have the fatal flaw of allowing code in the view.
– Lift framework documentation
3 tags
The Grey Lens Man's View: The Book Of JOSH →
I’ve made several posts about Scala and another reblog about Urbantastic, who’s employing an interesting static-view-dynamic-content mechanism. This link is much about Scala in the enterprise, and that’s exciting. However it’s also about how Java the language is fading, while Java the platform continues to rise. Very interesting, even exciting.
5 tags
Legacy PHP on Quercus: Checklist
Since Friday I’ve been playing with Quercus off and on. Running pieces of my company’s legacy code, playing, integrating and accessing Hibernate in PHP code (pretty sweet), and then actually adding some simple (but sane) Hibernate management (initialization and implementing the Hibernate session-per-request pattern for PHP scripts).
Throughout my work today, I experimented with...
3 tags
Sundays, Numeric Literals
Programming languages generally allow you to deal with numeric values using a literal syntax. In Ruby (irb), for example:
» 5*5 => 25
This is a literal expression of multiplying 5 by 5, resulting in 25. Often, languages also provide a literal syntax for expressing numbers of a different number system. Consider this snippet of Java code that creates three integer primitives, each with a...
2 tags
Dean Wampler and Alex Payne on Scala →
3 tags
Functional Programming for the Object Oriented →
I’ve found a nice series of introductory articles on the Scala programming language, a recent obsession of mine. If, like me, you’ve found some of the documentation on the official site too theoretical, I recommend this article as a good starter. 20% theory, 80% pragmatism.
3 tags
10 is the new 15
I’m on my lunch break and am reading a nice article about software architecture. I smiled (and then tumbl-tweeted) when I read a part that specifically called out method length as a sign of poor design. I’ve come to this conclusion lately and have been fairly vocal about it.
The author steps it up a notch though, asserting that 10 lines should be the maximum of any method in Java (he...
2 tags
My rule of thumb on Java projects says that no methods should ever be longer...
– Evolutionary architecture and emergent design: Test-driven design, Part 1
1 tag
4 reasons your methods might be longer than 15...
You were lazy.
You were rushed to the point of irresponsibility.
You don’t have a clear understanding of the problem you’re trying to solve.
Your chosen language sucks.
Facebook in 2010: no longer a walled garden →
And I was just thinking how flawed FB’s paradigm was. This could change that.
3 tags
RubyJax: March 24, 2009 - Groovy/Grails/Java MVC →
Bring the nerdy.
3 tags
Actors, Mina, and Naggati →
Interesting article on concurrent programming in Scala using some functional voo-doo.
2 tags
A Java Interface to the Bit.ly API
I’ve just pushed some alpha code to a google code project site, implementing a Java interface to the bit.ly URL shortening service API. There’s still a bit to do in the way of negative testing and data access for the /info and /stats calls, but it’s a start. Give it a hack if you’re so inclined: http://code.google.com/p/bitlyj/.