Hi, On Fri, Sep 28, 2018, 2:53 PM Tom Ehlert <[email protected]> wrote:
> > > One thing about coding style (it does not affect you - just something > > that I noticed when reading code): > > You have put your main() at the end. I want to get an overview of what > > happens. I start scrolling down, but still reading from line 1. I want > > to see main, but can't miss the stuff from line 1 to main(), so I read > > and cant await to get to main(). Finally I am there - I want to know > > what a function does, I have read it a few minutes before, but was > > waiting for main, so nothing has been saved to my brain and I read code > > again... :D > > most of us use the function 'find', or sometimes 'search' to locate > the main() function. no need to read everything up to main() only to > learn that the personal memorizing capacity was overloaded. > What about ctags and vi? More specifically, Exuberant Ctags (DJGPP build) and VILE, JED, etc. (also DJGPP builds)? They work with several programming languages, not just C or assembly. And there are other tools that I'm not super familiar with like Cscope or Global. Not to mention (POSIX?) cxref and cflow. >
_______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
