So I never really post any code here. But why not? Who knows. Maybe I’ll start. Here’s a little script I wrote to drive iTunes in an alarm–clock–inspired fashion. It puts me to bed and wakes me up in the morning. Pretty good for 37 LOC huh?
Holy shit, ruby rocks. (self-link).
So there isn’t anything harder to take then a subtle bug with little apparent cause. That’s why this sort of thing kills me:
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in `check': cannot rollback - no transaction is active (SQLite3::SQLException)
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:76:in `check'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:68:in `commence'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:61:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/statement.rb:158:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:211:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:186:in `prepare'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:210:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:620:in `rollback'
... 13 levels...
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:200:in `run'
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
from /usr/local/lib/ruby/1.8/test/unit.rb:285
from test/unit/workout_test.rb:10
There are time when I’ll just get fed up with the damn computer, and this caused me to wrap up last night and go try to learn to read music1. There was even less information in that error as there is in musical notation! I can almost deal with sound visually on a staff, but it’s real troubling to deal with a bug that won’t leave the slightest clue.
But I think I’ve got it scrubbed out. Commenting things out strategically leads me to not want fixtures with nil values. Changing this:
invalid_exercise:
id: 4
name:
description:
into this:
invalid_exercise:
id: 4
name: ""
description: ""
mopped things up real well for me. Now there’s just one more thing that is making me want to bash my laptop with a rock, as soon as I can find it, I’ll be for smooth sailing.
1 Quite the feat actually: I quit piano in 6th grade because although I could play whatever anyone threw at me by ear, no way did I have the patience to learn to read those goddamned notes.
If you use Hobix and you can
Ruby has just started its ascend. Sure, it’s a rocket take-off, but we haven’t even left the atmosphere yet. DHH
Ruby book sales up 1552% since beginning of year (according to O’Reilly). I got the pickaxe 2 last december. I’m so ahead of the crowd.
This presentation from David is spectacular.
Neat ruby block syntaxes.
If you are a young person who insists on reading every bit of text you are faced with until its dire conclusion, you should know that I was very tempted to taper this WELCOME off into an endless stream of random text. But I know that’s what exactly what you want. And what I want. And we can’t have two more plump and satisfied people scrolling in the world. _why
Curt Hibbs quickly glosses over why rails is so good, worth a read.
Ruby is really starting to hit the big time. I picked a good one to start with. I’m working with php now with my campus job, and it really pales in comparison. Now ruby leapfrogs both perl and python into a prestigious publication.
PragDave is going after mainstreaming ruby. He doesn’t demand anyone use it – he leaves other languages their cut – but hasn’t said a bad word about ruby yet.
Plus he redesigned his site and now it looks exactly like one I’m working on now. His titles are darker blue, and there’s a little triangle on the left, but otherwise the same.
Like greasemonkey, only not a firefox only extension. And with ruby!
What is a huge deal? Having an extremely
An Rdoc widget, for your favorite ruby documentation repositories, and soon an irb widget, which might be of less use. This is something I might actually use dahboard for.
Cute way to generate cached image files from your db with rails.
Rails kicks butt.
In much the same way that the web took off because of “View Source”, Rails is taking off because it lowers the barrier to entry and holds nothing back.
Having learned html and css by viewing the source, I can say that rails works much the same. I love open source, and it makes doing things for a kid with little programming experience like myself a piece of cake.
Looks nice.
And I’m excited to see the numerous projects, but their site is down! At least they stayed up the 24 hours.
Now, on to Rails. Rails is the most well thought-out web development framework I’ve ever used. And that’s in a decade of doing web applications for a living. I’ve built my own frameworks, helped develop the Servlet API, and have created more than a few web servers from scratch. Nobody has done it like this before.
So rails, starting to get hot, huh?
I want to do railsday, but don’t know if I’ll be able to make the time on saturday. Hm…. I’ve got some killer ideas, but not too much rails-fu. But I could probably work out something in a day, rails is pretty easy.
It’s here.
Here is some real computer code. Explained:
John Wilder: the double-dot is a flip-flop operator when used in a conditional. The flip-flop is turned on by the first expression’s truth and turned off by the second expression’s truth. The tricky thing about the flip-flop is that it keeps the on/off state inside, so once it’s turned on by the opening expression, it says on until the closing expression is proven true. why the lucky stiff
Florian Groß goes over entries into some ruby obfuscation contest, and I don’t understand a word of it. I need to look at this and learn from it à l’avenir.
Learning ruby through testing it feature by feature – nice idea. Not only do you have a quick reference of everything you’ve ever learned, but if something in the library changes, you’ll know about it quickly.
We have no idea if Ruby did what it should have done: we just know what it did. That is, we used the language as a tool to explore itself. In the same way that a test is better than a specification, the language is better than a description of the language. The test is definitive—when we ask Ruby what the answer to ‘Hello! ’ * 3 is, we’re going to the horse’s mouth. It doesn’t matter what the documentation says; what we’re testing is what actually happens. And that’s learning. So the test is both a learning test and a regression test.
Nice flickr library for ruby, the love of my life (well…). Brought to you by the wonderful Scott Raymond.
Why we like rails:
Ruby on Rails is turning out to be that place in the middle capable of igniting excitement from both ends of the spectrum.
So what we’re basically trying to achieve is the meeting of quick’n’dirty with slow-but-clean into quick’n’clean.
when rails works she is like a sports car covered in hot babes. mrpotatohead (irc)
Could you say it any better?
A nice rails/ajax howto. Using, of course, the rails goodness that is Hieraki (man thats hard to spell). Here’s some more on rails and ajax, and also a demo of what dave has going on.
Interesting perspective on why ruby isn’t for new programmers – but it’s for me just because I don’t want to deal with C right now, and it’s real nice and quick.
Such a cool addition. I wish everything was as cool as rails.
A nice look from a beginners standpoint at rails in general.
Address Book and iCal on the web in ruby, anyone?
An excellent book, both at introducing and documenting the language. Incredibly exhaustive, almost everything I’ve ever wondered about reading through bits of ruby got a mention or two and really cleared my head.
After waiting about three months for my library to order and process Programming Ruby, saving me 40 bucks that I ought save for a new computer.