Re:Wordless: stop writing Wordpress themes like it's 1998.
by tibbon on Wednesday December 07, 2011 @11:32AM
(#3324464)
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.
[ Parent
| on HN ]
Re:Wordless: stop writing Wordpress themes like it's 1998.
by j45 on Wednesday December 07, 2011 @11:59AM
(#3324598)
Rails 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.
Re:Wordless: stop writing Wordpress themes like it's 1998.
by tibbon on Wednesday December 07, 2011 @12:59PM
(#3324932)
I 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.
Re:Wordless: stop writing Wordpress themes like it's 1998.
by j45 on Wednesday December 07, 2011 @02:31PM
(#3325456)
Yeah, 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.
Re:Wordless: stop writing Wordpress themes like it's 1998.
by danneu on Wednesday December 07, 2011 @07:19PM
(#3326892)
Agreed.
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"]);