My first novel is available!

Read Singular
Zack

Solving a Hard Problem for Ruby with Go

About a year ago, I was tasked with solving a hard problem (a tricky resource reservation problem with arbitrary quantities and spans). As with all problems, there were constraints in this case use Ruby, use MySQL, make it respond in under 100ms, handle spikey traffic.

read more

Zack

ActiveModel: Model

I started reading ahead into ActiveRecord…whoa…that’s some crazy stuff right there. Mind was blown with the sprawling nature of it…so many avenues and byways of logic, it’s going to take some serious time to get to the bottom of that. In the mean time, let’s jump into ActiveModel in earnest.

read more

Ready Player One

OMG, so much fun in the nostalgic romp that is this trip through VR and the 80s. Wildly entertaining and worthy of a full length review.

Zack

ActiveSupport::Concern Digression

It happened again. While reading through ActiveModel I realized that I had skipped over something cool in ActiveSupport, so I’m going to circle back and cover it.

read more

Zack

ActiveSupport: Testing and Stringy Booleans

One of the things that I really like about the Ruby community is the serious focus on testing. When you’ve really got your testing dialed in, there’s a tremendous sense of peace knowing that you can refactor to your heart’s content…and add new functionality of course…that too.

read more

Zack

ActiveSupport: Self Deprecation and Deprecations

As I write today’s journal, I am struck with how I’m not the ideal tour guide of the Rails source. Having never contributed to the code and coming at it with fresh eyes, I’m bound to get things wrong in my notes here. Hopefully when I do, you fabulous readers out there can provide some corrections in the comments section which I can fold back into the body of the post.

read more

Zack

ActiveSupport: thanks, try, tap

The more time I spend with the Rails source, the more I appreciate it. I’ve always appreciated it for what it could do, but now I’m appreciating it directly, for what it is. I find it to be quite elegant, pragmatic, aesthetically pleasing, and educational. Inside the black box, it’s really quite nice.

read more

Zack

ActiveSupport: Hash Extensions

At RailsConf this year, Aaron Patterson talked a bit about “aggressively trimming negativity” from his life and focusing on the positive things. I’m working on that as well, which is part of the genesis of this Rails source journal. People like to complain about things, the more familiar the more often it sometimes seems. Before I started this project, I’d fill gaps in time with reading Hacker News, but the negativity really wore on me. Now, I instead get to go digging for really cool stuff in Rails that informs my every day work. I love it.

read more

Zack

ActiveSupport: Humor, Defaults, Security

Reading the source of Rails gives insight into the minds of the contributors over the years. It lets you know how they like to write code (of course), but it also gives you little glimpses into the personalities of particular people who shaped Rails in big and small ways. As a reader, you walk away from comment reading sessions knowing just a little bit more about the code, and the people behind it.

read more

Zack

Reading the Source of Ruby on Rails

I have decided to read the whole source of Ruby on Rails and make notes as I work my way through it. I have used the framework for far too long without doing such an obvious step and have just accepted the “magic” of how things work. Well, I’d like to see how the magic is made, and perhaps in so doing, I can become more useful as a Rubyist. These posts are going to read more like a journal, as that’s precisely what they are.

read more

Land of Lisp

There are a few programming books that I enjoy simply because they take a different approach. This book uses simple games to teach Lisp, and it's very well executed. Fun games, fun illustrations, much enjoy.

Learn You a Haskell for Great Good!

Haskell is a religion to which I'm not an adherent. I mean seriously, how many times have I been told that Functional Programming is the future. . .so when is that going to happen already? That said, great book for learning Haskell, really had fun reading it!

SICP

All the wizard references are fun for a bit, but I just didn't get that much out of this. Not sure why it's referenced so often.

Compilers

I'll be honest, I skimmed through most of this, mostly to satisfy my curiosity on how compilers work. The thing is, if that is what you are after, there are much shorter tomes. This is an undergrad book.

The Little Schemer

Socratic method to learn Scheme? Yes please! Very well done and I recommend it extensively.

The Art of Computer Programming Volume 1

There is a group delusion when it comes to this series of books. Perhaps, it is like hazing, where individuals go through a bad experience and then force it on others, somehow feeling better about it in the process. This book is no longer relevant, and while it may serve a historical function for some, is not useful for programmers today.

The Algorithm Design Manual

Incredibly useful book for programmers today looking to learn about algorithms. If you think you should be reading TAOCP, you are wrong. Read this instead (unless you are building in a fictional Assembly language).