[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Should I learn Ruby on Rails or PHP? What are the pros and cons

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 43
Thread images: 3

File: index.jpg (4KB, 275x183px) Image search: [Google]
index.jpg
4KB, 275x183px
Should I learn Ruby on Rails or PHP? What are the pros and cons of these two languages? I already know HTML/CSS/Javascript.
>>
between the two, probably RoR, but if you're looking for a server side language you should probably look at javascript (and specifically Node.JS as a framework)
>>
Ruby on rails is great despite what memers tell you

Id suggest it, it's nice to work with
>>
>>56009502
PHP rules the world and gets people paid.
Partly because it's shit but still.
>>
PHP dev here, RoR is fine if you're a pansexual dragonkin. If you want employment learn node and PHP at the same time
>>
File: averagesalary.png (60KB, 400x577px) Image search: [Google]
averagesalary.png
60KB, 400x577px
>>
>>56009502
Go
>>
>willingly learning php
OP please check into a clinic for suicidal depression and self-harm ideation
>>
>>56009502
PHP? absolutely not. It's an abortion of a language.
RoR? meh.
I think you'd have a better return on your time if you went with Python.
>>
>>56011585
I've worked with PHP, clean for 2 years, 4 months and 13 days now.

At one point the sun stops shining, sure light reaches objects, but it's no longer livid, there is no joy to it, no satisfaction, you feel it should be better but it's not and it works and it's everywhere so people seem fine with it. Just like PHP.

You do get paid tho
>>
Neither. Learn Lua/Sailor
>>
>>56012712
Not that guy but I'm just now taking a breather from learning Lua. It looks real nice & simple.
>>
>>56009502
PHP is Pajeet tier and the RoR meme is over
Learn Elixir and Phoenix
>>
>>56009502
PHP if you want to find work and easily make good sites quickly.
>>
>>56011153

Those numbers include stock options in meme startups that die and lose all your money.
>>
Not really /webdev/ here but I've finished 3 large projects with PHP, RoR, and Node.js respectively.
>PHP
Basically trash. It'll have you fiddling around with minor details so much that you'll never make any good progress within a reasonable time if you're beginning. It's shilled by /g/ in the same way that C is.
>Node.js
Fairly easy to learn if you know javascript already. You can have a decent site up, running, and looking good by the end of 24 hours. The asynchrony can be annoying sometimes.
>RoR
Silimar to Node.js in the sense that you'll be able to get your project up and running quickly. Ruby is a little weird at first but you'll get used to it. RoR is more strict than Node in the sense that you have to structure everything the way THEY want you to and you might find yourself spending more time than usual reading docs to understand it all.
>>
>>56014568
Me again..At the end of the day I'd choose RoR over PHP and Node.js
>>
>>56014568

PHP: php.net is a pretty good manual and has examples. You can learn it as you go.. its the modern BASIC

Node.js: there were some really ugly politics with engineyard? I dunno, I don't see it working well for busy/big sites.

RoR: One benefit is that you'll know Ruby and can use it for other non-web tools. It's a resource hog
>>
>>56014663
Yeah, I've heard node.js doesn't scale very well. Haven't had a site that busy yet though...
>>
>>56009502
Do you want to make money or fuck fat chicks?

PHP former RoR latter
>>
PHP: Its good for simple scripts, but its a big no no for larger projects (facebook as an example).

RoR: Its good for larger projects (twitter as an example).

Python: Like PHP, its good for simple scripts/sites.. as a backend. For larger projects, avoid using it.

ASP.NET: Microsoft shrill, don't even bother.
>>
4chan's backend is written in PHP isn't it? That alone should be enough to make you steer clear
>>
Most web frameworks works the same way, pick one of the popular ones like RoR or Django.

>>56011171
Go has some really nice web frameworks. If I could start over with some of my projects I would have picked Revel or Iris, instead of RoR.
>>
>>56009502
PHP is annoying, but not that awful to work with on a daily basis. It will get you paid for sure, and there are a lot more PHP jobs than RoR.

RoR is a much nicer language to write and maintain, but the users are pretentious fucks (PHP users are [myself included] are morons, so take that with a grain of salt). It's harder to get a RoR job because there just aren't as many, but it's a bit more pleasant.

Learn PHP to get a job and pay your bills while you learn enough Ruby to get a better job.
>>
>>56015224
But Facebook is PHP
>>
>>56015603
That's what I said...
>(facebook as an example)
>>
>>56009502
NODE
J
S
>>
>>56015619
>Twitter is more complex than Facebook
>>
RoR is nice that you can set up a website structure in one command and immediately start developing the design and functionality without having to write everything from scratch.
>>
>>56015603

Facebook has had to invest heavily in tools to compensate for PHP's shittiness. HHVM for one, and they purchased a company that did evaluation of PHP code for bugs. I'm also fairly sure they have big libraries to rely on to make PHP more palatable.
>>
https://hanamirb.org
It's a wonderful and easy but advanced framework currently in development. I've used it for personal projects and work and absolutely adore it. Disclaimer: I do contribute to some parts of it.
>>
>>56015865
This. Mark Cuckerberg said something about that Facebook took the PHP Source (written in C) and then heavily modified it. They call it 'PHP on Steroids'.
>>
>>56015224

I hate to break it to you, but twitter is in a few different languages. You remember when the failwhale was common? That was RoR in action. RoR scales very poorly.

Python is great for large projects and its gaining in popularity.
>>
File: 1470720859679.jpg (133KB, 700x509px) Image search: [Google]
1470720859679.jpg
133KB, 700x509px
>>56015730
No shit, Sherlock.
>>
>>56015496
>>56009511
^This and this. It seems like RoR is mostly being used with pure JS front ends nowadays, so learn both.
>>
>>56015925
I understand that, many large sites use different languages. But I didn't think that Python would be appearing in the list of web development languages.
>>
>>56015865
After the release of PHP 7 the speed is comparable to HHMV in bechmarks.

It is also faster than Python.

I run PHP 7.0.9 and it runs a clockwork
>>
But in CS50 David says php for serverside and js for clientside
>>
>>56017303
david who?
>>
>>56017422
david malan
>>
>>56017303
Not sure if trolling

I met David Malan a couple months ago, I took CS50X through LaunchCode and he flew out to our hackathon
>>
>>56012712
>One of the main devs is a woman
Dropped like a rock
>>
>>56009502

>PHP

+
lots of jobs (tons of legacy code)
many simple frameworks (i.e Wordpress)
a few pretty decent frameworks (i.e. laravel)

-
language is a little bit of a mess
/g/ will call you a pajeet


>Ruby on Rails

+
Ruby is a pretty cool language
RoR has a good structure

-
not so many jobs
a lot of stuff to learn in Ruby
Thread posts: 43
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.