Programmers: do you code with Ruby ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    Programmers: do you code with Ruby ?

    or Ruby on Rails or whatever it's called ?
    if you had any of the specified choices for coding small things (e.g: retrieving some data from an SQL server database and generating HTML from it) which one will you choose ?

    leave fucking .NET and java for a second
    28
    Perl
    0%
    3
    PHP
    0%
    20
    Python
    0%
    1
    Ruby / Ruby on Rails
    0%
    4
    * Mainstream ? $65 per sale
    * new male contraception
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #2
    * Mainstream ? $65 per sale
    * new male contraception

    Comment

    • GrouchyAdmin
      Now choke yourself!
      • Apr 2006
      • 12085

      #3
      You tend to use what you know. Ruby's great for some things, shitty for others. Same for Perl and PHP. You either use the language you have, or you're proficient enough to do what you want with the language available.

      That said, I'm a bit disturbed by how quickly I can shit out "throwaway" or simple things in PHP these days

      Comment

      • Zester
        Confirmed User
        • Jul 2003
        • 5344

        #4
        the thing is I just can't see what Ruby is doing better than PHP when it comes to the small things.
        but then again I don't know much about ruby
        * Mainstream ? $65 per sale
        * new male contraception

        Comment

        • FlowerKid
          Confirmed User
          • Sep 2005
          • 1045

          #5
          PHP and MySQL is a good combination for small up to bigger web projects.

          Comment

          • AcidMax
            Confirmed User
            • May 2002
            • 1827

            #6
            Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.
            Latest MMA news. http://www.mmawrapup.com

            Comment

            • StuartD
              Sofa King Band
              • Jul 2002
              • 29903

              #7
              Originally posted by AcidMax
              Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.
              Which do you prefer and why?
              I'm thinking that next year I'd like to expand and would love some suggestions feedback on where best to set my sights.
              This is me on facebook
              This is me on twitter

              Comment

              • AcidMax
                Confirmed User
                • May 2002
                • 1827

                #8
                Originally posted by StuartD
                Which do you prefer and why?
                I'm thinking that next year I'd like to expand and would love some suggestions feedback on where best to set my sights.
                Just read your thread, man you got alot going on. Good luck to you.

                As far as what I recommend I have switched to Python. Python runs much faster than PHP, and instead of loading,parsing each PHP page on each request you can run Python in an application server. This way all the code is loaded into memory 1 time at start. Not to mention its threading. It has just become a much better system to use, while its not as easy to deploy etc., the code is faster. The biggest problem with Python itself is the fact that most hosts don't support it (unless you have a dedicated server). I have seen to many changes in PHP, and their lack of wanting to be backwards compatible is frustrating. 5.x is not compatible with 4.0 and it appears that possibly future 5.x versions wont be compatible with previous 5.x versions. Most of the last sentence is rumor mostly, so take it with a grain of salt.
                Latest MMA news. http://www.mmawrapup.com

                Comment

                • sysk
                  Confirmed User
                  • Aug 2007
                  • 1005

                  #9
                  I have nothing against RoR, but I must admit I'm a big PHP adept

                  This is an interesting article:
                  7 reasons I switched back to PHP after 2 years on Rails
                  icq: 612510168 / email: [email protected] / php ninja 4 hire

                  Comment

                  • StuartD
                    Sofa King Band
                    • Jul 2002
                    • 29903

                    #10
                    Originally posted by AcidMax
                    Just read your thread, man you got alot going on. Good luck to you.

                    As far as what I recommend I have switched to Python. Python runs much faster than PHP, and instead of loading,parsing each PHP page on each request you can run Python in an application server. This way all the code is loaded into memory 1 time at start. Not to mention its threading. It has just become a much better system to use, while its not as easy to deploy etc., the code is faster. The biggest problem with Python itself is the fact that most hosts don't support it (unless you have a dedicated server). I have seen to many changes in PHP, and their lack of wanting to be backwards compatible is frustrating. 5.x is not compatible with 4.0 and it appears that possibly future 5.x versions wont be compatible with previous 5.x versions. Most of the last sentence is rumor mostly, so take it with a grain of salt.
                    Thanks.. yeah, at the beginning of the year I was all gung-ho about trying to branch out.... it obviously didn't happen. So now I'm thinking once we get the routines down with the newborn and my wife is back on her feet, I can take up the charge once again.

                    Thanks for the suggestion, I hadn't even considered python before to be honest. Not sure why but I'm going to do some reading and keep it in mind when I finally do have the time.
                    This is me on facebook
                    This is me on twitter

                    Comment

                    • draude
                      Confirmed User
                      • Nov 2006
                      • 1214

                      #11
                      just use mysql and php
                      Web Developer

                      Comment

                      • justFred
                        Confirmed User
                        • Mar 2007
                        • 922

                        #12
                        Originally posted by sysk
                        I have nothing against RoR, but I must admit I'm a big PHP adept

                        This is an interesting article:
                        7 reasons I switched back to PHP after 2 years on Rails

                        never really looked into ruby AT ALL yet, this was an interesting read, which makes me want to at least investigate the language.

                        Although I'm diving into SQL and XML at the moment (and PHP as a core language.) I want to learn a little of everything. So far I've used: logo, basic, C++, html, CSS, JavaScript, PHP, and SQL. PHP is my favorite language out of these.

                        PROGRAMMING LANGUAGES ARE LIKE GIRLFRIENDS: THE NEW ONE IS BETTER BECAUSE *YOU* ARE BETTER
                        heh, yeah. true in both cases.
                        Vote Bill Cosby 2012

                        Comment

                        • kovacs
                          So Fucking Banned
                          • Nov 2007
                          • 248

                          #13
                          I use php and mysql because it's what I know and it's readily available at every host. I've been looking into python and it seems easier to structure a large program and has a much better built in library, but I can't really see myself moving away from php at this stage... Too much work already invested in a php platform.

                          Comment

                          • Zester
                            Confirmed User
                            • Jul 2003
                            • 5344

                            #14
                            Originally posted by AcidMax
                            Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.
                            I thought you were talking about Ruby being slow ? how did PHP get in the negative side of the picture ?
                            * Mainstream ? $65 per sale
                            * new male contraception

                            Comment

                            • teg0
                              Confirmed User
                              • Jan 2006
                              • 4204

                              #15
                              php because it has a much larger community. You can also use cakephp and get a lot of the same functionality of the ruby on rails framework.

                              Comment

                              • Babaganoosh
                                ♥♥♥ Likes Hugs ♥♥♥
                                • Nov 2001
                                • 15841

                                #16
                                I use Perl for any kind of parsing or back end script/admin script. I use PHP for dynamic content. I toyed with Ruby earlier this year and really wasn't a fan. Python looks promising but I honestly haven't jerked with it much. I think if I wanted to branch out I would go with Python.
                                I like pie.

                                Comment

                                • polle54
                                  Confirmed User
                                  • Jul 2004
                                  • 4626

                                  #17
                                  Originally posted by FlowerKid
                                  PHP and MySQL is a good combination for small up to bigger web projects.
                                  I second that

                                  I use PHP/Mysql for adult projects on linux servers

                                  In terms of big business I use windows servers and ASP.NET with sql 2005 servers.
                                  It's easier to structure your code correct if it's a huge complicated system.

                                  Designpatterns are much easier integrated. Typically .NET applications are strong when you use Facade with Interfaces and Gateway patterns to make a clean cut to the Database and seperate business layer and UI.

                                  Summery of my use:

                                  PHP/Mysql
                                  - for small projects
                                  - Big projects on Linux

                                  ASP.NET
                                  - Huge commercial applications with maybe 7-15 solutions and 200+
                                  codefiles.

                                  Ruby:
                                  - I only use it for fun so far.

                                  Perl:
                                  - Never learned it properly.
                                  ICQ# 143561781

                                  Comment

                                  • Babaganoosh
                                    ♥♥♥ Likes Hugs ♥♥♥
                                    • Nov 2001
                                    • 15841

                                    #18
                                    This thread made me decide to mess with Python today. It's cold and shitty outside and I don't have anything to do. I've been messing with Python for about an hour now and so far I am digging it. If you're a programmer, check it out. It's surprisingly fun in a geeky kind of way.
                                    I like pie.

                                    Comment

                                    • psili
                                      Confirmed User
                                      • Apr 2003
                                      • 5526

                                      #19
                                      I did a couple of small projects in the RoR framework (two websites and a WAP CMS and site creation utility) and was amazed at how fast it was to setup: Run a command that builds the application folder structure and framework. Model your database and setup connection parameters. Run the scaffold command and voila - you've got basic views and controllers accessing your database without coding a thing. Never tested the projects in a high-availability website, but it seems you can just cluster a couple of mongrel servers front-ended by apache's mod_proxy to properly handle requests.

                                      Anyway, that's what I got out of that. At least for prototyping, I liked it a lot. *shrug*
                                      Your post count means nothing.

                                      Comment

                                      • AcidMax
                                        Confirmed User
                                        • May 2002
                                        • 1827

                                        #20
                                        Originally posted by Zester
                                        I thought you were talking about Ruby being slow ? how did PHP get in the negative side of the picture ?
                                        Because , compared to Python, PHP is slow. Out of the only languages I consider viable for web use (c can be, same with java but compiling is annoying), Python is the fastest.

                                        http://www.timestretch.com/FractalBenchmark.html
                                        Latest MMA news. http://www.mmawrapup.com

                                        Comment

                                        • Zester
                                          Confirmed User
                                          • Jul 2003
                                          • 5344

                                          #21
                                          fuck me php is slow...but Roby IS slower...
                                          * Mainstream ? $65 per sale
                                          * new male contraception

                                          Comment

                                          Working...