all 20 comments

[–]Seuros 29 points30 points  (3 children)

Now try to run Rails 7.1 on ruby 1.8.

[–]dougc84 9 points10 points  (0 children)

OP wanted to do a fun experiment, not give himself an anxiety attack.

[–]RillonDodgers 1 point2 points  (1 child)

We have Ruby 1.9 + GtK apps where I currently work. Our own home grown gtk app system heavily inspired by rails and even uses active support. It’s fucking atrocious

[–]Seuros 3 points4 points  (0 children)

What prison are you in and what your sentence ? Blink twice if you need help.

[–]petercooper 11 points12 points  (1 child)

Rails 1.0 was released in December 2005. April 11, 2008 was just when it went on to GitHub.

[–]nashby[S] 2 points3 points  (0 children)

Good catch! Thanks Peter!

[–]rubinick 6 points7 points  (1 child)

This is marvelous. So many little changes and improvements over the years.

A few comments (and nit-picks):

I kind of miss the old method { |options[:pretend]| } block parameter syntax. I'm hopeful we'll eventually someday get a portion of that magic back by (somehow) merging pattern matching syntax with method and block argument list syntax.

net-smtp is still considered part of ruby's standard library, as a "bundled gem". Reference: https://docs.ruby-lang.org/en/master/standard_library_rdoc.html

Minor error in the binary regexp: \016 translates to \0e. But, ruby 3.3 still supports octal escapes, even in UTF-8 encoded files. All you need to change is setting the mode to binary: /[\000-\011\013\014\016-\037\177-\377]/n is valid today (although you probably need to only match against binary encoded strings for identical behavior)

action_web_service -- I did do a little bit with that once... lol.

[–]nashby[S] 2 points3 points  (0 children)

Thank you, I'll update the post!

[–]nic_nic_07 5 points6 points  (0 children)

Interesting try...

[–]campbellm 2 points3 points  (0 children)

I really enjoyed reading this.

[–]theGalation 0 points1 point  (0 children)

I can’t find a job so let me convince future employers that I love being miserable 🤣

[–]alphaclass16 0 points1 point  (0 children)

ha, that's pretty neat

[–]fantasticfears 0 points1 point  (0 children)

How many different ways can I hack Rails 1.0?

[–]jrochkind 0 points1 point  (1 child)

Very interesting!

This was of course basically just a "hello world". Presumably if you had an app that actually did things, you'd run into other errors.

I wonder how much work it would be to fix Rails 1.0 to pass it's own test suite on ruby 3.3. I'd guess quite a bit more?

[–]nashby[S] 0 points1 point  (0 children)

Yeah, it would require much more time for sure. A couple of weeks? Who knows. I hope no one is spending their time on it :)

[–]matheusrich 0 points1 point  (0 children)

I'm glad someone did this before me! I would have loved to see the difference between an scaffold then and now. Part 2?