Hacker Newsnew | past | comments | ask | show | jobs | submit | jbox's commentslogin

Heroku's Interagent is a set of practical guidelines for building APIs based on their Platform API: https://github.com/interagent/http-api-design


If you're going across the network, a slow timeout is often trickier than an explicit failure.

I wrote about handling this in Python: http://www.mobify.com/blog/http-requests-are-hard/


Cool tool!

I gave it a shot on one of our private repos this morning and it did what it said on the box.

In the process it also generated ~150 comments on the repo.

For folks watching the repo, this is a fair amount of email.

Is there anyway to aggregate the comments? Perhaps into the Pull Request description?


Thanks for trying it out.. sorry about the spam. When I added the parallelization of the tasks, I kind of lost the ability to manage things centrally on Github. I'll think about if there's some way to make this better.

Increasing the number of images per task would reduce the number of commits / comments, but could also increase the amount of time it takes to complete.

Did the commits themselves cause email issues for you, or was it just the comments? I could look into appending to the PR description instead of adding comments - I'm just worried about a race condition when multiple tasks are trying to update the description at the same time.


No worries! It worked, we just got a lot of emails :)

Could you aggregate the messages and post an update when the entire task is complete?

Seeing the commits come seems to be a good progress indicator.

If you are "watching" a repo, you get an notification for every comment, not every commit.

You could also just create the PR with a link to the job on ShrinkRay and have the progress updates there...


I've added this to my issue list.. thanks for the suggestion!


"As a general rule, it's not possible to securely allow arbitrary user-provided content on a subdomain."

This rule is also good to keep in mind when choosing a domain for non-production environments!



Especially when parts are straight copies out of Zepto.

Zepto Closest Implementation: https://github.com/madrobby/zepto/blob/master/src/zepto.js#L...

JQ.Mobi: https://github.com/appMobi/jQ.Mobi/blob/master/jq.mobi.js#L3...

Zepto End Implementation: https://github.com/madrobby/zepto/blob/master/src/zepto.js#L...

JQ.Mobi: https://github.com/appMobi/jQ.Mobi/blob/master/jq.mobi.js#L4...

That said, it's all open source and there are only so many ways to write these functions succinctly.


They didn't even bother to change the indentation whitespace...


Mobify, Vancouver, Canada.

Director of Engineering

Mobify is a growing, profitable, bootstrapped startup. Our goal is to build a web where every website delivers and amazing experience on every device. We serve millions of pageviews for companies like Starbucks, Threadless and Conde Nast using a combination of client/server side JavaScript.

We're looking for an experienced technical manager with a history of delivering successful web products.

We have a glee club, yoga classes and an awesome team.

http://mobify.com/company/jobs/#job-list


It's been fun watching these features play out in libraries over the last year.

I particularly like the idea of TemplateResponse - the earliest implementation I saw was in simonw's:

https://github.com/simonw/django-openid/blob/master/django_o...

This approach makes template rendering much more flexible!

For example, it would be easy to swap out a template for a mobile one ... or to A/B test a template. Or choose the content type of the output (HTML, JSON etc.)


Yeah, I was really pleased to see that they've taken that concept and turned it in to a real, tested, documented feature.


Vancouver, BC, Canada - Mobify

http://mobify.me/jobs/

We're building great mobile experiences using HTML5.

Looking for smart people with a background in web development.

We're based out of downtown Vancouver - right by the water, mountains and nightlight. Weekly yoga classes, flexible schedules and all the latest gadgets :)

Mail me a john at mobify dot me.


JavaScript Developer (Wearer of Many Hats) - Vancouver, Canada

http://mobifymedia.com/jobs/

Mobify is a mobile web company. We're changing the way people surf the mobile web. We work with traditional publishers like Wired and SPIN Magazine as well as top websites like BoingBoing and Smashing Magazine.

We're looking for more devs to help us take our client side interactions to the next level. If it's your dream to optimize the performance of top mobile websites drop us a line!

john at mobify dot me.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: