Better HN
topnewbestaskshowjobs
Log inSign up

pedrobelo

124 karma · joined Oct 13, 2009 (17y ago) · 15 submissions

Submissions

comment 4y ago · link · parent

lol.

I'm not sure where to begin, but yes - it does take a special kind of idiot to believe that appointed judges can launch a coup to protect the elected president.

and why on earth is this on Hacker News? I guess even Jovem Pan is beginning to realize this whole movement is a clown show.

2.

An Interview on What Makes Postgres Unique (Extensions)(craigkerstiens.com ↗)

2 points · by pedrobelo · 7y ago · discuss

3.

It's the future (for databases)(citusdata.com ↗)

1 points · by pedrobelo · 8y ago · discuss

4.

Sharding data models(citusdata.com ↗)

136 points · by pedrobelo · 9y ago · 19 comments

5.

React Native: a week later(pedro.by4am.com ↗)

1 points · by pedrobelo · 11y ago · discuss

comment 11y ago · link · parent

I wrote about a few of the different formats before: http://pedro.by4am.com/past/2014/5/23/get_more_out_of_your_s...

And been working on a tool to merge the schema with actual code for Sinatra apps: https://github.com/pedro/sinatra-schema

7.

Get more out of your service with machine-readable API specs(pedro.herokuapp.com ↗)

3 points · by pedrobelo · 12y ago · discuss

comment 13y ago · link · parent

Not advertising that a queue (or any database for what matters) is shared between apps!

comment 13y ago · link · parent

When using a non database-based queue you'll have to find another mechanism to make sure your operation is still atomic.

In other words you can end up in a situation where a record is inserted but the job to work on it is not enqueued, or worse - that an insert fails but the job to work on it is enqueued.

Point 2 is still necessary despite idempotency imo: lets say some value is updated to "a" and then to "b", enqueuing two jobs. If the request to update "b" runs before "a" then your receiver will end up with the wrong value. Same if the initial request to update "a" fails.

10.

Three fundamental tricks for developers writing distributed systems(pedro.herokuapp.com ↗)

55 points · by pedrobelo · 13y ago · 19 comments

11.

On Rails, Sinatra, and picking the right tool for the job(pedro.herokuapp.com ↗)

7 points · by pedrobelo · 14y ago · discuss

comment 14y ago · link · parent

Kind of a long shot, but their "forgot password" flow allows for username enumeration attacks:

https://www.dropbox.com/forgot

13.

When tests are just not the best tool to assert(pedro.herokuapp.com ↗)

1 points · by pedrobelo · 14y ago · discuss

comment 14y ago · link · parent

For sure.

Most of the time migrations are developed in a feature branch, so the owner is responsible for splitting his branch into two or three before sending pull requests (as many as required to address issues with hot compatibility).

This means that we have two or more merges (and deploys) from master, each requiring a full run of the test suite.