From: Brian M. <br...@gr...> - 2009-07-24 03:25:33
|
> This may seem trivial, but I thought > I'd raise it anyway. I'd like to > arrange the methods by the order in which the objects > appear in the > sidebar <snip> > So, what is the preference? Group by function or group by > object? > Which would be easier to read for the next person? > One advantage of > the first approach is that similar functions are grouped > and > differences are easy to spot. One advantage of the > second approach is > that all functions for a given object appear together, > giving an > at-a-glance view of how to access that object. > > Personally, I'm leaning ever so slightly to organizing by > object (just > seems more OOPy to me). I ever so slightly agree. I tend to group my getters and setters together. ~Brian |