Quote
You should think of your investors as the Honey Badger. They just want a launch. When it comes to everything else, Honey Badger Don’t Care.
—The Wise Spouse
Text

RESTful Routing, LocationMatch, ForceType and SetHandler

For years I’ve been seeing articles about RESTful routing, and watching developers contort their code including route aware this and that. All these gyrations come with a performance penalty, not to mention a code maintenance cost. (More lines to maintain = more pain in the ass.)

There are a few brave souls who’ve bucked this trend and gone with the original tools designed for this job — mod_rewrite and the like.

What I haven’t seen much that makes perfect sense to me is extension-free files with a ForceType or SetHandler directive applied to them.

I know examples with Apache and PHP show that I’m a geezer, but humor me anyway.

In either case, you create a file called ‘foo’ (no extension) in your document root. In it, you put something like this:

How you’d do this with funky new stuff such as Lighty, Nginx, and node.js, I don’t know exactly. I’m sure it’s possible. But, it’s an exercise for those of you fascinated by the shiny and the new.

The point is this: save your CPU cycles for the stuff that actually matters. Leave the easy stuff like routing where it belongs: outside your app.

Image
Atlassian gives a prize for installing all their tools successfully. Here’s mine.
I especially like the bikini-briefs-with-bunny-tail kneeguards!

Atlassian gives a prize for installing all their tools successfully. Here’s mine.

I especially like the bikini-briefs-with-bunny-tail kneeguards!

Image
Nerd Merit Badges, on a nerd’s bag strap. Thx @kloveless! #gluecon #jexy (Taken with instagram)

Nerd Merit Badges, on a nerd’s bag strap. Thx @kloveless! #gluecon #jexy (Taken with instagram)

Image
Seems like the money #Target is donating to #education is too late to help their #marketing department. (Taken with instagram)

Seems like the money #Target is donating to #education is too late to help their #marketing department. (Taken with instagram)

Image
The boys tuckered out after a multi-hour track-building session.

The boys tuckered out after a multi-hour track-building session.

Text

AWS CloudFront Invalidation Quickie

Got something up on AWS CloudFront that’s not what it’s supposed to be? Use this quickie script to zap those mistakes. No external libraries required, no fancy and overly complex signature routines. Just a simple, quick script that’s not even worth a repo. Copy, paste, tweak, zap, and exhale.

Excessive use of this script may run up a tab at Amazon.

No additional charge for the first 1,000 files that you request for invalidation each month. $0.005 per file listed in your invalidation requests thereafter.

See CloudFront pricing for more details.

Quote
When the guy you’re trying to land as an investor starts thinking about getting a restraining order against you, your funding isn’t going well.
—Jane Doe, a founder’s wife
Text

Keep It Down

Sometimes being the founder of an early stage startup boils down to a single mantra: “not going to puke right now!”