Earlier quoted context omitted.
Python's got excellent documentation, both official and third party.
Oh! Well, I must've missed that train (haven't done py for a few years). A couple of years ago, you had to get your info from a mix of a tutorial and a library reference, and most functions were documented with 3-4 sentences max and no examples. Hmm, that said, that's still exactly what I find on the official Python site (e.g. http://docs.python.org/library/stdtypes.html#string-methods - PHP beats this by lightyears…
I Like PHP
101–110 of 269 posts
Re: I Like PHP
#102Earlier quoted context omitted.
Most ORMs (including Django) let you easily drop-down into writing your own custom SQL queries when the need arises.
I've used Django and many others and while you can do this, you end up with code that isn't very clean.
Re: I Like PHP
#103Except that PHP is terrible for systems programming?
Re: I Like PHP
#104From the comments: "PHP is great for its purpose. Quick scripts that generate web content. It’s even OK for small applications. But just like C, PHP is lousy for the medium to large. Any software project with a duration in months or greater that is entirely in PHP is going to be painful." Like Facebook? Or Wordpress? Or Digg? PHP aint perfect, but it's demonstrably suitable for medium to large projects.
It's a damning indictment of Java, ASP.NET, Ruby and all other environments that almost all of the apps that "any idiot can install on a web server" are written in PHP. Where's the "Wordpress" of any other programming language?
Re: I Like PHP
#105Earlier quoted context omitted.
One of our struggles at Facebook was actually with circular includes that made our php codebase super tasty spaghetti. File A includes File B includes File C includes File A by about 10000 files. It was for a very scary trying to change a core library during this time because it was almost impossible to figure out where all it was included and impossible to test all the code that touched it. Additionally, we were bas…
I worked on a large PHP codebase for a few years, and that sounds very familiar. We never did get it untangled enough to test before I left. Do you have a static analyzer or something like it that enforces the no-circular-dependencies rule, or is it just a procedural thing?
Re: I Like PHP
#106Earlier quoted context omitted.
Python's got excellent documentation, both official and third party.
Oh! Well, I must've missed that train (haven't done py for a few years). A couple of years ago, you had to get your info from a mix of a tutorial and a library reference, and most functions were documented with 3-4 sentences max and no examples. Hmm, that said, that's still exactly what I find on the official Python site (e.g. http://docs.python.org/library/stdtypes.html#string-methods - PHP beats this by lightyears…
The REASON PHP needs a page per function is the sheer number of poorly handled edge cases, version incompatibilities, and gotchas.
Re: I Like PHP
#107Re: I Like PHP
#108Earlier quoted context omitted.
When frameworks are the popular alternative to PHP (RoR,Django,etc), it is valid. Are we also not allowed to talk about RoR when it comes to a discussion about PHP alternatives?
It's a bit comparing apples to oranges. If you were comparing say Cake or Zend to RoR and Django then it would be a reasonable comparison.
Re: I Like PHP
#109"I don’t even bother writing tests for most of the PHP I write (obviously, I would be a bit more thorough if this code were destined to be used in a more mission critical web site). Not writing tests is not the only software taboo that I break when I write PHP: I happily mix up presentation and logic all the time. That’s just how PHP is supposed to work" And this is why everybody else hates PHP. It tempts you to writ…
Can you please provide me a resource to learn how to fully separate the code from the markup? I learned web development on ColdFusion then switched to PHP. I certainly understand separation of content from design (HTML to CSS) but I honestly have no idea how to do web development without mixing markup (HTML) with the actual programming. I've done a little C and Java web stuff where my code printed HTML output - ugly.…
Re: I Like PHP
#110Earlier quoted context omitted.
When frameworks are the popular alternative to PHP (RoR,Django,etc), it is valid. Are we also not allowed to talk about RoR when it comes to a discussion about PHP alternatives?
That is like saying Cocoa is a popular alternative to C++, but you prefer C++ because it allows you to write your own UI event loop. I guess it is true if you really stretch your imagination, but does it mean anything?
I suppose it's fine when many of then newer programmers don't even know or understand what's going on underneath anyway...