I hope that's just mild disgust and not surprise... it's HN. History repeats itself every twelve minutes.
[edit]Which is not to say I don't agree with the "PHP is garbage" comments. I just also agree with the "seriously, we read all of this the last three thousand times PHP articles were posted, please shut up" snark.[/edit]
PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
>> PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code.
I believe that programmers ability to write poor code is quite language agnostic.
Friendly reminder that we can't have anything involving PHP without: * complaints about features it has or has not * a reference to that "a fractal of bad design" article * how language x is better * sarcastic, ironic or post-ironic notes about the above * one guy pointing out we can't have anything involving PHP without the above
> a reference to that "a fractal of bad design" article
I've seriously started using it as a unit of measurement for the level of knee-jerk anti-PHP fanaticism present in a thread.
PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
In my judgement, PHP best practice is #1 to never write anything new in it. And where it does already exist, #2 is to ideally write replacements (or do an incremental migration) in something else with a better overall balance of positive to negatives, that fits best, typically Python, Java, C or a sh.
>Passing DOMDocumentFragment to DOMDocument::saveHTML() Produces invalid Markup
Of the few things PHP should be great at, parsing and generating html markup is close to the top of the list. Yet DOMDocument has given me so many headaches...
Grayed out means down voted, right? But why?! First good comment on the thread: no bitching, no need to click the link to find ~20 fixes, here's the alternative, never look back. Period.
Grayed out means down voted, right? But why?! First good comment on the thread: no bitching, no need to click the link to find ~20 fixes, here's the alternative, never look back. Period.
Might have something to do with it being off-topic and not adding anything to the conversation.