Better HN
topnewbestaskshowjobs
Log inSign up

ajsharp

1,915 karma · joined Apr 30, 2010 (16y ago) · 347 submissions

building adfactor.ai

I write here sometimes https://ajsharp.com.

Submissions

331.

Presenting the New Zaarly(blog.zaarly.com ↗)

3 points · by ajsharp · 15y ago · discuss

comment 15y ago · link · parent

1. Read code on github.

2. Write lots of code.

3. Repeat steps 1 & 2.

Happy coding!

comment 15y ago · link · parent

Chances are, that's what the developers are using to build the product. Same with the people making the screencast, if this is a different party than the developer(s) themselve(s).

334.

Zaarly: Not nearly as crazy as it appears(news.cnet.com ↗)

4 points · by ajsharp · 15y ago · discuss

comment 15y ago · link · parent

“most engineers are capable of writing bug-free code. it’s just that they don’t have an incentive to do so at most companies. when there’s a QA department, it’s easy to just throw it over to them to find the errors.”

Bull. Shit. This one line makes me think that this entire post is completely hear-say. A 500 person engineering team that writes bug-free code on a system as a large as facebook? Give me a break.

comment 15y ago · link · parent

No, it won't update the version numbers in your Gemfile. But to be clear, let's assume you have the following in your Gemfile:

    gem "rails", "3.0.0"
    gem "formtastic", ">=1.0.0"
Running bundle update (with no arguments) won't update the rails gem to a more recent version (if it exists), but it will update any of rails' dependencies, if updates exist.

So, rails has a "specific" dependency on actionpack = 3.0.0, and actionpack 3.0.0 has a dependency on erubis ~> 2.6.6. Let's say (hypothetically) the most recent published version of erubis is 2.6.7 (which matches the ~> operator), but the version in your Gemfile.lock is 2.6.6, running bundle update will pull down that new version of erubis 2.6.7.

Similarly, if a newer version of formtastic were available than the one in your Gemfile.lock, bundle update would pull this down as well.

comment 15y ago · link · parent

I would love a "Save to Instapaper" link next to each story link, without having to click into it.

comment 15y ago · link · parent

+1

comment 15y ago · link · parent

Just to clarify, you can always run bundle update for a specific gem, instead of for every gem in the Gemfile (this is the behavior if you run the command without any arguments). Recent versions of bundler (>=1.0) are pretty good about telling you exactly which gems have dependency conflicts, so it should be pretty easy to determine which gem to pass to bundle update.

comment 15y ago · link · parent

Sorry. Maybe I should've been more clear in the post to say that you should almost never use bundle update without arguments, which updates the entire gem dependency graph. Running that command with an argument will only resolve dependencies (and perform updates) for the gem passed in as an argument to update command. Apologies for any confusion there :-)

comment 15y ago · link · parent

Agree with everything you're saying here. What happened in our situation was someone had been working on a feature branch for a few weeks, merged in to the mainline development branch (with failing tests exposing this issue, grr!), and then began the git bisect dance to find the commit that caused the failure.

One point I was trying to make in the post (maybe made poorly), was that you probably never want to update the entire gem dependency graph in one fell swoop, just for the hell of it.

My read on this is that people tend to do this because they don't fully understand what bundle update is doing when run without any arguments. In the pre-1.0 days, the difference between those commands, at least in my eyes, was extremely ambiguous.

So IMHO, updating all gem dependencies to their latest versions, if only for the purpose of "staying current", usually doesn't make practical sense. Sure, there will be bugfixes included in these updates, but unless they were critical security patches, you can probably live without them, unless those bugs are affecting you directly. Even in that case, I would say the solution would be to run bundle update gem-name, only for that gem.

comment 15y ago · link · parent

That's what bundle update does, with no other arguments. The other way to use it is bundle update gem-name, which will only update the gem passed in and it's dependencies.

343.

Don't ever run bundle update(optimisdev.com ↗)

18 points · by ajsharp · 15y ago · 17 comments

comment 15y ago · link · parent

I think your depiction of the ruby community is accurate. We definitely like to promote what we're doing, be it on our blogs, at conferences, on twitter, at meetups, etc.

Last year at LaRubyConf, Sarah Allen called the ruby community "the programming community for extroverts". I couldn't agree more.

I think your analysis of the community is more a result of that than any level of pomposity, vainness, or even simple hand-waving. Sure, those things will always occur to some extent. But I think it's really a result of positive attributes, and maybe a dash of success ;)

I also think people's attitudes towards engineers have changed markedly in more recent years. Gone are the days of nerdy dudes updating bank software in "Office Space". Who is everyone's favorite CEO these days? Steve Jobs. What was one of the biggest blockbuster hits of the year? A movie about a nerdy dude at Harvard building a web app (I know, that's not what the movie is really about). In other words, it's fucking cool to be an engineer these days, especially a software engineer.

I think ruby programmers, being extroverts (generally), have embraced this cultural shift, and dare I say capitalized on it.

I can't deny that people in the ruby community have ample opportunity to become "rockstars" in the community simply by way of self-promotion, but there are just as many of those who are popular for their prolific open source contributions, which is by no means hurt by their self-promotion prowess.

Good observation bj, and great conversation starter.

comment 16y ago · link · parent

Having used graphael (really the only graphing library I've used), I can say that I like it, but I don't love it. I like how the charts looks far more than any of the other graphing/charting libraries, except for maybe highcharts. Imo, one of the key features that sets graphael and highcharts apart from the rest (especially the Stanford library, which looked very nice, except for this one feature) is interactivity. I think being able to mouse over the data points and get more detailed information is a massive leg up. From an end-user perspective, this interactivity is what @briandoll referred to as "function", in addition to the "look", which in this case, is great for both of these libraries.

- $0.02

comment 16y ago · link · parent

Without reading the article, I can sum this up in two words: perceived efficiency.

comment 16y ago · link · parent

+1 luigi and bigfleet. The conf being in downtown Nashville (rather than at the Opryland hotel) this year is going to provide a whole different experience. Downtown Nashville is fun, fun, fun. See you all there!
1
89101112