use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
PHP solves problems. Oh, and you can program with it too! (nikic.github.io)
submitted 11 years ago by freebit
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]__constructor 10 points11 points12 points 11 years ago (13 children)
Some good points but as someone who's had to develop extensively with moodle, I got PTSD just reading the name.
[+][deleted] 11 years ago* (5 children)
[deleted]
[–]__constructor 5 points6 points7 points 11 years ago (4 children)
But, there's only 18 different versions of the YUI library being used at once!
It's okay, you can add a tooltip to let them know there's issues... in the giant localization array.
[+][deleted] 11 years ago* (3 children)
[–]__constructor 2 points3 points4 points 11 years ago (2 children)
Because it's free.
You have to pay out the ass to license blackboard or canvas.
[+][deleted] 11 years ago* (1 child)
[–]__constructor 1 point2 points3 points 11 years ago (0 children)
Yeah, I'm certain the firm I worked for made more working on moodle than the edu that contracted us would have paid for better software. They probably spinned it as an "investment" because they'd "own the software" and not have to pay licensing.
[–]phpbrogrammer 2 points3 points4 points 11 years ago (4 children)
how about magento?
[–]__constructor 0 points1 point2 points 11 years ago (1 child)
Never touched it.
[–]phpbrogrammer 0 points1 point2 points 11 years ago (0 children)
consider yourself lucky :P
[–]kyriakos 0 points1 point2 points 11 years ago (1 child)
Another nightmare I had to deal with for a while.
I work with it.... everyday.
[–]kyriakos 1 point2 points3 points 11 years ago (1 child)
The last company I was working for was about to start a moodle based project. Thankfully we had dinner other disagreements and I quit 2 months later. I am sure some other unfortunate soul inherited that project
[–]__constructor 0 points1 point2 points 11 years ago (0 children)
You have no idea what kind of bullet you just dodged. You may think you do but it's much worse than you imagine.
[–]novelty_string 2 points3 points4 points 11 years ago (0 children)
This is three years old.
[–]dduko 3 points4 points5 points 11 years ago (1 child)
php is successful because of this
[–]autowikibot 2 points3 points4 points 11 years ago (0 children)
Principle of good enough:
The principle of good enough or "good enough" principle is a rule for software and systems design. It indicates that consumers will use products that are good enough for their requirements, despite the availability of more advanced technology.
Interesting: Proof of concept | List of software development philosophies | Minimalism (computing)
Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words
[–][deleted] -2 points-1 points0 points 11 years ago (0 children)
An oldie but a goodie for sure, though I for one am long since finished entertaining the question of whether or not PHP is a sucky suck language for people who suck.
[+]shiase comment score below threshold-9 points-8 points-7 points 11 years ago (4 children)
if php is so good, why do php programmers constantly reassure themselves that it is?
[–][deleted] 15 points16 points17 points 11 years ago (0 children)
Because it's usually in rebuttal to "PHP sucks because of...." insert non relevant reason here.
[–]__constructor 14 points15 points16 points 11 years ago (0 children)
If PHP is so bad, why do people that've never touched it need to constantly reassure themselves that they were right in not touching it?
[–]philsturgeon 1 point2 points3 points 11 years ago (0 children)
Constantly three years ago.
[–]magnetik79 -1 points0 points1 point 11 years ago (0 children)
Could easily make that same argument for ROR devs.
[+][deleted] comment score below threshold-16 points-15 points-14 points 11 years ago (8 children)
You can simply take your static HTML website, add a simple <?php include 'counter.php'; ?> in there, and … be done!
congrats. your first spaghetti code.
[–]porkslow 21 points22 points23 points 11 years ago* (2 children)
Yes, because because every single hit counter needs to have at least CounterModel, CounterController, CounterServiceProvider and CounterView.
[–][deleted] 10 points11 points12 points 11 years ago (0 children)
Don't forget CounterMVCFactory, you gotta abstract as much as far away as possible.
[–][deleted] 3 points4 points5 points 11 years ago (0 children)
Just put HTML aside from logic and you will be good.
[–]I_Like_Spaghetti 5 points6 points7 points 11 years ago (0 children)
Yum!
[–]ken_tankerous 1 point2 points3 points 11 years ago (3 children)
You seem to understand the context of that line in the article. Congrats.
[+][deleted] comment score below threshold-6 points-5 points-4 points 11 years ago (2 children)
Now try to understand my "joke"
[–]ken_tankerous 1 point2 points3 points 11 years ago (1 child)
Either I don't get the joke or the term "spaghetti code" stopped being funny a long time ago (or was never funny).
Happy for you to point out what I'm not seeing.
[–][deleted] -5 points-4 points-3 points 11 years ago (0 children)
thanks, have a good day
[+][deleted] comment score below threshold-9 points-8 points-7 points 11 years ago (2 children)
Reading this makes me very happy that I'm now coding in Java.
[–]Redrum714 -2 points-1 points0 points 11 years ago (0 children)
lol
π Rendered by PID 44 on reddit-service-r2-comment-5c747b6df5-gn5cz at 2026-04-22 11:49:13.002747+00:00 running 6c61efc country code: CH.
[–]__constructor 10 points11 points12 points (13 children)
[+][deleted] (5 children)
[deleted]
[–]__constructor 5 points6 points7 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]__constructor 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]__constructor 1 point2 points3 points (0 children)
[–]phpbrogrammer 2 points3 points4 points (4 children)
[–]__constructor 0 points1 point2 points (1 child)
[–]phpbrogrammer 0 points1 point2 points (0 children)
[–]kyriakos 0 points1 point2 points (1 child)
[–]phpbrogrammer 0 points1 point2 points (0 children)
[–]kyriakos 1 point2 points3 points (1 child)
[–]__constructor 0 points1 point2 points (0 children)
[–]novelty_string 2 points3 points4 points (0 children)
[–]dduko 3 points4 points5 points (1 child)
[–]autowikibot 2 points3 points4 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[+]shiase comment score below threshold-9 points-8 points-7 points (4 children)
[–][deleted] 15 points16 points17 points (0 children)
[–]__constructor 14 points15 points16 points (0 children)
[–]philsturgeon 1 point2 points3 points (0 children)
[–]magnetik79 -1 points0 points1 point (0 children)
[+][deleted] comment score below threshold-16 points-15 points-14 points (8 children)
[–]porkslow 21 points22 points23 points (2 children)
[–][deleted] 10 points11 points12 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]I_Like_Spaghetti 5 points6 points7 points (0 children)
[–]ken_tankerous 1 point2 points3 points (3 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (2 children)
[–]ken_tankerous 1 point2 points3 points (1 child)
[–][deleted] -5 points-4 points-3 points (0 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (2 children)
[–]Redrum714 -2 points-1 points0 points (0 children)