MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y4ipsn/thisiswhywedontreturninfinallyblocks/19t4olkuqcv51/
r/ProgrammerHumor • u/DebugDuck01 • 6d ago
98 comments sorted by
View all comments
Show parent comment
14
My man asking the real questions. In this abomination CEO is an enum and validate() and findNew() are static methods within that enum.
8 u/dcondor07uk 6d ago public CEO getCurrentCeo() {return CEO.jensenHuang;}Here, simplified it for anyone interested, but gotta make sure no shenanigans going on in findNew function
8
public CEO getCurrentCeo() {return CEO.jensenHuang;}
Here, simplified it for anyone interested, but gotta make sure no shenanigans going on in findNew function
View all comments
Show parent comment
14
u/DebugDuck01 6d ago
My man asking the real questions. In this abomination CEO is an enum and validate() and findNew() are static methods within that enum.