3 ms·
Most code structure outliners can sort the outline alphabetically, e.g. all the Jetbrains IDE. Why would you want to sacrifice logical grouping over alphabetica
by kelsolaar 4y ago
Most code structure outliners can sort the outline alphabetically, e.g. all the Jetbrains IDE. Why would you want to sacrifice logical grouping over alphabetical one?
- beebeepka 4y agoWhy not both? function coolThingWrap function coolThingUnwrap It doesn't always make sense but alphabetical ordering makes sense
- kelsolaar 4y agoBut you have both for free with an idea that has an outliner that can sort alphabetically, if I was to look for function to "wrap cool thing", I would start looking at functions starting with "wrap".
- stevekemp 4y agoI guess it depends on the kinda things you work on, and how you prefer to go. Personally I tend to seperate things logically by using different files within packages - so I might have: foo/ foo/maths.go foo/strings.go foo/logical.go And then sort the implementation of each specific post. This is mentioned in the blog post linked within this thread - author here, though I wouldn't have considered submitting here. But yes, IDEs do tend to give you an (alphabetical) tree, and personally I'd find it odd if the tree and the contents didn't match.