Ruby on Rails vs PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #16
    RoR is great if you can support it. PHP installations usually have most of the functions you're going to need already. You'll also get fewer coders who want to assume either - but with PHP you know you're going to get a bunch of shit, 9/10 times.

    Comment

    • borked
      Totally Borked
      • Feb 2005
      • 6284

      #17
      I know of 4 developers that swear by RoR, 1 of which ripped out all I wrote in PHP in favour of RoR for the main site of a large company. Both scripts were MVC-based, both scripts were 100% modular, he just preferred to do it in RoR, but identical site at the end.

      That logic I don't understand - is it to keep him maintaining the code knowing how few RoR developers there are, is it because his PHP knowledge was less than RoR, I don't think so, it's just he preferred RoR.

      RoR developers say it takes less time to develop than in PHP, but I disagree. The example above took about half the time to develop in PHP, although I think it's because I knew the db better, not sure.

      If you can get this done in PHP, then go for it, but knowing the project, it absolutely *must* be an MVC framework or else it will never work the way you want it to - that I'm sure about

      For coding work - hit me up on andy // borkedcoder // com
      (consider figuring out the email as test #1)



      All models are wrong, but some are useful. George E.P. Box. p202

      Comment

      • borked
        Totally Borked
        • Feb 2005
        • 6284

        #18
        and fwiw, I got very interested in RoR, invested time understanding it and can write a hello world tour with members area, but that is as far as I went - there isn't the interest from clients for RoR than there is PHP, so why waste my time?

        For coding work - hit me up on andy // borkedcoder // com
        (consider figuring out the email as test #1)



        All models are wrong, but some are useful. George E.P. Box. p202

        Comment

        • Vendzilla
          Biker Gnome
          • Mar 2004
          • 23200

          #19
          I'm working with someone thats developing something in RoR and I have to say, it's coming along pretty fast. I have my concerns, but they are going to stay with the project and this is what they want to use.
          Carbon is not the problem, it makes up 0.041% of our atmosphere , 95% of that is from Volcanos and decomposing plants and stuff. So people in the US are responsible for 13% of the carbon in the atmosphere which 95% is not from Humans, like cars and trucks and stuff and they want to spend trillions to fix it while Solar Panel plants are powered by coal plants
          think about that

          Comment

          • Barefootsies
            Choice is an Illusion
            • Feb 2005
            • 42635

            #20
            Originally posted by borked
            If you can get this done in PHP, then go for it, but knowing the project, it absolutely *must* be an MVC framework or else it will never work the way you want it to - that I'm sure about
            from a man in da know
            Should You Email Your Members?

            Link1 | Link2 | Link3

            Enough Said.

            "Would you rather live like a king for a year or like a prince forever?"

            Comment

            • BestXXXPorn
              Confirmed User
              • Jun 2009
              • 2277

              #21
              I agree, MVC is the way to go... I should really release my own framework I've developed over the past 10 years to the public, I'm sure the PHP community would love it...

              But I'm torn, I'm also a big supporter of private enterprise and my framework has been hard won. It's my bread and butter and I can develop things in a fraction of the time it takes other developers.

              Being OO, completely modular, and using true MVC design principals so that I can swap out a data source without ever touching a controller or view... I use DatabaseObjects for example:

              Class User extends MySQLObject, it has common methods used across any Parent DB Object Class...

              $user = new User($id);
              $user->getFormData();
              $user->updateDB();

              That's all I need to write in order to process form data, populate the new data for a user row and update the database... Everything is handled out of my way, cleaning, escaping, structuring the SQL, etc...

              If I want to handle users through LDAP, it's easy

              Class User extends LDAPObject

              $user = new User($id);
              $user->getFormData();
              $user->updateDB();

              I have prebuilt parent classes for SQL Server, Oracle, Postgres, MySQL, LDAP, and even flat file storage... I can swap from data source to data source with a few characters worth of changes...

              Anyway, probably boring 99% of the people in here but that's an insight into the data side of things in my own code :P

              +1 MVC
              ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

              Comment

              • Barefootsies
                Choice is an Illusion
                • Feb 2005
                • 42635

                #22
                Originally posted by BestXXXPorn
                Anyway, probably boring 99% of the people in here but that's an insight into the data side of things in my own code :P

                +1 MVC
                Should You Email Your Members?

                Link1 | Link2 | Link3

                Enough Said.

                "Would you rather live like a king for a year or like a prince forever?"

                Comment

                • Varius
                  Confirmed User
                  • Jun 2004
                  • 6890

                  #23
                  Originally posted by BestXXXPorn
                  I agree, MVC is the way to go... I should really release my own framework I've developed over the past 10 years to the public, I'm sure the PHP community would love it...
                  I think this is why I see zero benefit of RoR. After many years, I have my preferred set of classes or "base" to start any site from, including config dir, common classes/includes, modified/hacked Smarty and AdoDB libraries, etc...

                  So to me, the "ability to set things up faster with RoR" doesn't apply and IMO that is really the only thing it has going for it right now.

                  It's always good to know though, as the more languages you can know will only help you. Especially once you find out the high-paying freelance work is in fixing other people's work, not doing your own from scratch
                  Skype variuscr - Email varius AT gmail

                  Comment

                  • Barefootsies
                    Choice is an Illusion
                    • Feb 2005
                    • 42635

                    #24
                    Originally posted by Varius
                    I think this is why I see zero benefit of RoR. After many years, I have my preferred set of classes or "base" to start any site from, including config dir, common classes/includes, modified/hacked Smarty and AdoDB libraries, etc...

                    So to me, the "ability to set things up faster with RoR" doesn't apply and IMO that is really the only thing it has going for it right now.

                    It's always good to know though, as the more languages you can know will only help you. Especially once you find out the high-paying freelance work is in fixing other people's work, not doing your own from scratch
                    Toe hee!!
                    Should You Email Your Members?

                    Link1 | Link2 | Link3

                    Enough Said.

                    "Would you rather live like a king for a year or like a prince forever?"

                    Comment

                    • jay23
                      Confirmed User
                      • Jun 2003
                      • 1444

                      #25
                      Is their a rails like frame work for PHP.

                      Here is a video of a tool I use http://www.deklarit.com/demo/

                      Comment

                      • Barefootsies
                        Choice is an Illusion
                        • Feb 2005
                        • 42635

                        #26
                        Originally posted by jay23
                        Is their a rails like frame work for PHP.

                        Here is a video of a tool I use http://www.deklarit.com/demo/
                        Should You Email Your Members?

                        Link1 | Link2 | Link3

                        Enough Said.

                        "Would you rather live like a king for a year or like a prince forever?"

                        Comment

                        • Cutty
                          So Fucking Banned
                          • Jan 2006
                          • 1265

                          #27
                          Originally posted by Barefootsies
                          Well, borked had referred this chap to me for some overflow work. However, he prefer to do everything in Ruby.


                          americans don't say chap

                          Comment

                          • Barefootsies
                            Choice is an Illusion
                            • Feb 2005
                            • 42635

                            #28
                            Should You Email Your Members?

                            Link1 | Link2 | Link3

                            Enough Said.

                            "Would you rather live like a king for a year or like a prince forever?"

                            Comment

                            • grumpy
                              Too lazy to set a custom title
                              • Jan 2002
                              • 9870

                              #29
                              here is a nice read for you
                              http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html
                              Don't let greediness blur your vision | You gotta let some shit slide
                              icq - 441-456-888

                              Comment

                              • jwerd
                                Confirmed User
                                • Jun 2003
                                • 1953

                                #30
                                I always recommend to any new clients that are looking to build an application from scratch to go with what is already out there, and improve upon it. In this case I use CakePHP for all new, fresh projects that require the MVC design, rapid application development, and structure that is lacking from a completely new project. Afterall, I get to shape it and make it the way I want, Cake just keeps it clean, organized and functional.

                                Plus, RoR happy guys will respect PHP more when they try out Cake, because it's modeled after RoR
                                Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com

                                Comment

                                Working...