3 ms·
This is awesome! I've often lamented how messy Wordpress is compared to Rails. Yet, there's nothing as mature and easy for anyone to use as Wordpress in Rails.
by tibbon 15y ago
This is awesome! I've often lamented how messy Wordpress is compared to Rails. Yet, there's nothing as mature and easy for anyone to use as Wordpress in Rails.
- j45 15y agoRails is a framework, while frameworks do cool things, developers in any language are not always out to build a piece of software that's like a swiss army knife like Wordpress. The rails communitys' exuberance to simplify and automate everything in sight hasn't quite reached wordpress yet. In the mean time there's gems, I guess.
- tibbon 15y agoI guess I was just thinking of rails very clear MVC pattern. Wordpress doesn't have this at all. Instead they have "the loop" which just ends up being a mess.
- j45 15y agoYeah, Rails is one of many recent MVC patterned frameworks. It wasn't the first, and it won't be the last. WP was created in a time where I think switches were used more. Personally I find the MVC paradigm to apply to web apps easier, but there was a time when web apps maybe weren't so complex, and WP was around a long time ago. Still, nothing provides a compelling ecosystem as Wordpress out there, so we can say the language, coding style seems to only matter so much in the end.
- danneu 15y agoAgreed. After working with Active Record, it's really hard to switch back to Wordpress and write: $today = getDate(); $my_posts->query('year=' .$today["year"]. '&monthnum=' .$today["mon"]. '&day=' .$today["mday"]);