evoken — 2014-03-02T23:48:10-05:00 — #1
Also taking into account the popularity of PHP based CMSs such as Wordpress, Drupal and Joomla; what made you decide for Ruby?
Thanks in advance.
markbrown4 — 2014-03-03T18:29:22-05:00 — #2
Ruby is a much much better designed language and is more enjoyable to read and write.
It's true PHP has a lot of software like CMS's you can take and use, Ruby has a different approach. People share small packages called gems to do one thing really well. I will take this massive library of quality contributed gems to make my own applications over packages like Wordpress any day.
evoken — 2014-03-03T21:14:39-05:00 — #3
Fair enough, but how does that fares when making a website with a backend that will be administered by the client? With something like Wordpress, for example, I can design and code my custom theme, set up the backend with different post types, pages, content blocks and plug ins depending on the site's needs and end up with an easy to use backend for the client to use, requiring only minimal training.
How would something similar be set up with Ruby? Would you need to build it on your own by combining gems?
markbrown4 — 2014-03-04T09:27:32-05:00 — #4
There are similar options - refinery, mercury and active admin come to mind. I tend to use as minimal a system as needed.
wwb_99 — 2014-03-07T11:09:43-05:00 — #5
evoken — 2014-03-13T23:28:24-04:00 — #6
Cool, thanks for the info
Hmm, it was my impression that plenty of the criticisms that are usually raised about PHP no longer apply to it's latest versions and that modern frameworks like Laravel bring things rather close to Ruby's syntax style.
markbrown4 — 2014-03-15T01:34:28-04:00 — #7
Frameworks really do help a lot and you will be able to structure your applications similarly in any language now. Most of the quality popular web frameworks across the board like Laravel(php), Express(node), Django(python), MVC(.net) have all borrowed heavily from Ruby's Rails or Sinatra.
You're always going to be bound to the underlying languages though, out of those languages listed above PHP would easily come in dead last as my preferred language. In writing and reading style / structure and capability.
shaydez — 2014-03-22T11:49:42-04:00 — #8
I see this thread kind of smashing PHP..
I have to jump in here. I dabbled with ROR; and I personally have to say its a joke; who cares if its fun and friendly, and has rainbows and little stupid unicorns helping you with gems.. Ya Ruby has some fans about less than a thousand of them while PHP has over 600,000+ programmers.
When you bring up bad programming design. That's based on the developer (s) coding. PHP is an extremely powerful object oriented programming landuage; using MVC. Ruby reminds me of other standard frameworks in the PHP community like Zend, CodeIgniter, Yii etc... I even seen developers screw up the MVC structure in those frameworks too.
There's always a HUGE community of php developers and resources out to help develop applications faster. Ruby so called Gems is same thing as PHP Libraries; there's hundred-thousands of libraries out there for PHP. If someone was going to choose between Ruby(RoR) over PHP consider the job possibilities. There's about 1 of 10,000 jobs posted on different networks (Craigslist, Monster, Careerbuilder, elance, guru) for PHP; maybe just maybe you'll find 1 job posting for a Ruby developer.
I developed in PHP since 2001. If i was to get into Web Development now... I would consider those facts. PHP obviously is the winner. or .NET a lot of jobs for .NET too.
If Ruby was so great there would be more demand for it.. and I would be trying my hardest to learn it for job security..
mittineague — 2014-03-22T14:28:18-04:00 — #9
A think a lot of the Ruby "buzz" had to to with Rails and it's use of Scaffolding. i.e. if you stuck with the conventions a lot of things were created automatically.
This would allow for more rapid churning out of websites.
Any language has to deal with a set of common problems it's how they go about it that differs and IMHO some do some better, some not so much.
Rails and Gems aside, I like Ruby a lot because the code can be a lot "cleaner" and easier to understand. But I still prefer PHP because that's what I've been working with the longest and feel comfortable using.
Of course as said, the tools used don't ensure they're used correctly or in the best way.
markbrown4 — 2014-03-22T22:10:34-04:00 — #10
The thread's question was "Why do you prefer Ruby over PHP given PHP's popularity?" and we've given our honest opinions.
I listed it's popularity as one it's few strengths, it still doesn't want me to write code in it every day of my life as I find there's much better options these days. The interest in PHP has been in a steady linear decline for the last 10 years.
Nah, most developers who have used Rails for more than a couple of months don't find much benefit in the Scaffolding, I found it a good teaching aid though.
This is the main reason people stick with a technology, familiarity.
evoken — 2014-03-23T09:16:10-04:00 — #11
But hasn't that been the case for Ruby/Ruby on Rails over the last few years as well? I think it was on this site that I recently read an article about the programming languages to learn and it showed Ruby losing market share. If you put Ruby on Google Trends, you can see it peeking around 2006 and slowly declining since then:
As far as PHP goes, I don't know...it may be that it's popularity is artificially boosted by the mass appeal of PHP based CMS solutions like Wordpress, Drupal and Joomla; but then again, why aren't there equally popular solutions based around Ruby?
rubble — 2014-03-23T10:15:05-04:00 — #12
I think one problem with using Ruby is it does not tend to be installed on servers by default. I suppose a catch 22 situation - it is not installed so people do not use it; it is not installed as not many people use it.
Shared hosting seems to be very conservative with what they install.
shaydez — 2014-03-23T15:47:09-04:00 — #13
- this goes back what I'm saying about popularity. If there was a huge market for Ruby, I'm sure hosting providers would toss Ruby into their hosting packages. I asked my hosting provider to install ruby, they had no problem doing so. It's not like its a deal breaker when selling hosting services.
If we're going to bring stats into this. There's a very good explanation as to why Programming in general is declining. If you put PHP, Java, .Net, Ruby they're all decline since 2006. I'm assuming because alot of frameworks, and CMS platforms are out there not much use for straight programming anymore lol
shaydez — 2014-03-23T15:51:30-04:00 — #14
any how the whole point of my response to this post.. is I'm assuming the person asking about Ruby vs PHP is looking to pick a language. Don't miss lead new developers to pick the least popular language, limiting his chances to get a job.
markbrown4 — 2014-03-23T23:42:41-04:00 — #15
If there was a huge market for Ruby, I'm sure hosting providers would toss Ruby into their hosting packages.
The only time I use shared hosting anymore is when I work on PHP sites like Wordpress. Ruby, Node, Python projects I've worked on have their own servers(like Amazon EC2) where they control what's installed, shared hosting is irrelevant to me.
On job security, there will always be opportunity for any skilled/creative programmers who are always learning. There's certainly plenty of high paying jobs for Ruby developers where I am located.
I feel like the most important aspect of the question may be being missed - the reason I prefer using Ruby and Rails is that it is by far the most enjoyable stack to work with. It makes my job easier and more enjoyable, period.
Job security and installation is not a problem for me.
liamg — 2014-04-09T07:53:08-04:00 — #16
I'm currently learning PHP as part of my degree but there are parts I dislike about it. Mainly I find its a messy language, reading it can be a headache for me. I decided to pursue Ruby in my spare time as I really like the idea of it being easy to read, and fun to write.
arout77 — 2014-07-25T04:36:38-04:00 — #17
The reason why Rails reminds you of many of PHP's frameworks is because Ruby has greatly influenced the PHP community - for the better -- over the past few years. And Ruby absolutely is a better designed language than PHP.....although that is a bit unfair, since PHP evolved into what it is from something it never originally intended on being.
That said, for web development, I'd take PHP over Ruby / Rails any day of the week.
arout77 — 2014-07-25T04:39:09-04:00 — #18
Well written PHP is a thing of art. You are the painter, you decide how good it is....that is the double edged sword of a language like PHP that gives you so much freedom
wwb_99 — 2014-07-25T17:27:18-04:00 — #19
I would generally argue PHP wasn't designed at all which is half the problem there.
You don't see ruby (or many things besides PHP) on el cheapo shared hosting for a few reasons. One is that there is probably a free php script for whatever you want to do out there so if you are into cheap things line up. But more important is the memory model -- PHP only consumes memory when the script is executing. This translates into making it possible to put 1000s of low traffic sites on a single host as, given they are low traffic you are probably not talking about 1000s of simultaneous requests. Ruby web apps run in a persistent container that needs to be active and will always consume memory so you need a lot of RAM to serve a lot of low traffic web apps, so much that it makes the $4.95/mo hosting plans uneconomical. Another issue -- though this is largely solved by rvm -- is that ruby has a bit more of a versioning headache than php and some folks will need different, specific versions. Different versions of rubygems also come into play here. In addition, ruby grew up in the age of AWS so you have reasonably economical dedicated options and also services like heroku if you want some management. It is a different ballgame than php.
arout77 — 2014-07-25T19:55:23-04:00 — #20
But seriously, cmon now, let's be fair...today's PHP is legit. Granted, I am partial towards it due to my background in C, which also means that I have thicker skin when it comes to crazy conventions or unexpected behavior, but warts and all, PHP is one helluva language. It has much more going for it then just being cheap, easy and ubiquitous...which in and of itself, are very nice virtues to have
next page →