DEV Community

Discussion on: Visual Studio Code's New Editor Sticky Scroll Feature - Never Get Lost In The Code Again!😍

Collapse
 
lbodwell profile image
Luke Bodwell

While I agree that in an ideal world no function should have a body large enough to warrant use of this feature, the reality is that that's not always the case. Especially at work, I find myself dealing with codebases all the time that don't follow this rule very well, where I'd absolutely appreciate the benefits of sticky scroll.

Collapse
 
dimitarbogdanov profile image
Dimitar Bogdanov

Besides, sometimes your function is just only calling other functions and passing around the return values. I'd rather have 1 larger function than split it up 3 different functions which all just call more functions, it'll just take more time. Comments can easily solve that issue, imo.

Some comments have been hidden by the post's author - find out more