Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@asgs It does Everything™
Edit:
This brings me onto an idea. Why not just write everything in the constructor? You can then just instantiate the result!
Absolutely ingenious!
$myResult = new Result(...$myParams);
(obviously I was kidding) 😄 -
asgs112753y@PonySlaystation you should probably file a patent and get this new "design pattern" to the GoF's list
-
@PonySlaystation I'm confused how this could actually work.
All weirdness with duck typing aside, that's broken to me? -
@IntrusionCM It works because 0000-00-00 is basically a math expression equal to zero 😄
-
To have a massive constructor is one thing... but the constructor also has zero arguments.
So it does 800 things or so, completely independent from the state of the rest of the program.
Writing something like this requires skill. -
@bittersweet Not really.
Static methods / non DI.
Constructorr with a lot of factory methods....
Or a constructor relying on public / magic functions.
Those are fun. -
@bittersweet Good point!
Man, you don't want to know what these 820 lines have to offer... I've seen things... -
kiki352543y@amenabe hey, I thought what was between us should remain private. I'm not going all around devRant mentioning your dick size, right?
-
amenabe1543y@kiki of course you can’t mention it It’s too big to fit in the devRant servers. 😂
Related Rants
[CMS of Doom™]
Yes. Somebody wrote this.
rant
cmsofdoom
phptsd
php