Addition of 1 and 1 in PHP
github.com
Addition of 1 and 1 in PHP
1–10 of 89 posts
Re: Addition of 1 and 1 in PHP
#2Good one.
Re: Addition of 1 and 1 in PHP
#3Hooray for enterprise software 'design patterns'.
Re: Addition of 1 and 1 in PHP
#4Hilarious!
Re: Addition of 1 and 1 in PHP
#5The only flaw I can see is that the string literal '1' should have been declared as a const somewhere, preferably in another unrelated library, and called something like 'UNITY_VALUE'.
Re: Addition of 1 and 1 in PHP
#6Yes this is a good joke until you realize there is no other way to get some level of type safety in PHP other than adding a bunch of unnecessary classes.
Re: Addition of 1 and 1 in PHP
#7I know a couple of Java programmers that will find this helpful. Thanks.
Re: Addition of 1 and 1 in PHP
#8I know a couple of Java programmers that will find this helpful. Thanks.
What Java really needs is a KitcheSink class.
I'm pretty sure there's already one in PHP.
Re: Addition of 1 and 1 in PHP
#9This is brilliant, I will use it on all my php sites.
Re: Addition of 1 and 1 in PHP
#10I'm not familiar with the PHP ecosystem. Is the author making fun something other than obvious over-engineering? Does he or she feel like that's a problem in the PHP ecosystem?
I'm criticizing, because it's funny. I'm just trying to figure out if theres some wisdom being conveyed that I'm missing.