Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Wordpress be replaced by a Framework like Django or Ruby on Rails?

I consider myself a well trained WordPress template developer, and i recently started to read books and documents about web app frameworks, particularly Django and Ruby on Rails. I didn't know any of the two languages, but i have no problems to learn another one or two. I really don't get the real benefits of using a framework, because i feel very confident about the power of WordPress. So, can anyone tell me the real benefits of using a framework? For example, Pinterest is made using Django, but i think that i can achieve the same results with a WordPress template using Javascript and CSS3. Can anyone tell me the differences/benefits of using a framework in that particular case?

like image 457
hcsnemrebured Avatar asked Dec 13 '12 14:12

hcsnemrebured


People also ask

Is Django similar to WordPress?

Django is a backend framework, while WordPress is a CMS. And as you may have guessed, they're meant to accomplish different tasks. A web framework is a set of tools built on top of a programming language that lets you build web applications from scratch.

Does WordPress use Ruby on Rails?

WordPress uses PHP whereas ROR uses the Ruby programming language. Not only is it impossible to combine the two technologies, but you will also need to learn both from scratch. There's one scenario where you can use both WordPress and Ruby on Rails.

Does WordPress use any framework?

And although we can build our own applications on WordPress, that doesn't mean WordPress is a framework. Because, unlike the rest of the frameworks that are listed, WordPress is a complete, fully-functional application upon installation.


2 Answers

You can achieve the same frontend with Wordpress, but what you will not be able to achieve is the speed and scale - and most importantly, maintainability - of an application based on a more application-oriented architecture.

Wordpress is highly flexible, but it's also slow, and needs an awful lot of TLC to be able to operate at any kind of significant scale. Its design allows for very flexible runtime modification of behavior, but this is also a bit of a Pandora's Box, since it means that code can end up running all over the place for any given page, which makes maintenance a nightmare.

Wordpress is extremely good at being a CMS, but once you start to push it outside of those bounds, you get into trouble, and find yourself having to write your own more abstract framework that runs inside of the context of Wordpress to be able to fulfill your application's needs.

That said, if you have an application that you can build in the context of Wordpress, I'd say go for it! Wordpress can be a wonderful tool for building a proof-of-concept or MVP. If it gets you up and running, then it may be the right choice over writing a full application. However, just be aware that you're going to hit some brick walls as your product design matures and your audience grows, unless your application fits within a rather narrow set of design requirements, so long-term, you may find yourself having to move to a custom application.

Credentials: I've spent the last couple of years maintaining a Wordpress install that served over 25 million monthly uniques, and we had to get very clever to keep it running. We've since replaced it with a Rails application that serves pages somewhere on the order of 10x-30x faster, and is significantly more extensible as an application, allowing us to start exploring application potential that we really couldn't get with Wordpress.

like image 109
Chris Heald Avatar answered Oct 29 '22 15:10

Chris Heald


I once made the decision while working in some start-up to choose WordPress for an advanced e-commerce, community-driven marketplace.

It was an awful decision

This is how I was feeling:

enter image description here

At the beginning, it was looking good - you have an amazing community, plugins for everything etc. But sooner than later I hit the wall - at it's root - WordPress is a blogging platform!

  • Every piece of content technically is a post.
  • It's really hard to create advanced item relationships
  • Functionalities are not consistent. Some functions work one way, while others that seems to be very similar work in a different way. Sometimes you need some weird hacks to achieve task that seem to be simple. It makes you read the docs very often to see how a function that you're using for the 1000th time is working. (However, to be honest, I need to say that the WordPress documentation is great!)

The WordPress community is doing a great job, but compared to any regular Framework there is one main difference - Frameworks are just frameworks - they're a set of tools and those tools are there to help you do your project. WordPress already is trying to be something that you might then change.

I'll never again use WordPress for anything that needs some organised, custom functionality.

I'm actually quite impressed with what people has created with wordpress - so if you want to, it is possible and good luck!

It however often feels like buying a truck and rebuilding it to be a house. There are better ways to build a house.

like image 28
Adam Pietrasiak Avatar answered Oct 29 '22 17:10

Adam Pietrasiak