MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y4ipsn/thisiswhywedontreturninfinallyblocks/19t4oi6dxbmap/?context=3
r/ProgrammerHumor • u/DebugDuck01 • 2d ago
96 comments sorted by
View all comments
9
Where is the findNew function defined?
14 u/DebugDuck01 2d 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 2d 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 2d 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
9
u/dcondor07uk 2d ago
Where is the findNew function defined?