7 ms·
Or alternatively how Badoo could have saved $1.9M by coding in a compiled language. Ruby guys can always do the argument "Our code required 50% more servers, b
by brianwawok 11y ago
Or alternatively how Badoo could have saved $1.9M by coding in a compiled language.
Ruby guys can always do the argument "Our code required 50% more servers, but it increases developer productivity by 50%, and since developers cost more than servers - it is a win".
Has anyone ever really made that argument with PHP? It seems one of the least developer friendly languages possible on a large project. So developer unfriendly + server unfriendly = ?????
- xGrill 11y agoI would say people matter more than the language. If the smartest people at Badoo are most comfortable with PHP, then that is what they should go with. Let them do their jobs in the most efficient way they know how, in this case, PHP. The 1 million Badoo saved here is nothing compared to how much more money they made from having these people build their platform.
- yaniksilver 11y agoSo very true.
- johansch 11y ago> If the smartest people at Badoo are most comfortable with PHP That is a sad, albeit realistic thought.
- CiPHPerCoder 11y agoWhy is that a sad thought?
- coldtea 11y agoBecause it's not hipster and bro-cred-compatible enough...
- goshx 11y agoSad because it is PHP?
- SmellyGeekBoy 11y agoSmart people can achieve really great things with PHP. The problem is that the barrier to entry is so low that the not-so-smart use it too and end up giving the whole language a bad reputation.
- agopaul 11y agoPHP in two sentences
- mtbcoder 11y agoI will further expand on this and say that I would take a well documented/commented code base written in an unsexy language any day over one cowboy-coded in whatever the languague/framework-du-jour happens to be.
- jtreminio 11y ago> It seems one of the least developer friendly languages possible on a large project. It's only unfriendly to those who don't actually know the language.
- coldtea 11y agoAnd who usually don't have much else to show for in any other language. Where's this better than Wordpress (in functionality, not codebase) project in another language, for example?
- mrweasel 11y ago>Or alternatively how Badoo could have saved $1.9M by coding in a compiled language. Assuming you don't include the cost of converting their 3 million lines of code to a new language and the cost of learning a new language. Of cause they did need to "port" from PHP5 to PHP7, but I feel that it's cheaper than going to a completely different language. You're not wrong, but the $1M saving is much cheaper bought than the $1.9M. PHP is a weird language though, it's easy to get started with, pretty efficient at this point, and yet somehow people use it to write ugly and sluggish code. I haven't written PHP in a long time, so this may have changed, but it almost like the language is missing ways of structuring the code in a sane way.
- brianwawok 11y ago> Assuming you don't include the cost of converting their 3 million lines of code to a new language and the cost of learning a new language. Of cause they did need to "port" from PHP5 to PHP7, but I feel that it's cheaper than going to a completely different language. No I am not. I am talking about 1.0 decision. Obviously 10 years down the road with 3 million lines of code you have to compare conversion cost.
- wvenable 11y agoAll the best arguments require a time machine.
- jtreminio 11y ago> but it almost like the language is missing ways of structuring the code in a sane way. Sounds like you haven't touched it in a while - it's quite different from even 8 years ago.
- jwdunne 11y agoThis isn't really true anymore. Namespaces, as ugly as they are visually, plus autoloading plus a package manager that handles it for you allows quick structuring of a project. This can be configured to fit whatever conventions you prefer but the community has put out there a set of good conventions in the form of PSR docs so you can get started quickly. The whole mixing of HTML with PHP with SQL is bad form and is widely discouraged. In fact, this code is often seen with usage of mysql_ functions plus manual escaping and interpolation. This is discouraged to the point where that library has been removed. I'm no evangelist, I prefer other languages, but with these "good parts" so to speak, the language is usable and supportive of good structure. We have had these improvements relatively late in the game but they do appear to come thick and fast nowadays. There are many warts in the language. Sometimes I'm angered when very good ideas for progress are shot down via committee. There has, however, been improvement since PHP 4.
- meritt 11y ago> It seems one of the least developer friendly languages possible on a large project. That would depends largely on your developers. I know it's weird but PHP developers tend to be really productive in PHP.
- nerdy 11y agoYour argument is somewhat like suggesting every program be written in assembly because the theoretical upper limit of code performance is paramount to everything. It's a trade-off between convenience and performance, and PHP7 performance is radically improved. The amount of effort described to migrate is orders less than rewriting millions of lines of production code. Regarding development speed, I don't know much about Ruby but I believe you're conflating speed on Rails (a framework) with Ruby vs PHP (languages). I've also seen RFP respondent development companies assert that PHP development would be faster than compiled languages, despite them having developers with both skillsets available.
- brianwawok 11y ago> Your argument is somewhat like suggesting every program be written in assembly because the theoretical upper limit of code performance is paramount to everything. It's a trade-off between convenience and performance, and PHP7 performance is radically improved. No, please show me where I said that? Every program has a developer productivity factor, a library support factor, and yes a runtime speed factor. From everything I know about PHP, while not being a PHP programmer, it has both low productivity AND low performance. Many other languages offer some combo of productivity and performance that are much better. > The amount of effort described to migrate is orders less than rewriting millions of lines of production code. Sure, and that is why you should think very carefully about what language to write in BEFORE You write 3 million or even 100 lines of code. > Regarding development speed, I don't know much about Ruby but I believe you're conflating speed on Rails (a framework) with Ruby vs PHP (languages). Ruby is rails, there is no ruby without rails, there is no rails without ruby. I see almost nothing being written in straight ruby (why would you).
- obsurveyor 11y ago> Ruby is rails, there is no ruby without rails, there is no rails without ruby. I see almost nothing being written in straight ruby (why would you). Funniest thing I've read all day. My last web app didn't use rails at all and I'm actively trying not to use it these days because I don't need most of the features it includes and turns on by default.
- maerF0x0 11y ago> Ruby guys can always do the argument "Our code required 50% more servers, but it increases developer productivity by 50%, and since developers cost more than servers - it is a win". I've always wondered on the ROI of saving server cost at the expense of velocity. After all, server cost is for the foreseeable future, but development is just once (yes maintenance, but that is very small if you stop adding features).
- coldtea 11y ago>Or alternatively how Badoo could have saved $1.9M by coding in a compiled language. Considering the extra baggage and ceremony that comes with most compiled languages, that sounds like a bad proposition, especially given that they ALREADY had 3 millions of lines of PHP working just fine.
- robryan 11y agoI would make that argument. What specifically makes PHP less developer productive than Ruby?
- spriggan3 11y ago> Ruby guys can always do the argument "Our code required 50% more servers, but it increases developer productivity by 50%, and since developers cost more than servers - it is a win". Well that's true on a certain scale. There is no way I could have completed some projects with a small team, in a short amount of time if I had to use some like Go or Rust. Ruby,Python or PHP are useful for what they are good at : "front-ends" (on the server). So is Java by the way, but while Java is fast it eats way too much memory while doing nothing. Again, at a certain scale , developer cost VS performance cost is a reality. It's not very useful to boast about chosing Go or compiled language X or Z while your competitor can bring an app into production in 1/8 of the time it takes to develop the solution in PHP. AFAIK Parse.com spent a year rewriting their Ruby app in Go. In the meantime, there brought no new functionality and then they just closed shop. Sure they got to write a fancy blogpost about how successful they were with Go. so successful they rewrote their app in nodejs when they decided to opensource it. > So developer unfriendly + server unfriendly How is PHP developer unfriendly ? It has 15+ years of libraries to do almost anything. You should probably have a look at PHP7 before passing any kind of judgement. How is it server unfriendly ? PHP is with Java the most deployed language in the world.
- tyre 11y agoUsage (number of libraries or deployments) is not the same as friendliness. They are entirely separate. Consider programmatically working with email. Nightmarish, despite the number of users.
- spriggan3 11y ago> Consider programmatically working with email I'm not sure what you're getting at, Working with email is a nightmare in any language, Go or Rust or language of the moment X included.
- mikegioia 11y agoThe fact that he calls PHP "developer unfriendly" convinces me that that he's probably written 0 lines of PHP code and worked with 0 PHP developers.
- collyw 11y agoHmm. I am a Python guy and a significant amount of my time goes into managing the server set up (maybe 20%). I wonder how much of this time could be saved using PHP.