Better HN
topnewbestaskshowjobs
Log inSign up

anti-pattern

229 karma · joined Nov 14, 2012 (14y ago) · 38 submissions

Submissions

1.

Rebuilding a Jekyll Website with Next.js and Theme UI(ghostinspector.com ↗)

4 points · by anti-pattern · 5y ago · discuss

2.

The Culture That Creates the Problem Is Never the Culture That Fixes the Problem(canaryup.com ↗)

3 points · by anti-pattern · 12y ago · discuss

3.

Strip Leading Whitespace from Heredocs in Ruby(canaryup.com ↗)

1 points · by anti-pattern · 12y ago · discuss

4.

Testing the Protocol, Subdomain, and Host of a Rack App with Rack::Test(canaryup.com ↗)

2 points · by anti-pattern · 12y ago · discuss

comment 13y ago · link · parent

One more reason I avoid flying them whenever possible.

comment 13y ago · link · parent

Ah, that isn't something I considered. I don't write my apps multi-threaded, so it shouldn't be an issue, but definitely good to be aware of.

comment 13y ago · link · parent

Ah, well, nothing is foolproof. Yes, if you don't update your dependency list when dependencies are removed, they might get stale. But I keep up on that stuff and haven't ran into that problem yet. Even if I did, I'd rather have that problem than an app where all the dependencies are global.

comment 13y ago · link · parent

Yes, but, if you test your classes in isolation, then you'll be forced to manually require each dependency at the top of the file.

comment 13y ago · link · parent

Interesting. Why would the requires go stale? And how would you use a dependency you don't require? It wouldn't be possible to use it unless you required it. This of course assumes you're testing your classes in isolation.

comment 13y ago · link · parent

I think a lot of this unfortunately comes from Rails. Rails hides a lot of complexity which creates "magic". And since most Rubyists come to Ruby from Rails, a lot of Rubyists have the bad habit of hiding complexity wherever possible. I was guilty of that myself. But I've noticed it slowly starting to change.

comment 13y ago · link · parent

The best code is no code.

12.

Use Bundler.setup Instead of Bundler.require(anti-pattern.com ↗)

13 points · by anti-pattern · 13y ago · 14 comments

comment 13y ago · link · parent

Thanks! Probably not, there aren't really any other products I get that excited about, and I like the idea of keeping it very niche.

14.

Ship Now, Not Later, the story of shipping Arrival(anti-pattern.com ↗)

5 points · by anti-pattern · 13y ago · 2 comments

comment 13y ago · link · parent

Oh, interesting. Did they give a reason? Was it legal? MacRumors has been doing this for some time, I can't imagine that there's anything illegal about it.

comment 13y ago · link · parent

Indeed. Maybe I'll post the data on GitHub or something.

comment 13y ago · link · parent

Actually, the entire reason I made this site was because I thought the way MacRumors visualized the data wasn't very good. If they had done a better job, I wouldn't have needed to make this.

As for credit... what should I be crediting them for? I'm just collecting a list of dates and then visualizing the data.

comment 13y ago · link · parent

I guess it depends on how you quantify usefulness. There's less info, but I think I visualized the information that I do show much better than MacRumors.

comment 13y ago · link · parent

They probably meant whether or not I "took" the information from somewhere else. But yeah, actually scraping the information would have been ridiculous. It's all just in a static YAML file.

comment 13y ago · link · parent

Ah, that makes sense. Thanks for explaining it! This was my first time using SVG. So, what is the best solution? Defining SVG styles in a style tag?

comment 13y ago · link · parent

Yeah, for some reason Firefox won't show the gradient. Not sure why. In the meantime I made it so it would fallback to a solid color.

comment 13y ago · link · parent

I built my own because their design, and I mean literally the way they visualize the data, isn't very good. Or rather, it's not as good as it could be. They even updated the design a year or two ago and all they did was give it a coat of paint, rather than rethinking how to best visualize the data.

comment 13y ago · link · parent

Whoops, it looks like Firefox doesn't like SVG gradients. I'll look into that. Thanks!

comment 13y ago · link · parent

Oh I remember seeing that when it came out. Did you take it down?

comment 13y ago · link · parent

I want all of those things.

comment 13y ago · link · parent

I've looked at their data, but I believe I've dropped some things that they consider releases. The whole thing is kind of subjective as to what constitutes a release or not. But no, I didn't just scrape their site. I compiled my own data from a variety of different freely available sources.

comment 13y ago · link · parent

You're very welcome :)

comment 13y ago · link · parent

Yeah I was trying to decide whether it needed one or not. So far people seem to be getting it, but I might still add one.
12