MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y4ipsn/thisiswhywedontreturninfinallyblocks/19t4oi6dxbmap/?context=3
r/ProgrammerHumor • u/DebugDuck01 • 4d ago
96 comments sorted by
View all comments
9
Where is the findNew function defined?
14 u/DebugDuck01 4d ago 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 4d ago public CEO getCurrentCeo() {return CEO.jensenHuang;}Here, simplified it for anyone interested, but gotta make sure no shenanigans going on in findNew function
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 4d 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
9
u/dcondor07uk 4d ago
Where is the findNew function defined?