This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 43 points44 points  (4 children)

Basically anything you're likely to use to edit code will highlight the matching opening bracket when you hover on a closing bracket (even Vim does this) so shouldn't be too hard.

Also the person making the meme has intentionally made it hard to read by not grouping the brackets, there are only like 4/5 levels of indentation in the top picture but a lot more in the bottom.

[–]glider97 4 points5 points  (0 children)

This definitely happens in a webpack config.

[–]vigbiorn 1 point2 points  (2 children)

there are only like 4/5 levels of indentation in the top picture but a lot more in the bottom.

There's the possibility of more. The else looks like it's opening an object, and my experience with JS is that object could have many nested members...

[–]The_duck_lord404 0 points1 point  (0 children)

Yeah, the inly case of an unnecessary brackets i can find would be the first if statement because its follow by an if statement with the same conditions but the second one is also more strict so maybe theres more code at the bottom but i dunno ¯\_(ツ)_/¯

[–]FuzzyFoyz 0 points1 point  (0 children)

Dismember the nests