hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Erring in Hackety Hack 0.4 #

by why in cult

I’m not sure if there’s any fixing the arcane parse errors of Ruby, but here’s a stab at it. I need to do some examination of other IDEs to see what else is being done to fix this.

Anyway, some screen captures from H-ety H 0.4.

This release has a lot of fixes to the bundled Try Ruby. (Problems with the cursor, browser crashes, tutorial loading time.) But the main feature is the new friendly and condensed error messages.

These same error messages are expanded into HTML in the program editor:

The next release will work on highlighting the line which threw the error and some links in the exception to help pages for any involved classes or error messages.

Here’s another nice feature. The bundled Try Ruby has a progress bar for page fetching. I want this console to be irresistible to you lot!!

said on 01 May 2007 at 13:20

Yes, that’s the ticket. Highlighting is usually way better than manual hunts for line numbers.

said on 01 May 2007 at 13:36

How about “the number 40” instead of “40:Fixnum”

said on 01 May 2007 at 13:38

Maybe. What do we do about Bignum and Float, since the distinction is sometimes importaint?

said on 01 May 2007 at 13:44

You tried to use the reverse method on a Fixnum object: the number 40.

said on 01 May 2007 at 14:02

Nearly. How about:

You tried to use the reverse method on a Fixnum (the number 40) which doesn’t have one.

Something which reminds that the problem is a method not defined, anyway.

said on 01 May 2007 at 14:06

OMFG as much as my mind has been boggled by you in the past, this whole H-ety H thing has boggled it to new levels.

Fantastic work all around. I’m going to make my wife go through the lessons.

said on 01 May 2007 at 14:33
A Problem
Hot pickles! An end went missing.
$end was found where an end should be.
Check line 0 of your program.
This is my absolute favorite fix. Now, maybe replace $end with “the end of the program”.

The infant mortality rate of new programmers using HH just dropped to about half. Way to go, _why!

said on 01 May 2007 at 14:57

Oh, good one. Thanks, eli!

said on 01 May 2007 at 16:27

This is great! Making little ruby programmers, that will grow up to become big ruby programmers, that will make the libraries evolve and the ruby hosting plans drop in cost… Then… then… WORLD DOMINATION !! MOUAHAHAHAHAHAHAHA

said on 01 May 2007 at 20:02

One of the little ruby programmers will write an AI program which will write the ruby libraries 24/7.

said on 01 May 2007 at 21:24

cool! can I have H-ety error messages in my normal ruby dev env? Rails? Perhaps a -H option on ruby.

Brings back fond memories of adding ‘hair’ messages (yes, with -H) to my C-ish compiler at uni. Mine was a dig at a friend, though. Yours is an awesome educational move.

Why don’t all compilers tell it like it is? The beginning of a new era for programming languages – the H-ety error message option for all compilers! It might help the kids bridge from H-ety to other languages. If nothing else, bring a dash of ruby/_why fun to less fortunate programmers out there…

Can’t wait for H-ety to hit linux…

said on 03 May 2007 at 04:34

sexy console! cheat sheet is nice too

said on 03 May 2007 at 07:03

Great stuff. One minor nit: parenthesis is the singular form of perentheses.

said on 08 May 2007 at 06:39

The error message given “An end doesn’t match up” would be a lot clearer if the word end was highlighted, to show it’s actually a “command”, instead of an end of something else.

said on 10 May 2007 at 00:34

Shiny. Some of the messages are still slightly unclear, but Ruby needs something like this BADLY . Good stuff.

said on DD Mon YYYY at HH:MM

* do fancy stuff in your comment.

PREVIEW PANE