119 Comments
- palatka, on 09/09/2008, -1/+32I believe Twitter's scalability problem is with Ruby on Rails and not Ruby.
- zoom1928, on 09/09/2008, -1/+28#11 - Don't add stupid, useless, off-topic, huge images on your web site. They have nothing to do with the content of the site.
- mehson, on 09/09/2008, -2/+28Say yes or no to PHP frameworks depends on the project, I think. we cannot say which is better in general
- fcrow, on 09/09/2008, -9/+34Buried for irrelevant paintings.
- writh3n, on 09/09/2008, -1/+25Site is getting destroyed, here's what I grabbed...
1.) Use PHP Only When You Need it
2.) Use Many Tables With PHP and MYSQL for Scalability
3.) Never, ever trust your users
4.) Invest in PHP Caching
5.) Speed up PHP Development with an IDE, Templates and Snippets
6.) Make Better Use of PHP's Filter Functions
7.) Use a PHP Framework
8.) Don't use a PHP Framework
9.) Use Batch Processing
10). Turn on Error Reporting Immediately - temujin2012, on 09/09/2008, -3/+2011. Prepare for the Digg effect.
- kingmanic, on 09/09/2008, -3/+1611. Use better webhosts.
- JonnyCasino, on 09/09/2008, -1/+12Ruby is a language. That's like saying using VB or C# is the problem and not the .NET framework itself.
- citizen511, on 09/09/2008, -16/+2511. Switch to Ruby.
12. Site gets too big. Ruby chokes. (Case in point: Twitter)
13. Switch to a different platform. - jggube, on 09/09/2008, -1/+8PHP caching in its simplest form is not very hard to implement, so definitely worth investing some time in that. On a larger and more complex scale (say for example Digg), it gets much trickier to implement.
- sfrench, on 09/09/2008, -1/+6http://digg.com/programming/It_s_not_the_language_ ...
- d03boy, on 09/09/2008, -2/+7I know them both and... well... .NET is like riding a bicycle with square wheels. Downhill.
- jeffvvisoft, on 09/09/2008, -3/+8Fancy art makes it more official
- billbugger, on 09/09/2008, -0/+4Cache
- Cloudo, on 09/09/2008, -1/+5I agree, even if framework make it slow its generally faster to develop and don't need to worry about security
- myhandleondigg, on 09/09/2008, -0/+4I love these *tuts sites. Its like they studied what a hot Digg article should look like, but forgot the part about making interesting content. Starry night in an article about PHP? Seriously?
- rowjimmy, on 09/09/2008, -0/+4i disagree with claiming most/all open sourced frameworks are utter crap. for php, most probably (i despise php and have even quit jobs over it) - and it definitely is a case of the right tool for the right job. but - for content management type systems and other fairly simple, generic applications - frameworks like rails or django can increase productivity and general security 1000 fold. of course, the trick is knowing when you are doing something custom to the point that you are bending over backwards to fit into the framework vs building a custom framework to fit your needs perfectly.
- GregFD3S, on 09/09/2008, -9/+13foreach($bad_programming_language as $idiot_user => $dumb_comment){
echo "Epic Failure";
} - headzoo, on 09/09/2008, -2/+6"Nobody needs to question Matt Mullenweg's authority with PHP. He has, (alongside a rabid community), developed the most popular blogging system on the planet: Wordpress."
That's like saying no one needs to question Bill Gates' authority with C. Just because he managed the people that created the most popular OS on the market, that doesn't mean a) The OS is any good, and b) He knows anything about the programming language behind it. - Matt2k, on 09/10/2008, -1/+5I *personally* don't much enjoy programming frameworks. I think after a certain level of competency it's often best to move to your own library of functions, although that's hardly a strict rule. There are sometimes very elegantly designed frameworks that are a pleasure to work with, like some javascript libraries, but they're rare. Or if you're lucky you start out early in your career and really get familiar with one. Jumping in after you already know your way around seems like a waste of time.
1. It's an artificial learning barrier. I don't want another API to learn. Did you pick the one with the most momentum? Will it be around in five years? Stick with the canonical stuff. Either it needs to be a framework written by programmers at the top of their game, or it needs to be such a personal project that you know every defect and quirk.
2. I hate digging around a framework trying to figure out how to hack up a workaround or modification. Depending on how elaborate the framework is, it can be quite a time sink.
I'd write more but this bouncing text box is ridiculous. I can't imagine this bug would be hard to fix, Digg? Blame it on the framework. - dougle, on 09/09/2008, -1/+4Dont turn it off! Setup php to log to the syslog (or a file you have write permissions on)
- Mayday, on 09/09/2008, -1/+4Ever used Smarty? I couldn't imagine having to build a PHP site without it. PHP can be pretty damn sloppy.
- SleighBoy, on 09/09/2008, -0/+3masochist
- puzzlator, on 09/09/2008, -2/+5Nice ideas, but not too relevant:
-1 for the use of Templates and IDE
-1 for assuming everyone uses MySQL for PHP Development (although it is probably the best)
+1 for filter functions
+1 for PHP Caching (although it isn't really much of an investment, kind of like investing in a chocolate bar...Cheap, Quick & easy and much satisfaction)
So all up a even 0, but +1 because its a PHP related article on Digg - GregFD3S, on 09/09/2008, -2/+5It can't be destroyed, they're using PHP.
- dougle, on 09/09/2008, -1/+4I agree with Rasmus Lerdorf "Don't use a PHP Framework" dirty dirty things. write once and reuse to save the time a framework is supposed to save you (then steal back cos it's buggy, no names CAKE!)
- inactive, on 09/09/2008, -0/+3No. I use an MVC pattern without templates. The only template language I need is PHP .
echo $var isn't more complicated than {{var}}
foreach($var as $e) :
// code
endforeach;
isn't more complicated than :
{{foreach from=$var value=$e}}
code
{{/foreach}} - legendxx, on 09/09/2008, -0/+3In response to your number #2:
What is the difference between spreading mysql db's over multiple servers vs having 1 db on multiple servers and let the OS handle the clustering?
(Serious question) - Mooco, on 09/10/2008, -0/+3In response to #10... I'd imagine error reporting is only good if you have a work & a live site that are separate; otherwise you get people that will more than happily poke at your pages to start to understand how your network / site works, and exploit with said knowledge (seen 1st hand how this is done... and it's scary for the victim.) While, naturally, limiting your Work site to admin log-in only, or within the network of the physical site, and having your live simply return an 'opps' page, will prevent such occurrences.
Otherwise, the article gets a digg for being something about PHP on digg, and giving out quite a few good tips. - CrackyJSquirrel, on 09/09/2008, -1/+4both of your foearch statements are flawed..
- billbugger, on 09/09/2008, -0/+2That's twitter, not ruby or ror.
- billbugger, on 09/09/2008, -1/+3Simple situations like includes: no framework
Web application using authenticated users and a database: use a framework
It's more about saving development time for a developer (especially freelance) then anything. - kotrin, on 09/09/2008, -0/+2Amen.
- markstory, on 09/10/2008, -1/+3Because that will save you tons of time.
- diggdiggerid, on 09/09/2008, -2/+4No.
- dougle, on 09/09/2008, -0/+2Speak Latin
- dougle, on 09/09/2008, -2/+4...Masters.....Paintings..... You don't get that?
- laelfrog, on 09/12/2008, -0/+214. Choose Grails.
Isn't that what twitter and LinkedIn did? Its JVM Based, scalable, inspired by RoR, built on a mature Java stack (Hibernate, Spring, Sitemesh, etc.)
Not to spark a flame war, but Grails deserves some attention too.
http://www.grails.org/ - markstory, on 09/10/2008, -0/+2I think he was referring to ide templates.. Like macros.. If you've every used textmate you would know how much time tab-trigger snippets can save you.
- iericg, on 09/10/2008, -0/+2Rasmus confirmed what I suspected in regards to the Zend Framework. I've been using ZF on all my projects and have noticed pages loading slower with GoDaddy shared web hosting.
Prior to using a framework I kept creating my own and making tweaks to it after every project. Which turned out to be counterproductive in the end. I prefer using open source frameworks because it does save me time and brings consistency through out all my projects. In my case it sounds like CodeIgniter is the better solution.
I aspire to think more like Rasmus however it seems more practical to take Josh Sharp's advice. - gdonald, on 09/09/2008, -0/+2Twitter's admins were (initially) clueless about scaling.
Here are the top 100 Rails sites, by traffic, per Alexa:
http://rails100.pbwiki.com/Alexa+Rankings
The number out to the right is the site's overall traffic ranking on the Internet. In particular notice those sites getting more traffic than Twitter there at the top.
Here's a second opinion by "Compete", one of Alexa's competitors:
http://rails100.pbwiki.com/Compete+Rankings
Again notice the sites getting more traffic than Twitter.
How does processing 250TB of genetic data per day using Rails sound?
http://www.vimeo.com/1104164 - GothAlice, on 09/09/2008, -2/+4Anything in Python is better than PHP or Rails. TurboGears, Paste (WebOb, Pylons, TG2) or Django. I see far more progress in the non-Django frameworks, though.
- drmitchell, on 09/09/2008, -2/+4I second that.
- markstory, on 09/10/2008, -2/+4Those were all master paintings. Vermeer, Rembrandt, Van Gogh, Michelangelo all important painters. I totally got that.
- temujin2012, on 09/10/2008, -1/+3Log, log, log.
If it's somewhere you know can throw an exception, log that, email it to yourself, do whatever you need to do to catch it and fix it. - Mayday, on 09/10/2008, -0/+1ok...well that makes a lot more sense then. Didn't really read the article as it didn't seem overly enlightening. I just saw the comment about templates and couldn't understand why someone would write php without using html templates. But it was damn good to at least see a programming article.
- dennisplucinik, on 09/09/2008, -0/+1then you did miss the comment about the paintings being those made by the 'masters'...
- int19h, on 10/07/2008, -0/+1...but C# is only a language and not a runtime environment, while Ruby is both.
- ashishnayyar, on 09/15/2008, -0/+1Well Ramsus says no framework is designed to do all kind of complicated tasks and its correct. Read http://www.hurricanesoftwares.com/buzz-about-php-f ... the buzz about php framework.
- mikeivanov, on 09/12/2008, -0/+1#0 - Stop giving your articles titles starting with '5', '10', '15', '20', etc...
IT IS REALLY ANNOYING! -
Show 51 - 100 of 120 discussions




What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official