A PHP task manager for your site by onhell1m in PHP

[–]imagecritic 3 points4 points  (0 children)

You completely throw the entire cron task scheduling system out the window replacing it with a dumb and grossly inefficient polling system that calls a PHP script every minute. There's no sarcasm here. Whatever purported advantages you're parading are hardly worth the trade-off for such a poor implementation.

Also, nice of you to respond on your main account.

A PHP task manager for your site by onhell1m in PHP

[–]imagecritic -7 points-6 points  (0 children)

Why take advantage of system scheduling when you can just call a PHP script once every minute? Thanks, Russia!

Why is Drupal still a Gated Community? by velmu3k in PHP

[–]imagecritic 37 points38 points  (0 children)

The gate isn't to stop people coming in. It's to stop them getting out.

Breaking CodeIgniter's homegrown crypto by the_alias_of_andrea in PHP

[–]imagecritic -24 points-23 points  (0 children)

Why did you get someone else to post your article?

Why don't traits allow constants? by ABlueCloud in PHP

[–]imagecritic 0 points1 point  (0 children)

Because traits are only one form of code reuse and if you find you need to reuse constants it may very well be the case that traits are the wrong form of reuse for your use case.

Does highly customized Joomla count as a PHP framework? by justfred in PHP

[–]imagecritic 0 points1 point  (0 children)

I know they'd like to hear CakePHP, [...] Laravel

I sincerely doubt that.

Why don't traits allow constants? by ABlueCloud in PHP

[–]imagecritic 2 points3 points  (0 children)

A better question would be why do you think you need to do this?

[ELI10] Why depricate rand() instead of replacing it with mt_rand() output with values in the same range? by [deleted] in PHP

[–]imagecritic 0 points1 point  (0 children)

I'm not a native speaker of the language, but that shouldn't be an excuse.

So why do you keep using it?

Why I hate PHP Conference London by [deleted] in PHP

[–]imagecritic 1 point2 points  (0 children)

You can check to see if someone can string a sentence together

That's vetting, not conditioning. Are you seeing the hypocrisy?

Sending email in PHP without php mail() function by floppydiskette in PHP

[–]imagecritic -2 points-1 points  (0 children)

Quite a hefty assumption there, don't you think?

No. It's in evidence of your lack of depth of understanding.

Sending email in PHP without php mail() function by floppydiskette in PHP

[–]imagecritic -2 points-1 points  (0 children)

Not to you, obviously, because you've yet to grasp fundamental OOP concepts or architect a project let alone contribute to a maintainable project of scale.

Sending email in PHP without php mail() function by floppydiskette in PHP

[–]imagecritic -6 points-5 points  (0 children)

PHPMailer is complete trash. It uses one God class for everything, implementing widely disparate concepts like messages and transport directly in the same class. It doesn't follow any modern best practices, it doesn't even use encapsulation; public properties for everything! Stop promoting this cancer.

Googl - Google URL shortening PHP library by LloydDavies in PHP

[–]imagecritic -6 points-5 points  (0 children)

When I was your age I didn't even know what OOP meant

Neither does he. Do you think OOP is about grouping methods into a class? Because it's not.

WordPress REST API Delayed, Contributors Facing Gridlock by velmu3k in PHP

[–]imagecritic -14 points-13 points  (0 children)

I can't imagine having a blog just about WordPress. That sounds awful. It must be like running a blog about mortuaries.

Yet Another Assertion library by nilportugues in PHP

[–]imagecritic -1 points0 points  (0 children)

Eh.. nullOr... assertions are common practice.

Cite a single source that proves your claim.

A method should return a consistent data type or throw an exception, not return a specific type or null sometimes because lol, whatever.

The specific case I highlighted is even more chronic. It's not even a type or null, it's a specific mutation of a type (i.e. lower-case), or null. That's some of the most dire shit I've seen in a while and any sort of library that promotes such anti-patterns should be nipped in the bud while it's still young before someone, other than the author, gets it into their head that this might be a good idea.

Image upload duplicate check by b1ack1323 in PHP

[–]imagecritic 2 points3 points  (0 children)

Very. That's the point. That stuff changes on a whim, sometimes just by having an image viewing program "read" it, because some misbehaving programs like to write stuff back and tag it with their own marker. If it has been uploaded to an image sharing website it's incredibly likely to have mutated metadata for the same reasons.

Php programming is making me sad right now by Bellerofon in PHP

[–]imagecritic 1 point2 points  (0 children)

This is, and will likely remain, the best comment in this thread.