Live data from Hacker News

Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

gilesbowkett.blogspot.in

41–50 of 143 posts

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#41
post #24

Earlier quoted context omitted.

The async callback mess is not really a problem, there is about zillion patterns and libraries to handle it. The problem is error handling in callbacks, capturing stack traces from the async parent callers, and generally not crashing Node if you forget to try/catch your async handler. However, this problem is known, and this is being worked on in the form of "domains". Btw. Iced CoffeeScript doesn't solve this a sing…

> The async callback mess is not really a problem, there is about zillion patterns and libraries to handle it. Doesn't that seem to imply that it is such a problem that people have come up with a myriad of disparate solutions to try to solve it?

If you have callback hell in your code, it's not because the problem hasn't been solved, but simply that you didn't put the effort to npm install a simple library.

I agree that it is a problem if neglected, but most people don't allow it to be a problem in the first place.

It's like knocking on PHP because it could be used for templating and business logic on the same file. Just because you could, doesn't mean you have to (or should).

I honestly don't feel that it's as big of a problem as people make it out to be. It's simply a minor annoyance. The error handling is the killer.

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#43
post #36

Earlier quoted context omitted.

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…

OK it's mad funny, but what's so hard about `alias bx 'bundle exec'` in your .(bash|zsh)rc file?

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 CoffeeScript

#44
post #24

Earlier quoted context omitted.

The async callback mess is not really a problem, there is about zillion patterns and libraries to handle it. The problem is error handling in callbacks, capturing stack traces from the async parent callers, and generally not crashing Node if you forget to try/catch your async handler. However, this problem is known, and this is being worked on in the form of "domains". Btw. Iced CoffeeScript doesn't solve this a sing…

> The async callback mess is not really a problem, there is about zillion patterns and libraries to handle it. Doesn't that seem to imply that it is such a problem that people have come up with a myriad of disparate solutions to try to solve it?

Because shut up, that's why.

real answer: It's easy and fun to whine about things you don't get in a language/paradigm you don't know. So easy and fun in fact that's almost entirely what programmers talk about to each-other. But whining hardly gets anything done, does it. The answer is: It's not a problem if you know what you're doing. And that applies to all other instances of this programmer discourse pattern.

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#45

Earlier quoted context omitted.

> The async callback mess is not really a problem, there is about zillion patterns and libraries to handle it. Doesn't that seem to imply that it is such a problem that people have come up with a myriad of disparate solutions to try to solve it?

If you have callback hell in your code, it's not because the problem hasn't been solved, but simply that you didn't put the effort to npm install a simple library. I agree that it is a problem if neglected, but most people don't allow it to be a problem in the first place. It's like knocking on PHP because it could be used for templating and business logic on the same file. Just because you could, doesn't mean you ha…

Error handling isn't a problem if you understand MONADS

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#46
post #4

Earlier quoted context omitted.

How are things harder with these technologies?

Having to learn the ins and out of bundler `bundle exec, update, --without :darwin`.. just to use a package handler. I had growl_notify installed, and now we've forced our team to be mac only because we got tired of dealing with linux issues. Ruby Debug is impossible to get working in 1.9.3. The maintainer of ruby-debug has gone AWOL so we're forced to deal with solutions like this http://blog.wyeworks.com/2011/11/1/…

You don't have to use Bundler. Just delete the Gemfile and manage the dependencies yourself.

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#49
post #39

Rails has always been bloated. That's what you get from frameworks that come with automation for common tasks. However, let me provide a counter-point ... I think that Rails 3 is finally a good framework that I want to use. Blogs written in 5 minutes (which you can still do in Rails 3) have never impressed me. What impresses me is code-reuse, modularity and readability. Which is why I preferred Django instead of Rail…

> Blogs written in 5 minutes (which you can still do in Rails 3) have never impressed me. I don't know. I liked the rails 5 minutes blog demo. I wasn't into rails from the beginning - I followed the recent one http://guides.rubyonrails.org/getting_started.html I think it's the ideal example for demonstrating a web framework. 1. It gives basic introduction to the framework and installation notes. 2. It's simple enough…

Notice how I said that Rails 3 is finally a framework that I like.

Also, Django may not be as feature rich, but it does have the Python ecosystem, which is more comprehensive as a result of being used in academic environments.

Re: Went Off The Rails: Why I'm Rebuilding Archaeopteryx In CoffeeScript

#50
post #36

Earlier quoted context omitted.

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…

OK it's mad funny, but what's so hard about `alias bx 'bundle exec'` in your .(bash|zsh)rc file?

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

Post reply on HN