MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/gsvs25/please_guys_actually/fs90y0b/
r/ProgrammerHumor • u/Henri_VIII • May 29 '20
112 comments sorted by
View all comments
Show parent comment
13
What is language-problematic in this code ? It's a try/catch, an if/else and a maximum of two nested parentheses.
You could argue that naming of the variables/classes are cumbersome or over explicit. But this is not related to Java.
And i can also have fun finding stuff in JS frameworks :)
_setupHooks(hooks) { this.options.hooks = {}; _.map(hooks || {}, (hooksArray, hookName) => { if (!Array.isArray(hooksArray)) hooksArray = [hooksArray]; hooksArray.forEach(hookFn => this.addHook(hookName, hookFn)); }); },
3 u/Frptwenty May 29 '20 Yeah, attack JS all day, have at it! I don't have any dog in that fight ;)
3
Yeah, attack JS all day, have at it! I don't have any dog in that fight ;)
View all comments
Show parent comment
13
u/ouvreboite May 29 '20
What is language-problematic in this code ? It's a try/catch, an if/else and a maximum of two nested parentheses.
You could argue that naming of the variables/classes are cumbersome or over explicit. But this is not related to Java.
And i can also have fun finding stuff in JS frameworks :)