HNHacker News
TopNewBestAskShowJobs

bryanp

26 karma · joined July 7, 2009

submissionscomments
bryanp··on The Few Things I Own
I'm always fascinated by how people choose to live while traveling, so thanks for sharing! Curious though how you handle food. Do you prepare your own or eat out? Judging from the lack of utensils, etc I imagine the latter.
bryanp··on Ask HN: What is your best programming joke?
In order to understand recursion you must first understand recursion.
bryanp··on How I'd teach computer science
So go teach CS :-)
bryanp··on Pakyow 0.8: New Router, Updated View Syntax, and Smarter View Transformation
Why thank you kind sir! Myself (primary dev) and the few people I know who use it agree :)

We've been intentionally quiet, to be honest. Lots of things to get straight since the initial release, much of which was done in 0.8. We're at a more stable point now and I hope to see some momentum build soon. Of course, any ideas you have would be welcome.

bryanp··on Pakyow 0.8: New Router, Updated View Syntax, and Smarter View Transformation
I can't speak too intelligently about how Sinatra is architected, but here's a bit about how Pakyow handles routing.

A route is just a regex and set of functions (blocks, procs, whatever). When a request comes in, the following things happen:

1. An AppContext instance is created that contains the request's state 2. Route is matched (narrowed by method then match on path) 3. Each function is evaluated within the context

Hooks, etc aren't special things and are just functions at a particular location in the set. This set is built at startup, so there's no object creation to fulfill a request (except the Request/Response/AppContext objects). The routing bits of pakyow (pakyow-core) are very close to the Rack metal.

Aside from routing, nearly everything in Pakyow is middleware. This makes it easy to completely remove (not just disable) components like static file handling, logging, etc.

Hope that helps!

bryanp··on Ask HN: Favorite API
Twitter's streaming APIs are pretty fun:

https://dev.twitter.com/docs/streaming-apis

bryanp··on Ask HN: Am I the only Developer who's turned down offers to become a Tech Lead?
There's usually a lobotomy to be had somewhere between dev and lead. At least, that's been my experience.

Do what you love and don't be pressured.

bryanp··on I Believe in Gittip
He's proven his belief in the product by taking a stand. This is already more than most could hope to do. For that I offer my applause. If this isn't a next big thing, it at least offers a life changing mindset. For that I offer my thanks.
bryanp··on GUM: A better CLI for Git
I've noticed that making the mental switch from writing code to committing it costs quite of bit of time throughout a day of development. A more intuitive interface would remove the need to make the mental switch. This interface feels much more intuitive to me -- great job.
bryanp··on We should teach all our kids to code
My dad did the same thing. Thinking back, the first thing I remember doing on a computer is writing a calculator in BASIC. Before games or anything. To this day I still choose coding over games (ok, most of the time).
bryanp··on The Don Stewart Method: write code every day, release a project every week
I totally agree. My point is that misunderstood and/or misused this attitude can lead to trouble.
bryanp··on The Don Stewart Method: write code every day, release a project every week
This attitude is why so many open-source projects are shit. That said, the habit of shipping often is a good one to have. But I think it's important to follow through and deliver something of quality every time you ship.
bryanp··on Ask HN: How many entrepreneurs out there are really passionate?
True that he probably wasn't passionate at the beginning. But he must have developed it along the way. You don't continuously work 16-hour days unless you're passionate.
bryanp··on Ask HN: How many entrepreneurs out there are really passionate?
Find something about your work that you're passionate about, rather than the work itself (you could call it being indirectly passionate). For me, I'm passionate about creating useful things. So long as I'm creating useful things at work I'm passionate about it.