DEV Community

Discussion on: What is the best way to organize methods/functions within a file?

Collapse
 
kwstannard profile image
Kelly Stannard

Personally, I tend to write classes of 40 lines or less so I usually just define the public methods up top and then define everything else as close to where it is used as possible.

If I need to write a bigger class I will probably switch to a standard ordering.