This is a bullshit... RoR is framework, like Symphony/CakePHP/ZendFramework... And all there have this "options", Thats like to compare ruby vs Symphony... Bullshit :X
Use CakePHP if you really need a framework... or if you want to and need the flexibility, do it by yourself... problem solved, no need for learning a new language like Ruby...
You can compare ruby and php but not ror and php, you should compare ror with zend framework/symphony/codeigniter/cake, that one should be a correct comparison.
Anyway, this series of videos are crap and they should get a life instead to say these bullshits.
RoR or imposed OOP is definately not the future of the internet. Too much resource waste.
But I would love to see a comparison between Ruby & PHP and watch the PHP Hawaian-Shirt guy go to the beach, go the club and have dinner, during the time it would take for the Ruby guy to get to the front door.
Actually this is pretty accurate for any of you that actually work in a php company you would see this commercial to be pretty damn factual. Most php shops follow the AGILE philosophy and they fall flat on their face.
@bagingkagu On the web? You just set your server up with a CGI handle.. Remember the cgi-bin folder.. the 'bin' part for binary, executable.
Even Facebook rewrote PHP in, I think, C++.. it's called 'Hip-hop' or something like that. I am mainly a Flex programmer. PHP is good to quickly get access to functions like e-mail and stuff. I don't care to learn Ruby.. too much on my hands already. (remember: typically the easier the language, the more resources cuz of the hierarchy its based on ;)
@MatW1lson, i did cgi in c about 15 years ago there was no other way except perl and c. it is good for the occasional form submission or getting the date and time or page hit counters. but to write an entire web app in c as cgi is counterproductive. one reason is maintainability. there will be thousands of little c programs in your cgi-bin directory. another is length of code. you will write an entire page of code which will take just one line in php or rails.
@bagingkagu - Yep. That was exactly the case! Lot's of 'sub-programs' and executables. It actually is counter-productive; and I did waste lotsss of time. But it is good experience if you ever want your users on the web to interact with programs that no parser could do.. think YouTube and its video-encoders.. surely it can't be using PHP or Ruby!
Here was the application I made with Flex and C: mindprog (dot) com/schedule
@MatW1lson, your site seems to be tight and i can't see any loose ends. although i don't understand what it is about, thanks for the link.
here is my site for charice done in rails:
h t t p : / / karitoy . hopto . org / charice
you can upload your own video there in another format and will be transformed into flash. it merely calls ffmpeg with the right parameters. which goes to show that you don't have to write your own encoder. i don't reinvent the wheel and utilize what is already there.
@bagingkagu My apology for late reply. I like what you did on your site. Yes, I wouldn't recommend reinventing the wheel.. of course you can set-up other software to encode.
I ended up having to write my own CGI library in C.. So, I'll still be using C and I can do stuff pretty fast in it with MySQL since I wrote my own interface for handling data. But PHP is good with all its functions already available. I may look in Rails down the road.
Ugh. This PHP FUD is starting to annoy me. If you're writing PHP code that does NOT use PDO then you're already doing it wrong.
A professional PHP developer will write good code. And good code will use PDO for DB access. This means (in terms of DB abstraction) that rails would offer you no advantage.
Rails DOES have advantages though. But this video is a load of bullshit.
The were referring to the SQL meaning you'd have to rewrite the SQL commands not actual PHP it doesn't matter if your using PDO or a database extension SQL changes from engine to engine.
and most of those large sites only use rails for the front end. check out high scalability blog.. most of the rails sites eventually moved to having an application tier done with java, and used other tools to handle the volume of requests
To the Rails evangelists: Perhaps you can switch database with a mere few lines of code (as you could in ANY web-stack if it was developed by a professional).
I think you'll find you're royally screwed if you want to talk to > 1 database within your app though :)
@trd002200 well, it can be compared. 1st generally people use PHP and MySQL they find that easy so they use it, now comes Rails which is easy too. Now if you compare PHP web framework like cakephp or zend, its not that easy as rails specially when you have to use PHP in place of Ruby, Rails provides maintainability from start. BUT php is not going anywhere its good for simple tasks if you use to it or using it with wordpress or joolma.
@trd002200 But they're both web development solutions. It's what you want to see it as. Framework vs scripting language OR web solution vs web solution.
This is bent. PHP is a language, Rails is a framework that sits on top of Ruby. It's like comparing a train to being a passenger in a car. what a load of shite.
Though, of course there are a lot of big sites written in PHP, PHP has been around since like.. 1995 or so. Rails was born just a couple of years ago.
People really get angry at this? Seriously, they are just messing around.
I've worked with PHP's "Zend, Cake and CodeIgniter" back in my PHP days. And I'll tell you now that all of them don't even compare to either Ruby's: "Rails or Merb". Most of you probably don't even know what Merb is, lol.
But personally I only work with PHP, never really looked a Ruby or Ruby on Rails for that matter.This video is funny coz they compare a framework to a language!
Well I'm sure everyone already knew this. Besides if you compare Ruby to PHP, you can't make a web-based comparison. Which is what everyone in the web-world seems to forget.
Also, you say Ruby is ugly, while PHP is the one that has like hundreds of "random" functions that are not even namespaced in any sort of way. Plus the fact that it's totally "not strict", you can do: "hello world " . 1 and it'd just append an "integer" to a "string", what? Immature.
@zenpher I coded in Assembly, C, C++, Perl, Java, PHP, C#, and RUBY in last 15 years. Ruby is the one which can express my idea the best and the easiest. PHP is roughly in the same level of C/C++ language wise. PHP is a web oriented language. It's not so unfair if someone compares it with Rails. If you want to know more, doing some googling may give you a better answer than I can do here in this small "text area".
@zenpher I know more about Ruby than PHP now. My last PHP project was 5 years ago. My understanding was that PHP was like C language plus OO and a bunch of web related APIs.
Some developers tend to stick with one language after they're familiar with it. I understand that. I happened to code in both languages in real projects. Just wanted to express what I feel about the 2 different programming languages. Hopefully some new developers can benefit from what I said.
@xsk8 although I agree with your sentiment - Ruby is a far sexier language than PHP. For one, it has a standard of arguments across built-in method calls ;)
@xsk8@trd002200 You CAN compare Rails with PHP. They are both tools (to use a broader term) to develop web applications. What the commercial is saying is that developing with Rails can save you a lot of headaches PHP would cause. There is nothing wrong with that, considering that a great number of websites/web applications used to be developed with PHP alone, without any additional frameworks.
So please, stop saying the same thing over and over again.
Well, have you seen an advertisement that wasn't useless marketing blurb yet? I know for sure I haven't. Most of the time I really get the impression that those ad dudes have no idea what product they are advertising for.
@xsk8 how can you compare rails to PHP when rails isn't a web development language? even if somehow you did manage to compare the rails language to PHP you would see rails is very clean, much cleaner than PHP to read and write. Although I code in both a PHP framework (cake, CI, zend I tried them all) can not stand up to a the ruby on rails framework. For a small quick app ruby on rails can not compete with PHP, they both have their places.
Ruby is actually pretty cool but I agree with you. The Ruby guy looks like a smug prick and I'd probably knock his teeth out if I ever saw him at the bar.
This is retarded. Making a database class in Php is quite simple, and then editing that one file to switch databases is probably Easier than RoR, since there's no other script to run.
Sorry you're eating sour grapes because PHP is "too hard." PHP is very easy and used in many professional environments. PHP has a better user base, and better stock of tutorials.
90% of my programming work in done in C. 9% Java, and the rest Python and Ruby. Web development is a side hobby for me, since there are no challenges in it. I almost have a Master of Science in Computer Science.PHP the language of choice for the 'for dummies' crowd. Mainly I reverse engineer executable code, which means lots of assembly and crawling around in memory, something "php developers" can't do, neither can Rails for that matter.
and oh ya i have ALSO a phd in software engineering i also program in cobol.. oh no even better i program in binary .. yes .. what ?! you dont believe me ? here.. "01000111010011110010000001000110010101010100001101001011001000000101100101001111010101010101001001010011010001010100110001000110"
Ok, first of all, this is comparing a framework (RoR) with PHP, not the same thing. Even that, PHP-5 has PDO (PHP Data Objects) which provides a standard set of functions for all databases. Assuming, you do the code using proper design patterns (Singleton for Database), so, changing from one database to another database is just changing a *single* line (the constructor of PDO).
It is indeed important to have a certain level of abstraction the application and the database... But man, if you gotta deal with "The Client", who one days goes like: "Oh! I suddenly feel like switching from MySQL to Oracle - I don't know why, but I just do!" - then yeah it does suck to be you... Different RDBMSs exist for a reason...
Wow... This isn't even funny. I've written PHP webpages were all i would have to do is edit 1 file and my whole program would work again. From What I haven't used RoR to extensively, but from what I've seen, It simply takes too much power away from the programmer.
You are right, ignorance isn't funny. Rails takes no "power" away from the programmer. It doesn't stop you from doing anything, it just makes it easier to deal with tedious tasks that all web apps have to do. Don't reinvent the wheel. Just because you used PHP in a few crappy web pages doesn't make you knowledgeable or a programmer.
You're better off comparing it to CakePHP. Or comparing PHP to Ruby, not rails. Apples and oranges my friend. PS: Ruby is much, much better than PHP (having come from PHP myself and moved to Ruby recently)
Actually the comparison is not stupid, since in PHP, and the language itself has tight and unmistakable bindings indicating that it is for web development, and comparing Ruby for non-web development with PHP for non-web development would be the stupid comparison, as the result would be obvious.
With the type of money they make, vagina tends to be a matter of choosing rather than persuading. When you pull up some place in a posche, I think even those guys could swing some tail, Ofcourse I am sure the girl in question would have to watch alot of Babylon 5, or worse yet engage in a friendly game of dungeons and dragons. After that she usualy demands sex.
Childish vids. I code stuff but I am not that into such advocacy. Get a life geeks. There's more to it than bitching about which framework works better, because it depends on your working style. You don't need ruby to switch database as you like. Sheesh... and to think I was a geek/nerd.
PHP has the PDO Class, you can change it just as quick. PHP is starting to move towards more defined standards which will make it more usable and more user friendly.
Wow, so you've compared RoR (a framework) to PHP (a language). Why not make a fairer comparison and use CakePHP vs Ruby on Rails. Your single argument is eliminated.
Well, RoR is only a framework. And there are not so many other frameworks like that available for ruby, which means that if something goes wrong with RoR or at the end doest'n fit your needs, you don't have other options from which to choose. At least in Java and PHP (I don't know Phyton) you have a lot of options ;-)
who cares? i know people at google that pronounce it both ways, besides my-sequel is easier to say. That's a good reason to call someone a dumbass though, good work.
okay. and because it's easier justifies the fact that it's wrong. beautiful logic, eh. well, i'm going to pronounce English the way i want to because it's easier.
who made this video? are you a programmer or some amature over-exuberant ror fanatics? comparing a programming language to a framework? isn't it stupid? php has lot of frameworks where it can solve this database issue as ror does? if you really have a point tell us something about ruby vs php.that will be reasonable.
Well, you're comparing a framework to the language. :P Perhaps Plain Old PHP and Plain Old Ruby? Or RoR and one of the many the php frameworks(or just the zend framework).. Even without using a third-party abstraction layer, anyone with a brain is going to create some sort of data abstraction layer if they are making anything but the most trivial application...
Of course everyone knows that.....but did you know that Ruby is a whore?
I use Perl, PHP, Ruby on Rails, Python...etc. Whatever gets the job done best or I inherit.
REALITY: Ruby doesn't scale well. Ask Twitter. Doh! Even they admit it was a nightmare getting it to scale.
FANTASY: Not fixing the fact that Ruby processes requests about half as slow as PHP.
BOTTOM LINE: Use whatever is best suited for the application. Unless you're an idiot, if you know something doesn't scale well then DON'T USE IT. I am not even defending PHP but at least I know it scales well.
One of the developers of the Zend Framework uses RubyOnRails pretty much exclusively now. But if you're forced to use PHP, Zend at least makes it somewhat less painful.
Zend Framework is way too primative. It might be better once it becomes a bit more mature. I recently switched from Zend to RoR and haven't looked back.
When Zend actually integrates something as basic as error handling, I might consider going back to it.
Yeah, PHP users HAVE database abstraction layers, numerous of them, at least if you not have any of them, you can write urself one in few days ...
And strange, the last common one is called Zend Framework, never heard ? Seems noone here mentioned it ? This RoR videos are ridiculous, take your RoR inst, build your first RoR blog, make the famous 3 wows and shtf.up ...
Yeah, there's no database abstraction layer for PHP... well, except for the ones that are older than Ruby itself... MDB2 and adodb for PHP are figments of everyone's imagination.
PHP uses Red Bull, that's all what I want for my programming language.
CTCCoco 20 hours ago
This is a bullshit... RoR is framework, like Symphony/CakePHP/ZendFramework... And all there have this "options", Thats like to compare ruby vs Symphony... Bullshit :X
TheGorleone 1 month ago
Ruby on Rails is a framework but PHP is a language, you can't compare the two. It's like comparing OpenGL to C++...
LegoLoverFilms 1 month ago
That Palm Treo is looking pretty sweet :)
RailsTube 3 months ago
RT @wonderful68 poor PHP .
bearonsails 4 months ago
This has been flagged as spam show
anyway php is a bullshit
bearonsails 4 months ago
Comment removed
bearonsails 4 months ago
Use CakePHP if you really need a framework... or if you want to and need the flexibility, do it by yourself... problem solved, no need for learning a new language like Ruby...
Fuchur84 6 months ago
That is what PDO is for
jeremiahsherrill 6 months ago 2
Where is Ruby now huh
tehgesto 6 months ago
So this is a bunch of videos showing fictional douches versus RoR which just happens to be made by *real* douches behind RoR.
jbperez808 8 months ago 2
You can compare ruby and php but not ror and php, you should compare ror with zend framework/symphony/codeigniter/cake, that one should be a correct comparison.
Anyway, this series of videos are crap and they should get a life instead to say these bullshits.
d10sch1f0s0 8 months ago
Comment removed
d10sch1f0s0 8 months ago
This has been flagged as spam show
brainwashing and bad acting. you can only sway the morons.
darknkreepy 8 months ago
Comment removed
darknkreepy 8 months ago
Who would actually want to SWITCH FROM MySQL to Oracle???
MrDjZarko 9 months ago 14
@MrDjZarko ...there's a number of cases where Oracle can perform a lot better. So a lot of businesses.
basmithtx 2 months ago
@MrDjZarko lol. script kiddies. ever used oracle in depth?
faggend 1 month ago
@faggend I suppose you have, and now you're going to tell us all about it. *rolls eyes*
MrRobinjam 1 week ago
the only people who make these commercials are people who don't know jack shit
sarmenhb 9 months ago
another stupid advertising talking without know anything :P
5t4rl1n 10 months ago
omg, php ftw, this ad is so ugly.
apokalypse24 10 months ago
I love how everyone of these videos has the same top rated comments. Ruby > PHP.
andypoppins 11 months ago
hahah.
RoR or imposed OOP is definately not the future of the internet. Too much resource waste.
But I would love to see a comparison between Ruby & PHP and watch the PHP Hawaian-Shirt guy go to the beach, go the club and have dinner, during the time it would take for the Ruby guy to get to the front door.
seppsters 11 months ago 2
what a noob dudes!
rahj8786 11 months ago
php -> pdo ;]
szmonszmon 1 year ago
Comment removed
szmonszmon 1 year ago
would be funny to if in the end phone starts to ring during php monologue
kubenst 1 year ago
this is so fuckin lame :facepalm:
they don't know what to say about php, cause they don't know it.... so pathetic ;S
unsubdu3d 1 year ago
@unsubdu3d no shit, stupid people,
cadsii 1 year ago
Comment removed
BlackNine313 1 year ago
Comment removed
TLeafMusic 1 year ago
well, there is cakePHP...
improver04 1 year ago
Comparing a language with a framework is silly. Switching to Oracle is just plain ridiculous though o_O
rtsownage 1 year ago
I think using one technology as a magic fix is a bad idea
pharmajoe990 1 year ago
Zend would beat Rails down & take Ruby's girl... watch?v=S8zhmiS-1kw
audiowiz 1 year ago
Lol, poor PHP
tropicallanterns 1 year ago
Language elitists sound a lot like Linux distribution elitists, or operating system elitists.
Is this what the Internet is now? A bunch of children acting like chimps throwing crap at each other over what language to program in?
Not to say that the Internet was ever, or will ever be any different than this, but really... Grow up and learn to use more than a single language.
felixecho 1 year ago 13
Actually this is pretty accurate for any of you that actually work in a php company you would see this commercial to be pretty damn factual. Most php shops follow the AGILE philosophy and they fall flat on their face.
aBardsOath 1 year ago
This only applies to poorly designed php
maleck1914 1 year ago
stupid to make a comparison
davichoso 1 year ago
Both of these technologies are for pussies. I use strictly C and the MySQL API.
MatW1lson 1 year ago
@MatW1lson, would you mind telling us how you are going to migrate your awesome C app to the web?
bagingkagu 1 year ago
@bagingkagu On the web? You just set your server up with a CGI handle.. Remember the cgi-bin folder.. the 'bin' part for binary, executable.
Even Facebook rewrote PHP in, I think, C++.. it's called 'Hip-hop' or something like that. I am mainly a Flex programmer. PHP is good to quickly get access to functions like e-mail and stuff. I don't care to learn Ruby.. too much on my hands already. (remember: typically the easier the language, the more resources cuz of the hierarchy its based on ;)
MatW1lson 1 year ago
@MatW1lson, i did cgi in c about 15 years ago there was no other way except perl and c. it is good for the occasional form submission or getting the date and time or page hit counters. but to write an entire web app in c as cgi is counterproductive. one reason is maintainability. there will be thousands of little c programs in your cgi-bin directory. another is length of code. you will write an entire page of code which will take just one line in php or rails.
bagingkagu 1 year ago
@bagingkagu - Yep. That was exactly the case! Lot's of 'sub-programs' and executables. It actually is counter-productive; and I did waste lotsss of time. But it is good experience if you ever want your users on the web to interact with programs that no parser could do.. think YouTube and its video-encoders.. surely it can't be using PHP or Ruby!
Here was the application I made with Flex and C: mindprog (dot) com/schedule
MatW1lson 1 year ago
@MatW1lson, your site seems to be tight and i can't see any loose ends. although i don't understand what it is about, thanks for the link.
here is my site for charice done in rails:
h t t p : / / karitoy . hopto . org / charice
you can upload your own video there in another format and will be transformed into flash. it merely calls ffmpeg with the right parameters. which goes to show that you don't have to write your own encoder. i don't reinvent the wheel and utilize what is already there.
bagingkagu 1 year ago
@bagingkagu My apology for late reply. I like what you did on your site. Yes, I wouldn't recommend reinventing the wheel.. of course you can set-up other software to encode.
I ended up having to write my own CGI library in C.. So, I'll still be using C and I can do stuff pretty fast in it with MySQL since I wrote my own interface for handling data. But PHP is good with all its functions already available. I may look in Rails down the road.
My site is for my hypnotherapy practice.
MatW1lson 1 year ago
@MatW1lson, thanks for visiting and thanks for replying.
bagingkagu 1 year ago
MVC can be used to any lanaguage. that's don't just ruby spell
zerocoll16 1 year ago
bullshit its not just like that
u can swap just like that it does take abit of a time
ronny22 1 year ago
No they had performance issues with Ruby that have since been mostly rectified but will need some more work done like multi threading Ruby apps.
DavidRobertRoy 1 year ago
Ugh. This PHP FUD is starting to annoy me. If you're writing PHP code that does NOT use PDO then you're already doing it wrong.
A professional PHP developer will write good code. And good code will use PDO for DB access. This means (in terms of DB abstraction) that rails would offer you no advantage.
Rails DOES have advantages though. But this video is a load of bullshit.
kahrny 2 years ago
The were referring to the SQL meaning you'd have to rewrite the SQL commands not actual PHP it doesn't matter if your using PDO or a database extension SQL changes from engine to engine.
SomaVIII 1 year ago
Comment removed
rkulla 1 year ago
and most of those large sites only use rails for the front end. check out high scalability blog.. most of the rails sites eventually moved to having an application tier done with java, and used other tools to handle the volume of requests
voodoocigam 2 years ago
To the Rails evangelists: Perhaps you can switch database with a mere few lines of code (as you could in ANY web-stack if it was developed by a professional).
I think you'll find you're royally screwed if you want to talk to > 1 database within your app though :)
LAnonHubbard 2 years ago 2
@LAnonHubbard That's not a problem, juste define your connections in database.yml, then use "establish_connection :mydb01" in your model, done
mathieupoussin 1 year ago
Why are you promoting Ruby on Rails?
canucksfan94 2 years ago
Why do you think this? Is it better than Rails?
I know that at the moment, Rails is the parent of web :P
trd002200 2 years ago
Ruby on Rails: Web Sites:
Twitter, Shopify, Yello Pages, Mtv Style..
clicktik 2 years ago
You cannot compare Rails with PHP. Rails is a framework.
You should compare Rails with Zend Framework or Cake or something.
trd002200 2 years ago 110
@trd002200 well, it can be compared. 1st generally people use PHP and MySQL they find that easy so they use it, now comes Rails which is easy too. Now if you compare PHP web framework like cakephp or zend, its not that easy as rails specially when you have to use PHP in place of Ruby, Rails provides maintainability from start. BUT php is not going anywhere its good for simple tasks if you use to it or using it with wordpress or joolma.
kickassdj 1 year ago
@trd002200 Same connects.
ZillaMab 1 year ago
@trd002200 But they're both web development solutions. It's what you want to see it as. Framework vs scripting language OR web solution vs web solution.
tropicallanterns 11 months ago
@trd002200 Exactly! You can never estimate the power of PHP!
waleedahmed121 1 month ago
that guy has tits
plmqas 2 years ago
That comparision sucks!
The ruby's guy is gay.
PS: I used adodb and I can change my SGBD in seconds. what is the big deal!?!
rogerioreis 2 years ago
"Youtube = idk. Knowing Google, it's probably python. " Youtube = PHP, which makes this video even more wrong.
And switching databases in php with the way I code is only the matter of changing one line of code.
b1narycoder 2 years ago
This is bent. PHP is a language, Rails is a framework that sits on top of Ruby. It's like comparing a train to being a passenger in a car. what a load of shite.
Etcher 2 years ago 2
Why does Ruby On Rails look like a nerd and PHP like some normal guy?
verdorie985 2 years ago
this competition never ends. use what you are comfortable with.
in addition, if you like to compare *things* go and listen "My Dick By Mickey Avalon". It suits your needs
73217123 2 years ago
php have database-independent connections. PDO.
thebarr 2 years ago
hmmm myspace = ? php?
hmmm facebook = ? php?
hmmm youtube = ? php?
hmmm I believe over HALF of the successful web sites are php/mysql :-p thx
sonehs 2 years ago
This comment has received too many negative votes show
hmmmm twitter? Ruby on Rails
pcgeekman 2 years ago
Plus Yellowpages and a bunch of others.
Though, of course there are a lot of big sites written in PHP, PHP has been around since like.. 1995 or so. Rails was born just a couple of years ago.
People really get angry at this? Seriously, they are just messing around.
I've worked with PHP's "Zend, Cake and CodeIgniter" back in my PHP days. And I'll tell you now that all of them don't even compare to either Ruby's: "Rails or Merb". Most of you probably don't even know what Merb is, lol.
meskyanichi 2 years ago
hmmmm not anymore
Keyframe3D 2 years ago
hmm twitter can suck my dick? the stupidest site ever.... like i really wanna know what the fuck ur doing...i can use facebook status for that
sonehs 2 years ago 4
you have failed to understand the point of twitter.
voodoocigam 2 years ago
twittyer can choke on a bag of dicks!
sonehs 2 years ago 2
Um.. fail?
Myspace = Coldfusion.
Youtube = idk. Knowing Google, it's probably python.
CodedCaffeine 2 years ago 2
Facebook is slow as hell by the way
vidriloco 2 years ago
It's a lot faster than YouTube is, I'll say that much.
GP4Vid 2 years ago
MySpace is Cold Fusion I believe
But personally I only work with PHP, never really looked a Ruby or Ruby on Rails for that matter.This video is funny coz they compare a framework to a language!
flatlinercoder 2 years ago 4
they really should be comparing to something like zend framework or cake...not PHP.
cobby32 2 years ago 5
omg, this is such a crap, Ruby On Rails is a FRAMEWORK! PHP IS A LANGUAGE
Ruby is the language! Compare that ugliness with PHP if you want!
xsk8 2 years ago 73
Well I'm sure everyone already knew this. Besides if you compare Ruby to PHP, you can't make a web-based comparison. Which is what everyone in the web-world seems to forget.
Also, you say Ruby is ugly, while PHP is the one that has like hundreds of "random" functions that are not even namespaced in any sort of way. Plus the fact that it's totally "not strict", you can do: "hello world " . 1 and it'd just append an "integer" to a "string", what? Immature.
Then there's the needle/haystack thing.
meskyanichi 2 years ago
@xsk8 Ruby is way more advanced than PHP. It's not comparable.
yzhang2008 1 year ago
@yzhang2008 So in what ways is Ruby "more advanced" than PHP?
zenpher 1 year ago
@zenpher I coded in Assembly, C, C++, Perl, Java, PHP, C#, and RUBY in last 15 years. Ruby is the one which can express my idea the best and the easiest. PHP is roughly in the same level of C/C++ language wise. PHP is a web oriented language. It's not so unfair if someone compares it with Rails. If you want to know more, doing some googling may give you a better answer than I can do here in this small "text area".
yzhang2008 1 year ago
@yzhang2008 Comparing PHP to C/C++ shows how little you know about PHP.
zenpher 1 year ago
@zenpher I know more about Ruby than PHP now. My last PHP project was 5 years ago. My understanding was that PHP was like C language plus OO and a bunch of web related APIs.
Some developers tend to stick with one language after they're familiar with it. I understand that. I happened to code in both languages in real projects. Just wanted to express what I feel about the 2 different programming languages. Hopefully some new developers can benefit from what I said.
yzhang2008 1 year ago
@xsk8 It's like Perl... with less sense.
I want to write apps, not write art.
I think I'll be sticking to PHP.
zenpher 1 year ago
@xsk8 although I agree with your sentiment - Ruby is a far sexier language than PHP. For one, it has a standard of arguments across built-in method calls ;)
torment3d 11 months ago
@torment3d I've done some research on Ruby, it is a beautifully designed language. :)
I think Python and Ruby are the sexiest dynamic languages in existence.
Ravenex2 10 months ago
@xsk8 @trd002200 You CAN compare Rails with PHP. They are both tools (to use a broader term) to develop web applications. What the commercial is saying is that developing with Rails can save you a lot of headaches PHP would cause. There is nothing wrong with that, considering that a great number of websites/web applications used to be developed with PHP alone, without any additional frameworks.
So please, stop saying the same thing over and over again.
pchris256 9 months ago
@pchris256 yeah you can compare them. It's just useless marketing blurb, but YES you can compare them.
lesmiralha 8 months ago
@lesmiralha
Well, have you seen an advertisement that wasn't useless marketing blurb yet? I know for sure I haven't. Most of the time I really get the impression that those ad dudes have no idea what product they are advertising for.
narutofan9999 8 months ago
@xsk8 how can you compare rails to PHP when rails isn't a web development language? even if somehow you did manage to compare the rails language to PHP you would see rails is very clean, much cleaner than PHP to read and write. Although I code in both a PHP framework (cake, CI, zend I tried them all) can not stand up to a the ruby on rails framework. For a small quick app ruby on rails can not compete with PHP, they both have their places.
twiggy99 8 months ago
have you seen my phone?
>.>
supadox 2 years ago
This comment has received too many negative votes show
Ruby on rails is fail.
PHP is the future.
Bye.
TenMillionViews 2 years ago
this makes me wanna not wanna learn ruby. the ruby guy is a dick.
MasterMind300 2 years ago 5
Ruby is actually pretty cool but I agree with you. The Ruby guy looks like a smug prick and I'd probably knock his teeth out if I ever saw him at the bar.
racl101 2 years ago
yeah :(
MasterMind300 2 years ago
lol well if you design ure code good(no hard at all) then you can easily switch databases
zubatzu 3 years ago
Comment removed
drdoe16091609 2 years ago
your grammar is amazing
drdoe16091609 2 years ago
lolz PHP is easy as fuck.
thereal51 3 years ago
yeah.. sure... I believe you.. the beach ey? Kiss my ass. Don't forget to wear your Ruby thong homo.
monkeybuster 3 years ago
This is retarded. Making a database class in Php is quite simple, and then editing that one file to switch databases is probably Easier than RoR, since there's no other script to run.
JouceTin 3 years ago
really?
Make a class that dynamically creates methods and SQL statements can be easily done?
really?
Lilinye 3 years ago
yeah
watch Propel or Doctrine
watch Symfony, same RoR on PHP
witdex 3 years ago
PHP is a hideous language with absolutely no built in security.
PHP == language written by amateurs, for amateurs.
Lilinye 3 years ago
Sorry you're eating sour grapes because PHP is "too hard." PHP is very easy and used in many professional environments. PHP has a better user base, and better stock of tutorials.
OrangeD00D 3 years ago
90% of my programming work in done in C. 9% Java, and the rest Python and Ruby. Web development is a side hobby for me, since there are no challenges in it. I almost have a Master of Science in Computer Science.PHP the language of choice for the 'for dummies' crowd. Mainly I reverse engineer executable code, which means lots of assembly and crawling around in memory, something "php developers" can't do, neither can Rails for that matter.
Lilinye 3 years ago
and oh ya i have ALSO a phd in software engineering i also program in cobol.. oh no even better i program in binary .. yes .. what ?! you dont believe me ? here.. "01000111010011110010000001000110010101010100001101001011001000000101100101001111010101010101001001010011010001010100110001000110"
ibrahimo76 3 years ago 4
that translators to "GO FUCK YOURSELF" lol it actually does.
zubatzu 3 years ago 2
Symfony is a rails wanna be and since PHP lacks the flexibility and expressiveness of Ruby, it is done as a very ugly hack.
Lilinye 3 years ago
Before you spout off, knowing a language is completely different than understanding how programming languages are developed.
Lilinye 3 years ago
wow now I am about to look for code examples
enyawix 3 years ago
I love ruby and php, but whoever compares Ruby on Rails to Php is an idiot. RoR is a framework plus a language, and Php is just a language.
jewtubesucks 3 years ago
use Symfony and Creole
and you same RoR on PHP
witdex 3 years ago
except for the fact that PHP is a crappy, security hole ridden, sorry excuse for a language.
Of course, ruby has countless uses outside web development as well.
Lilinye 3 years ago
Ruby on Rails has Catalyst envy.
evildnalor 3 years ago
Well at least they didn't reinvent the wheel for their marketing campaign.
j4clayto 3 years ago 2
Ok, first of all, this is comparing a framework (RoR) with PHP, not the same thing. Even that, PHP-5 has PDO (PHP Data Objects) which provides a standard set of functions for all databases. Assuming, you do the code using proper design patterns (Singleton for Database), so, changing from one database to another database is just changing a *single* line (the constructor of PDO).
jasperException 3 years ago 3
Rails is designed properly out of the box. Even a crappy programmer can switch DB's easily.
Lilinye 3 years ago
symfony to ... watch it
you can easily switch db through yaml,ini or xml config
that guys don't even understand what they talk about and watching from one point
witdex 3 years ago
Learn about programming language design and get back to me about how PHP is so great.
It is an embarrassment,
Lilinye 3 years ago 2
This video is fun.
Why don't you do the same with Seaside/GLASS?
notsag37 3 years ago
It is indeed important to have a certain level of abstraction the application and the database... But man, if you gotta deal with "The Client", who one days goes like: "Oh! I suddenly feel like switching from MySQL to Oracle - I don't know why, but I just do!" - then yeah it does suck to be you... Different RDBMSs exist for a reason...
theguyinashirt 3 years ago
Wow... This isn't even funny. I've written PHP webpages were all i would have to do is edit 1 file and my whole program would work again. From What I haven't used RoR to extensively, but from what I've seen, It simply takes too much power away from the programmer.
Gcommer 3 years ago
You are right, ignorance isn't funny. Rails takes no "power" away from the programmer. It doesn't stop you from doing anything, it just makes it easier to deal with tedious tasks that all web apps have to do. Don't reinvent the wheel. Just because you used PHP in a few crappy web pages doesn't make you knowledgeable or a programmer.
fsdg345235 3 years ago
You're better off comparing it to CakePHP. Or comparing PHP to Ruby, not rails. Apples and oranges my friend. PS: Ruby is much, much better than PHP (having come from PHP myself and moved to Ruby recently)
rocktheflow 3 years ago
This comparison is stupid... programming language vs framework? ZendPHP vs RubyOnRails is correct but isn't it!
franklevel 3 years ago
AnythingPHP is a failure. PHP, the language of choice for amateurs. It is clunky, ugly, poorly designed and filled with security issues.
fsdg345235 3 years ago
Actually the comparison is not stupid, since in PHP, and the language itself has tight and unmistakable bindings indicating that it is for web development, and comparing Ruby for non-web development with PHP for non-web development would be the stupid comparison, as the result would be obvious.
darioushQ 3 years ago
mdr
z4n9ief 3 years ago
Why do I get the impression neither one of these guys has seen a womans vagina up close.
jrBunny1979 3 years ago 6
With the type of money they make, vagina tends to be a matter of choosing rather than persuading. When you pull up some place in a posche, I think even those guys could swing some tail, Ofcourse I am sure the girl in question would have to watch alot of Babylon 5, or worse yet engage in a friendly game of dungeons and dragons. After that she usualy demands sex.
evildnalor 3 years ago
Ruby on Rails tiene frio
albertordz 3 years ago
Well, first of all, isn't this a ripoff from the apple ads? Second, ...PDO + a PHP framework! :)
lemmis86 3 years ago 3
oh my god are they really ??
read the vid description first... lmao
k02a 3 years ago
its SQL not seequel
swicknire 3 years ago
i know ruby on rails and php, you can always use ADODB or a database framework with php, so changing databases is not that complicated... hehehhee
vanheirecu 3 years ago 3
Childish vids. I code stuff but I am not that into such advocacy. Get a life geeks. There's more to it than bitching about which framework works better, because it depends on your working style. You don't need ruby to switch database as you like. Sheesh... and to think I was a geek/nerd.
oysterlicker 3 years ago
why not rubyonwhatever versus George W. junior Bush?
Tetrix03 3 years ago 3
This comment has received too many negative votes show
Once again, simply brilliant
notinheritable 3 years ago
PHP has the PDO Class, you can change it just as quick. PHP is starting to move towards more defined standards which will make it more usable and more user friendly.
aBardsOath 3 years ago 3
Yes, there is PDO.
Not to mention, that changing the database is a theoretical myth. To optimize queries, the engine's specifics are required.
If you can change your Oracle engine to MySQL that easy, there's no doubt; your project sucks.
ketchup1501 3 years ago
I think this vids are too much childish
geek3333 4 years ago
Wow, so you've compared RoR (a framework) to PHP (a language). Why not make a fairer comparison and use CakePHP vs Ruby on Rails. Your single argument is eliminated.
seancallan 4 years ago 8
use OO php and brains and u won't have troubles with databases (actually it's true for any language) you really don't need RoR...
semiliteratedgod 4 years ago 3
Well, RoR is only a framework. And there are not so many other frameworks like that available for ruby, which means that if something goes wrong with RoR or at the end doest'n fit your needs, you don't have other options from which to choose. At least in Java and PHP (I don't know Phyton) you have a lot of options ;-)
piojosnos 4 years ago 3
Ah, dumbasses, you don't preappend My to SQL to pronounce MySQL. You pronounce MySQL as my-S-Q-L n00b. Wow... Doesn't really matter, PHP ftw imo
pablorules 4 years ago
who cares? i know people at google that pronounce it both ways, besides my-sequel is easier to say. That's a good reason to call someone a dumbass though, good work.
orangesquinn 4 years ago 2
okay. and because it's easier justifies the fact that it's wrong. beautiful logic, eh. well, i'm going to pronounce English the way i want to because it's easier.
pablorules 3 years ago
who made this video? are you a programmer or some amature over-exuberant ror fanatics? comparing a programming language to a framework? isn't it stupid? php has lot of frameworks where it can solve this database issue as ror does? if you really have a point tell us something about ruby vs php.that will be reasonable.
hassanLive 4 years ago 7
boooooooo
DonkeyDevil 4 years ago
Seriously though, funny video...but...
Well, you're comparing a framework to the language. :P Perhaps Plain Old PHP and Plain Old Ruby? Or RoR and one of the many the php frameworks(or just the zend framework).. Even without using a third-party abstraction layer, anyone with a brain is going to create some sort of data abstraction layer if they are making anything but the most trivial application...
Of course everyone knows that.....but did you know that Ruby is a whore?
DonkeyDevil 4 years ago 2
This video has a point, but look at the difference between the two languages. One's a geek, one's a cool guy. Mmm?
iSoutar 4 years ago
Can you run custom queries in RoR? If so, I would find it hard to believe the DAL is flawless.
Droyd21 4 years ago
I use Perl, PHP, Ruby on Rails, Python...etc. Whatever gets the job done best or I inherit.
REALITY: Ruby doesn't scale well. Ask Twitter. Doh! Even they admit it was a nightmare getting it to scale.
FANTASY: Not fixing the fact that Ruby processes requests about half as slow as PHP.
BOTTOM LINE: Use whatever is best suited for the application. Unless you're an idiot, if you know something doesn't scale well then DON'T USE IT. I am not even defending PHP but at least I know it scales well.
malepigdotcom 4 years ago
This comment has received too many negative votes show
shutup... only queers use Ruby... You're such a fence sitter loser..
:P Kidding of course... You're cool so long as you don't use pyth... ahh shit, you do...
DonkeyDevil 4 years ago
It's S-Queue-el, it's not been referred to as sequel since the 90s.
Mikel4321 4 years ago
This has been flagged as spam show
Compare The Top 10 Web Hosting
webhostinglounge dot com
YarimAy2007 4 years ago
I stay with cakephp :D MVC
guille1983 4 years ago
PHP, not more ^^
honsschogeloch 4 years ago
The Zend Framework is really great!
- DB abstraction
- lightweight
- open source
- easy to learn
- enterprice ready
- and more...
Get Eclipse, PHP plugin (available tomorrow) and ZF. You will rock!
hanotube 4 years ago
One of the developers of the Zend Framework uses RubyOnRails pretty much exclusively now. But if you're forced to use PHP, Zend at least makes it somewhat less painful.
rhenrichs 4 years ago
Zend Framework is way too primative. It might be better once it becomes a bit more mature. I recently switched from Zend to RoR and haven't looked back.
When Zend actually integrates something as basic as error handling, I might consider going back to it.
jimmygle 4 years ago
Yeah, PHP users HAVE database abstraction layers, numerous of them, at least if you not have any of them, you can write urself one in few days ...
And strange, the last common one is called Zend Framework, never heard ? Seems noone here mentioned it ? This RoR videos are ridiculous, take your RoR inst, build your first RoR blog, make the famous 3 wows and shtf.up ...
cybercow222 4 years ago
Yeah, there's no database abstraction layer for PHP... well, except for the ones that are older than Ruby itself... MDB2 and adodb for PHP are figments of everyone's imagination.
u fale at truth
jasendorf 4 years ago
Great job guys keep the videos coming :D
kkkkorou 4 years ago
Where can i get a rails? What is ruby? It sounds exciting and expensive. And it seems easy to get ruby to make a webpage.
mchrisneglia 4 years ago
It seems some rails users are so lame they don't dare comparing rails to a PHP framework and PHP to Ruby. What's next ? Rails vs Ubuntu ?
thejasondean 4 years ago 9
rofl
Coodex 4 years ago
I'm still waiting on one of these vids that deals with PHP vs RoR on scaling issues. Eat that rails.
jmcantrell 4 years ago