Poll: Which among these frameworks is good for web development?

Results 1 to 10 of 10

Thread: CakePHP vs. Ruby on Rails

  1. #1
    Join Date
    May 2012
    Posts
    103

    CakePHP vs. Ruby on Rails

    I am planning to create a website for e-commerce as a part of my college project and I am planning to make it by use of PHP as the base language. But I don’t know if I should use CakePHP or Ruby on Rails for it. I know both of the web development languages and I can make website on any of it. The problem is that I don’t have any industry experience of making a website and thus I am confused among these two frameworks should I use. I have to take into consideration the reliability, stability and resources. So can someone tell me which of the two will be best for developing an e-commerce website?

  2. #2
    Join Date
    Apr 2009
    Posts
    488

    Re: CakePHP vs. Ruby on Rails

    If you make a comparison between CakePHP and Ruby on Rails then the first thing you will notice is that blocks of the meta-programming are almost similar. In both the frameworks, the blocks of code are sent to the methods in form of the parameters. Also in both the frameworks one can declare methods on an object. Also the directory structures used in both the frameworks is almost same. But the directory structure of Ruby on Rails seems to be more useful than that of CakePHP. The model based relations used in both the frameworks are also same except for ‘HasAndBelongsToMany’. When working on Ruby on Rails, this model based relation becomes ‘has_many :through => relationship’.

  3. #3
    Join Date
    Feb 2012
    Posts
    96

    Re: CakePHP vs. Ruby on Rails

    While building a website using CakePHP, I think one of the best feature it provides is ‘on the fly’ binding. This is available in Ruby on Rails but developer needs to use much of the meta-programming and add some class methods to model for purpose of adding additional features. One best feature that is common between both te3 frameworks is that ‘on the fly’ binding CakePHP and Ruby on Rails is both models heavy. But just to add more weight to the model, it shouldn’t happen that you add too much of scaffolding. The RESTful code generator that we get in Ruby on Rails is good but it creates a lot of scaffolding which should be avoided as the code gets complex. It is fine to use in start when the code is light and not complex.

  4. #4
    Join Date
    Feb 2012
    Posts
    88

    Re: CakePHP vs. Ruby on Rails

    One thing about Ruby on Rails is that it is much slower in interpreting lines of code that that if CakePHP. If CakePHP can interpret 20 lines of code in one minute then Ruby on Rails will interpret around 6 lines in one minute. But on advantageous side, one has to right less amount of code to generate a specific effect. This has one advantage, less the code lesser number of bugs and glitches will be generated. But one thing that Ruby on Rails is better than CakePHP is that of internal caching. The internal caching of Ruby on Rails is bigger than that of CakePHP. Thus on long run or when the code becomes large, Ruby on Rails interprets code faster than CakePHP.
    One cries because one is sad. For example, I cry because others are stupid, and that makes me sad.

  5. #5
    Join Date
    Nov 2010
    Posts
    86

    Re: CakePHP vs. Ruby on Rails

    I think that CakePHP is much better than Ruby on Rails as it provides better migration for databases and other third party collections of applications. When it comes to website like e-commerce, maintaining a database is very important. Usually the database is created using SQL. Being a website developer, I think that CakePHP provides better connectivity with SQL database than Ruby on Rails. The events that are needed for migration of data from website’s can be easily transferred by use of a minor code. But in Ruby on Rails framework, implementation of smallest events like adding data or updating data needs complex codes.

  6. #6
    Join Date
    Nov 2010
    Posts
    73

    Re: CakePHP vs. Ruby on Rails

    Another problem that Ruby on Rails faces is the deployment of the website along with the Apache servers. This feature is properly developed and easy to use in CakePHP. Many people still depend on the ftp and scp deployment for the website. But I feel that methods can be changed for better if CakePHP is used. One thing I really like about Ruby on Rails is that instance variables in controllers can be directly accessed to be viewed which is a good feature. By simple use of Set(), one can access instance variables. But this method is somewhat risky as it can lead to creation of lot of bugs.

  7. #7
    Join Date
    Mar 2011
    Posts
    160

    Re: CakePHP vs. Ruby on Rails

    The caching part in CakePHP is very weak as compared to Ruby on Rails. You will not find much information about caching in CakePHP which means that you yourself have to find it out and learn it. Cleaning and using the memcache in CakePHP is very much complex if compared with that of Ruby on Rails. If anyone has worked on caching in Ruby on Rails then one thing he/she will surely tell you is that it is awesome. Various options like object caching, query caching and fragment caching makes the things easy and also good for use and give proper results.

    I don’t think that people that use CakePHP regularly or more than Ruby on Rails will be using the caching features in it as efficiently and regularly as that in case of Ruby on Rails users.

  8. #8
    Join Date
    Jun 2011
    Posts
    45

    Re: CakePHP vs. Ruby on Rails

    The process of routing and RESTful routing in CakePHP is not so well developed as that in Ruby on Rails. I think this one of the major drawback of using CakePHP. Though developers have now made RESTful routing available for use in CakePHP, it seems that they are rarely used by the developers. I think that this is because most of the people have got habituated to the routing process of Ruby on Rails so well that they don’t want to leave it for some new technique. Although RESTful routing has been made available in CakePHP, it is not efficient as that in Ruby on Rails. One reason can be because, RESTful routing in Ruby on Rails automatically generates CRUD automatically.

  9. #9
    Join Date
    May 2009
    Posts
    539

    Re: CakePHP vs. Ruby on Rails

    Another bad things about CakePHP is that it lacks Polymorphic associations like that in Ruby on Rails. I can’t say that Polymorphic associations are missing from CakePHP, they must be present somewhere deep inside the whole structure. It is just that I can’t find it. One of my friends who had used Polymorphic associations in past told me that it is an complex method to get it in CakePHP. It is better if not done through CakePHP and thus developers prefer to use Polymorphic associations from Ruby on Rails.

  10. #10
    Join Date
    Mar 2010
    Posts
    145

    Re: CakePHP vs. Ruby on Rails

    Being a web developer, who depends on PHP to make web page and websites, I would like to say that CakePHP has helped us developers to make work easier more than Ruby on Rails has ever done. Though they are almost similar, when any difference occurs between them, these differences are very large and extreme. For example, if CakePHP has some feature than Ruby on Rails will not have that feature anywhere close. One will have to crate module for it f4om scratch or leave it. But one thing can be said that Ruby on Rails is good for developing from scratch while CakePHP is good for enhancing the developed content much further.

Similar Threads

  1. Want to learn Ruby on Rails
    By Endowed in forum Software Development
    Replies: 5
    Last Post: 04-01-2011, 12:24 PM
  2. Information about Ruby on Rails
    By Inigo in forum Software Development
    Replies: 4
    Last Post: 04-01-2011, 06:36 AM
  3. J2EE vs Ruby on rails
    By KAMAL60 in forum Software Development
    Replies: 7
    Last Post: 28-07-2010, 10:31 AM
  4. Ruby On Rails vs. ASP.Net
    By FlayoFish in forum Software Development
    Replies: 2
    Last Post: 17-04-2009, 03:18 PM
  5. where to use Ruby on Rails!
    By machok in forum Software Development
    Replies: 3
    Last Post: 11-02-2009, 11:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,661,383.83010 seconds with 18 queries