News for hackers. Stuff that matters.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by drostie on Friday February 24, 2012 @04:39AM (#3628598)
You missed the most important part:

And as for overly ceremonial code, let me tell you about my balls. I actually have a rake task to scratch my balls. Somebody told me a good entrepreneurial programmer writes code to scratch their own itch, and I took them literally. The code uses a serial port to power an Arduino board. The Arduino's got a servo with a backscratcher attached. I keep it on a shelf at scrotum height underneath my desk. I literally need to type bundle exec every single time I want to scratch my balls. I don't like having to type bundle exec every single time I scratch my balls. I named the task balls, so I can type rake balls, because it rakes my balls, and Bundler pisses all over my tidy syntax, but am I going to complain? Am I going to point out that asking me to type bundle exec every time I want to scratch my own balls shows incredible contempt for me as a user, particularly considering that the whole reason I'm a user of this particular thing is because I work in a language which was designed to optimize for programmer happiness? Of course not. It's not productive or helpful to say that, so I simply type bundle exec rake balls and scratch my balls in sullen silence. Typing bundle exec every single time I want to scratch my balls is the epitome of the overly ceremonial code which Rails defined itself against from 2005 to 2007.

The problem with tl/dr is that it misses out on the funny. :-(

Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by zedshaw on Friday February 24, 2012 @04:41AM (#3628603)
Nope, the tl;dr didn't miss a thing.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by functionform on Friday February 24, 2012 @07:08AM (#3628911)
A wild badass appears!
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by alinajaf on Friday February 24, 2012 @04:48AM (#3628620)
OK it's mad funny, but what's so hard about `alias bx 'bundle exec'` in your .(bash|zsh)rc file?
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by telent on Friday February 24, 2012 @05:32AM (#3628724)
I have that exact alias. But it still adds 3 seconds to the startup time of any command run under it

Maybe my laptop is underpowered, but three seconds to do essentially nothing is still a long time

Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by xentronium on Friday February 24, 2012 @07:19AM (#3628936)
I solved this by having isolated gemset for every project. This way I can use rake without fear of having multiple conflicting gem versions.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by telent on Friday February 24, 2012 @02:11PM (#3630484)
Bundler and rvm? "now you have two problems" :-)
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by alinajaf on Friday February 24, 2012 @06:25PM (#3631577)
Just to satisfy my curiosity, have you upgraded to 1.9.3 yet?
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by secoif on Friday February 24, 2012 @07:13AM (#3628923)
You shouldn't need an alias in the first place. "Convention over configuration."
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by erichocean on Friday February 24, 2012 @03:39PM (#3630891)
Correct. The problem isn't the difficulty, it's the education.

In my own project (SproutCore), we've used Ruby-based buildtools since 2007, and there is unanimous support to move to Node, precisely because running a modern Ruby stack requires so much education.

We want to spend time in our IRC channel on SproutCore itself, not Ruby and it's myriad problems (all of which have "fixes" that "aren't so hard").

We're also moving to Node because the performance of the Ruby tools sucks, despite three rewrites (one by a member of the Rails core team, so not Ruby n00bs).

The Node tooling? It's so fast that we can literally rebuild the entire project from scratch every time we reload the app and still load everything into the browser in under a second. Oh, and it took about a day to write. :/

That, to me, is why Node is taking off. The "I can get shit done quickly" factor is very high, the resulting code runs very fast, and the community is large, energetic, and helpful. Plus, pretty much everyone has to use JavaScript today.

Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by alinajaf on Friday February 24, 2012 @06:22PM (#3631574)
> precisely because running a modern Ruby stack requires so much education

Education about what? Can you give some specifics here? I'm genuinely curious as my day-to-day ruby development is pretty smooth and I haven't been doing it very long.

Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by pilif on Friday February 24, 2012 @04:58AM (#3628650)
or if that's too much use --binstubs to use "bin/rake balls" or if you are really, utterly crazy, use --binstubs AND set $PATH to contain './bin' and then use "rake balls".
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by drogus on Friday February 24, 2012 @10:00AM (#3629353)
You can also use rvm with gemsets and just not use bundle exec at all. I'm amazed how quickly people forget about the things that bundler tries to fix. If you don't have any conflicts across your gems, you can basically use bundler as "just install my gems".
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by regularfry on Friday February 24, 2012 @12:25PM (#3629969)
This broke for me with Rails 3.1 last I tried it. I had to use bundle exec to get it to work.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by asifskalam on Monday February 27, 2012 @05:34AM (#3638489)
I use rbenv with rbenv-bundler which runs the bundled binstub from my current directory when I run the command.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by Buzaga on Friday February 24, 2012 @11:19PM (#3632155)
whats the fuzz about bundle exec? that annoyed me for some time but it's sure gone for some time that I don't even remember it anymore..