Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:Ignoring the patch for a second, I'm a die-hard 80 column format person. You can pry my 80 column wide terminals from me long after I'm dead. In Java it may seem like an 80 column limit is a problem, because the code often gets nested deep and far to the right, such as in this example here. I find that just like in C, when code is this far indented to the right in Java its too damn complex as-is and should be refactored into smaller methods, and anonymous types should perhaps be converted to named inner classes or top-level classes of their own right. My laptop display panel is only 1440 pixels wide. By the time I get my Eclipse workbench open I have about 90 characters wide for the editor page, given how I place the other views and non-Eclipse applications around the edges. Pushing much beyond 80 characters wide makes it very hard to read code quickly. And no, I do not want to tote a laptop with a display that is 9000 pixels wide, thanks. So IMHO, code in jgit+egit should try to target 80 characters wide as much as possible. If you can't hit that you need to rethink how you have the code structured. I've never refactored something into smaller more modular methods (to hit the 80 target) and said "gee, that refactoring made my code harder to understand, what with those highly descriptive method names and javadoc I gave everything". OK, now you can call me crazy. -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
