Better HN
topnewbestaskshowjobs
Log inSign up

drewolson

636 karma · joined Feb 5, 2009 (17y ago) · 39 submissions

Submissions

1.

Elixir's Secret Weapon(blog.drewolson.org ↗)

6 points · by drewolson · 9y ago · discuss

comment 10y ago · link · parent

Reviews are very exciting, but seem to be unable to fit the following use case:

I want to setup a repo such that a subset of collaborators (or organization members) can merge reviewed PRs to protected branches. I want the rest of the users to be able to create new branches and submit PRs from them, but _not_ to be able to push to protected branches. They should _only_ be able to land code in protected branches via reviewed PRs (via the merge button).

Is there a way to achieve this now that I'm missing? Gitlab's more granular user roles + permissions allow this.

3.

Specify Your API(blog.drewolson.org ↗)

1 points · by drewolson · 10y ago · discuss

comment 11y ago · link · parent

Ah, thanks.

comment 11y ago · link · parent

Can you reference the part of the proposal that states this? I'm reading the following points:

> $GOPATH/src/foo will be imported as foo by non-main package $GOPATH/src/mypkg/p.

> $GOPATH/src/mypkg/external/foo will be imported as foo by a non-main package p anywhere, when p is being built as a dependency of command $GOPATH/src/mypkg/c.

It seems to me this is saying that libraries will use external packages only when built as a dependency of a main package. Again, this means library authors are out of luck.

comment 11y ago · link · parent

Am I understanding correctly that this proposal again side steps / ignores pinning dependencies for libraries? To me, this is the biggest current problem in the ecosystem and, as a library author, this doesn't solve any of my issues. I hope I misread somehow.

7.

Mave Public Beta – A drop-in SMS invite page(mave.io ↗)

24 points · by drewolson · 11y ago · 5 comments

comment 11y ago · link · parent

How is this different from godep[1] other than being the root of its own GOPATH and having a different naming convention for the location of vendored dependencies?

[1] - https://github.com/tools/godep

comment 11y ago · link · parent

Author here. You're right. I removed references to "pure" in the article.

comment 11y ago · link · parent

Does jitpack currently support repositories in Github Enterprise?

11.

Composable Queries with Ecto(blog.drewolson.org ↗)

2 points · by drewolson · 11y ago · discuss

comment 11y ago · link · parent

This whole "framework fatigue" thing is going reductio ad absurdum. Convenience is not bad. _Too_ much convenience traded for opacity is bad.

As someone with a Phoenix app running in production, I can tell you that this framework hits the sweet spot of providing lots of value without requiring the user to learn too much. The abstractions it provides, especially the router and rendering layers, are very welcome. And I'm saying this from the perspective of someone who has built a few smaller vanilla plug applications.

Let's not throw the baby out with the bath water here just because rails went a little too far with the magic.

13.

Braintree V.Zero SDK – Faster integration, drop-in UI, and pay with PayPal(braintreepayments.com ↗)

76 points · by drewolson · 12y ago · 30 comments

14.

Node Streams for APIs(blog.drewolson.org ↗)

2 points · by drewolson · 12y ago · discuss

comment 12y ago · link · parent

I'm confused, you're questioning the author's sincerity in expressing his own enjoyment of pair programming?

I deeply enjoy pairing. I know quite a few folks that do as well.

16.

Understanding gen_server with Elixir and Ruby(blog.drewolson.org ↗)

3 points · by drewolson · 13y ago · discuss

comment 13y ago · link · parent

I think the point is, if you write map like this you might as well be using a dynamically typed language in the first place because you're deriving no benefit from the type checker. In fact, you're just using casting to completely circumvent it.

comment 13y ago · link · parent

Thanks (and thanks to pron). I've updated the post to include a warning against using Thread/sleep in go blocks for "real" code.

comment 13y ago · link · parent

Author here.

From what I've read/seen, the go blocks are lightweight thread-like processes multiplexed onto a thread pool. You may be correct about using Thread/sleep, ideally I would have used (timeout ...) and then pulled off the channel. However, I didn't want to introduce the concept of channels too early in the post, so I felt Thread/sleep worked as a compromise.

20.

Clojure core.async and Go: A Code Comparison(blog.drewolson.org ↗)

150 points · by drewolson · 13y ago · 78 comments

21.

Performance Improvements Using Judy Arrays(github.com ↗)

183 points · by drewolson · 13y ago · 51 comments

22.

Springboard: Full-stack HTTP testing for Express apps(github.com ↗)

1 points · by drewolson · 13y ago · discuss

23.

Blogging with Mobile in Mind(braintreepayments.com ↗)

3 points · by drewolson · 13y ago · discuss

24.

Testflight - Painless HTTP testing in Go(drewolson.org ↗)

5 points · by drewolson · 13y ago · discuss

comment 14y ago · link · parent

I noticed you're using tornado but appear to be using the standard (non-evented?) python redis library. Does using this library block tornado's event loop? Did you look at other tools like brukva[1]?

[1] https://github.com/evilkost/brukva

26.

Rails Mass Assignment Protection in the Controller(blog.drewolson.org ↗)

10 points · by drewolson · 14y ago · discuss

27.

Ping Pong is Serious Business(braintreepayments.com ↗)

2 points · by drewolson · 14y ago · discuss

comment 14y ago · link · parent

A fun anecdote is to consider the belief the TDD crowd entertained that, by creating tests for a problem you couldn’t solve, you could somehow evolve a code that passed the tests and therefore solved the problem!

I'm all for a healthy debate of TDD, but the above statement seems ridiculous to me. For me, TDD helps with two main things:

- I specify the behavior I'm adding/changing before I implement it. This helps document the change I believe I'm making.

- I feel more confident when making changes to a large codebase.

TDD works for some and not for others. There are very interesting arguments to be had about the subject. However, can we please stop acting as though TDD advocates view their tests as having psuedo-mystical powers to solve problems automatically?

29.

Testing Express with Jasmine(blog.drewolson.org ↗)

2 points · by drewolson · 14y ago · discuss

30.

How We Built the Software that Processes Billions in Payments(braintreepayments.com ↗)

85 points · by drewolson · 15y ago · 38 comments

12