Re:Sick of Ruby, dynamic typing, side effects, and object-or...
by mratzloff on Tuesday November 07, 2017 @07:51AM
(#15642910)
You're conflating two different things.
Yes, the state of the web in 1998 was as you describe, but by 2005-2006 there was an explosion of MVC web frameworks in many different languages, of which Rails was just one.
Re:Sick of Ruby, dynamic typing, side effects, and object-or...
by charlieflowers on Tuesday November 07, 2017 @09:24AM
(#15643566)
That's right. Even pre-mvc, Java had Java Server Pages in 1999, which was much better than "<table>...sql here".
However, Rails is what really launched the "MVC renaissance." Because of it, soon Java, C# and many other languages moved to predominantly MVC cultures.
Re:Sick of Ruby, dynamic typing, side effects, and object-or...
by revscat on Tuesday November 07, 2017 @10:35AM
(#15644204)
Rails was a (positive) reaction to Struts. Struts was an MVC framework, but clunky and difficult to manage. ActiveRecord in particular took many lessons from what Struts did wrong, and fixed it.
I remember what shit was like in 1998, which is why I get the same sort of aggressive reflex anytime someone is criticising Rails.
Back then, a web project could, and this is only slightly hyperbolic, include a file ```/project/htdocs/version-2.0-old/real/includes/templates/config.passwords.production.INC.php3~```
...and that file would start with ```<table>``` and, somewhere, include the SQL to delete a user.
That was the state of our industry when Rails was released. Which is why anybody who went through that transition weeps whenever people today regurgitate this bullshit about "magic" and "OOP considered harmful". Maybe functional programming is incrementally better. Maybe Rails is past its prime. But on a purely emotional basis, I feel defensive when some article doesn't start with a paragraph praising the genius of DHH before offering its criticism.