Skip to content
loading...

re: How do you decide what order to put code in? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Uncle Bob's clean code dictates that functions within a file should descend based on abstraction layers. So the high level stuff towards the top, a...
 

+1 that's the way that makes the most sense to me, though personally I do it backwards to that because imagining I'm the compiler, it makes more sense to put the functions that don't reference any other functions at the beginning, and then to build up down the file.

code of conduct - report abuse