Duck Typing is a bit of a buzz word. If you don't know what it is, it's likely that you've used it, or at least read code that uses it, without knowing it.
There's a million posts on duck typing. Most try to get all meta and use an example of a class...read more
Years ago, on the rules page of an online forum, I read something that stuck with me. "Play the ball, not the man". Here's an example of the former:
Hi Bob, I'd agree with your point A, but your point B contradicts C and D, which I outlined above...read more
So. My microcourses idea sucked.
The short version of the above link is this: Newbies could do with more structure at events like Dev Hub and Rails Camp. We could make a bunch of short (1-2hr) 'microcourses'. Each would cover a specific topic, and...read more
Update: I am going. Yay. And I made some virtual scrap paper for Conway's Game of Life.
Here's a little code snippet I never remember, and often find myself looking for in past projects. Figured it'd save me some time to paste it here.
Instantiate a model and execute some SQL (or do whatever you want) after a migraton has run:
I came across an issue where the server would send email fine, except if it was sending the email to the same domain as the website it was being sent from (eg. sending from the www.clientsdomain.com.au website to firstname.lastname@example.org or similar...read more
Great question (or rather, great answer) hereread more
Eleanor Saitta was the closing speaker for RubyConf Australia, and her speech ended something like this: "This conference was very white, and very male. Here's a list of 37 women that you could have invited to speak." (shows slide of names).
Not surprisingly...read more
Rubyists across the globe will no doubt be flocking to my blog by the millions to read my wrap up of day 1. Not really. But my business paid for my ticket, so I should make some notes or something.
Here's the talks I went to, and the main points I...read more
Before I started unit testing, back when I knew it was all the rage but just hadn't got around to learning it, or wasn't sure if it'd be worthwhile for me, I wrote down these questions. It took me a while to get round to it, but I finally wrote answers...read more