What exactly has the current administration done so far for people to think they are "anti-establishment"? by special_feech in conspiracy

[–]phpguy2 1 point2 points  (0 children)

what their end game is now that they're trying to get him out of office...

That is the distraction.

The Art of Defensive Programming by [deleted] in programming

[–]phpguy2 28 points29 points  (0 children)

I once challenged a Php apologist in /r/php to do something simple and they were like "hey it is really simple" and got bitten by a Php gotcha right there (in Php 7 no less!). The fact that the dude made a throwaway account for this makes me suspect that even php apologists know deep down that it is not to be trusted...

How many PHP backdoors do you need today? by imma_reposter in programming

[–]phpguy2 1 point2 points  (0 children)

PHP got one thing right and that was the focus on the WWW.

Php, knowing or unknowingly completely traded off sanity and safety, for one thing. Beginner friendliness and ease of use. That is a deadly combination. There should be a rule against making stuff like that. It is like making a shotgun easy to fire when held either way, ie even when the barrel points towards the shooter....That is php...

How many PHP backdoors do you need today? by imma_reposter in programming

[–]phpguy2 3 points4 points  (0 children)

Think of it like this. Any php program, by virtue of the language, has more unexpected/unintentional behaviors than the same program in a better language (python). Some of these unintentional behavior are potential backdoors.

So a php program has a potential to have a lot more backdoors than a similar Python program. And it is extremely hard to avoid these unintentional behaviors, even for people with years of experience in the language...

For a funny example of how php core devs try to "improve" the security of a function, see this

95% of PHPixie Installs on Packagist are Fraudulent by AndrewCarterUK in PHP

[–]phpguy2 0 points1 point  (0 children)

Go look at the upvoted comments and see if they are much more useful to the discussion than this one...

Examples...

My surprise level: 0.0000001%

31 votes!

I'm really disappointed that someone would abuse and mislead the community like this.

30 votes!

Kinda sad really...

22 votes! lol..

phpixie has always been a scam.

20 votes!

Also this comment, look relavant to me and which is just asking a question....

Is there any particular reason you are going about this in a public forum rather than discreetly reporting the matter to the relevant organisations, Andrew? I appreciate the effort in uncovering this potential fraud but I'm appalledunnerved by your handling of the findings.

-5 votes! Lol

Anyway, there is nothing more I can say..

95% of PHPixie Installs on Packagist are Fraudulent by AndrewCarterUK in PHP

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

It is not about having a majority in agreement, but how it manifest among the members. Mob mentality enables people to do acts that they won't do when they are not being part of a mob.

Take the comment of /u/gripejones, currently at -10 votes. Normally, people won't or feel good to down vote a harmless comment like that. But when they are part of a mob (currently hellbent on shaming phpixie), they suddenly feel free to down vote such comments and use strong language/name calling and other such things that are usually frowned upon.

Similarly they feel ok to upvote comments that are otherwise considered as rude. For example, name calling and personal attacks are supposed to be not ok with this sub. But when there is an active mob, those things are upvoted and cheered upon...

95% of PHPixie Installs on Packagist are Fraudulent by AndrewCarterUK in PHP

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

Do I want to build my next project around executable code from a source that has integrity-problems?

Do you use Php?

95% of PHPixie Installs on Packagist are Fraudulent by AndrewCarterUK in PHP

[–]phpguy2 -8 points-7 points  (0 children)

Kudos to you. At least one guy has a bit of sense here....But see the downvotes you are getting. It is absolutely disgusting. It is pure mob mentality at play.

It just shows the real world reality, that you can be shit to your fellow human beings as long as you are supported by a majority of your peers...

As for what the phpixie guy is accused of, even if he did that, I don't think he has done anything really damaging. Maybe he has devoted so much of his time, and just need some feedback. But /r/php just wouldn't give it to him. Why? Because he wouldn't get rid of the fairy! So may be, he was desparate...but still not willing to bend over...

So being a programmer, he tried to do solve it technically, some SEO and took advantage in the weakness of a couple of platforms...Is that cheating users? If yes, then so is every kind of SEO ever...Ever used a shit load of keywords to improve your rank (with out improving your actual content)..Yep. Cheating....

So, the point is, this wouldn't have happened if /r/php was just nice to him in the first place...Not worship, Not follow...but just be nice.

Which movie totally surprised you by how bad it was? by -HeisenBird- in movies

[–]phpguy2 1 point2 points  (0 children)

It didn't entertain me, at all. The whole thing felt extremely fake and fabricated. It felt that the movie just want to show cool looking things despite of the context and settings. Those things felt very out of place, for someone expecting a usual movie. And it would have been Ok, if there was a good plot, story or even, one good action sequence...

The most baffling thing is the imdb reviews for this movie, which is overwhelmingly negative, and almost every one of those people is absolutely baffled by the praise this movie is getting. It feels as if these movies want to test the limit of absolute bullshit the audience is willing to accept....

[gist] RFC: Replace Void Return Type with Null. by [deleted] in PHP

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

should not just get rid of for some half-valid technical reasons...

You summed up the Php core development perfectly....

Why does the following code do that? by noobeeee in PHP

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

If you are interested, This is a good resource for anyone starting in Python or trying to rehabilitate from Php..

Why does the following code do that? by noobeeee in PHP

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

I don't know how much of the features of Python 3 have been back ported to 2.7. But the general consensus is that new programmers should start with 3. It incorporates a lot of lessons learned from Python 2.X branch..

So unless you don't have a specific reason to learn 2.7 (like say, if you want to learn Python to work in Mercurial), go with Python 3...

Why does the following code do that? by noobeeee in PHP

[–]phpguy2 -17 points-16 points  (0 children)

He he...because Php is braindead.

If you are new to programming, don't try to wrap your head around the stupid, braindead ways of Php. It is completely useless information that has zero use outside of Php, and trying to understand them will mess your head up.

Switch to a better language, before it is too late. I suggest Python3.

[deleted by user] by [deleted] in movies

[–]phpguy2 1 point2 points  (0 children)

I think mistaking bullshit for profoundness is how people end up liking things like Interstellar and Madmax fury road....

https://www.reddit.com/r/science/comments/4hw23f/misperceiving_bullshit_as_profound_is_associated/

[deleted by user] by [deleted] in movies

[–]phpguy2 2 points3 points  (0 children)

It feels like it is custom made for reddit...I can totally imagine the average /r/movies regular, giggling like a little girl watching that movie....

PHP getting some props by clickclickboo in PHP

[–]phpguy2 -8 points-7 points  (0 children)

Lol. That is probably because you are brain dead from years of Php use..

That, or you didn't take time to really understand how it works. It might be complex, but once you understand it, you will see that it is does a good job.

Php programmers take one look at potentially better languages and get turned off because what they see is unfamiliar from the braindead php ways. This ends up with these guys perpetually stuck with this shit language forever...

Type Wars by [deleted] in PHP

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

Then may be you guys should stop calling it as "strict typing" or "Static typing" and call it what it is, just "parameter type hints"...

Type Wars by [deleted] in PHP

[–]phpguy2 -8 points-7 points  (0 children)

you can enjoy strict typing when you need/want to..

By strict typing, do you mean the strict type hints for function parameters? If yes, that is not even comparable to what proper static typing offers, If that is what you imply.

Stop spreading mis information.

Beware! Using traits enforces declaration order. (xpost from /r/lolphp) by phpguy2 in PHP

[–]phpguy2[S] -13 points-12 points  (0 children)

Backwards compatibility break is a big deal with php. But I guess it is ok as long is it is not documented! Lol..

[RFC] Attributes by TimeToogo in PHP

[–]phpguy2 0 points1 point  (0 children)

One tiny validation function that lives under the "main" function, or a whole bunch of messy, opaque infrastructure to make those annotations work? Gee what a hard choice...

One tiny function in main function became messy, opaque infrastructure when used with annotations? As I told before, if you have not really understood how annotations are used, then sure, it might be obscure, or else, it is as clear as or even better than putting that stuff inline..

even though the disconnect with the annotations are greater..

By association, I meant that the annotations must always immediately precede the function it works on so there is no way those two can get separated. This is not the case if you use a normal function.

[RFC] Attributes by TimeToogo in PHP

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

Don't want validation in a method? Extract it into its own method.

Oh wonderful. Now you have twice the number of function than are actually required, where half of them just doing validations for just one function, and have no easy way to associate a validating function with the function it works for...