Feb10

More STI Tricks

ruby OOP STI | comments

Obviously, I’ve been using STI for a recent project.

Alex Reisner has a post full of tips, a cool one being overriding the model_name class method for your parent class, so that when you do form_for @sub_class... you still get params[:parent_class] delivered to your controller.

Continue reading »

Feb08

Getting a pretty list of subclasses

ruby OOP | comments

Perhaps you are using something like Single Table Inheritance, or are simply for some other reason using a parent class with several subclasses. It can be convenient to be able to quickly get a list of the subclasses of a given parent class.

Continue reading »

Jan22

Time Hacks

time_management hacks | comments

You have a lot of things you want to get done; you have the same number of hours in a day that everyone else on the planet has. Sure, the idle rich might have a little more free time, but regardless, there’s still only 24 hours in a day. How are you going to get all your work done, as well as work on your favorite side-project(s), open source projects, learn new programming languages, experiment with new techniques, make that iPhone app you keep mumbling about at networking events, hang out with your friends and family, eat, sleep, watch the Office, read that new novel/tech book/blog post, write your blog/book/ebook/great american novel/epic comic book trilogy, not to mention floss your teeth?

Continue reading »

Dec17

Not To Be Confused With Clojure

clojure java lisp | comments

Clojure is a lisp which runs on the JVM. So chances are, that’s either interesting or it isn’t. If it is, you would probably enjoy Clojure For Newbs, these being the notes to a recent presentation of Clojure by Minneapolis’ own lof.

Nov08

Closure

javascript google | comments

Closure is the name some javascript tools which Google made and decided you could use, too. Just barely peeking into these, and they do look pretty interesting.

Continue reading »

Oct10

hello, assert

programming js what_if helloworld | comments

Tests are enterprisey. At least, that’s the impression I have at times. If not enterprisey, they are something extra and not fun. I don’t know if I agree any more.

What if, for example, the canonical first program was not hello_world but some sort of assert() function or statement? What is hello_world, anyways, if not a test that the environment is working and that the programs we write will run, and do what we want them to do?

Continue reading »

Oct09

Scanty on Dreamhost

ruby dreamhost sinatra scanty | comments

I didn’t use capistrano, or really use any best practices whatsoever. This was a quick and dirty straight-to-the-server install.

Scanty is an extremely lightweight blog written using Sinatra and Sequel. Here’s how it was rolled out here.

Continue reading »

Oct08

Something for fun

about | comments

The title is a clear nod to _why’s poignant guide, of course. This isn’t intended in any way to fill the void left by the recently vacated _why, or the defunct hackety.org; rather, it is an attempt to throw random debris of various types into said void. Perhaps you can do better; if so, you probably should. I will applaud your efforts, as will we all. Consider yourself thanked in advance.

Continue reading »
Archive