ashrobo Posted June 12, 2003 Posted June 12, 2003 i wonder if anyone (except those from my school) bothers to break up a line of code should it be longer than the width of the page, i.e. taking up two lines for a line of continuous code. i've just printed out a piece of code and saw that VS uses a arrow to indicate continuous text. is it more readable with that or breaking up the codes with _ ? -ashrobo Quote
wyrd Posted June 12, 2003 Posted June 12, 2003 It's always good to continue long lines of code down to the next line so it's easy to read while you code. Quote Gamer extraordinaire. Programmer wannabe.
ashrobo Posted June 12, 2003 Author Posted June 12, 2003 sometimes, it's easy to read the code while coding, but when printing on paper, it wouldn't be that easy to read (when the line of code exceeds a line on the paper). Quote
*Gurus* Derek Stone Posted June 13, 2003 *Gurus* Posted June 13, 2003 There aren't too many cases where long lines of code are warranted. In fact, they usually indicate poorly written code, that lacks checks of return values or encapsulates multiple calls in catch-all error handlers. In most cases don't worry about breaking up the line-- worry about breaking up the logic. Quote Posting Guidelines
ashrobo Posted June 13, 2003 Author Posted June 13, 2003 Private Sub grdOrders_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles grdOrders.MouseUp for instance is longer than the width of an A4 page. In most cases don't worry about breaking up the line-- worry about breaking up the logic. hmm, i guess you are right Derek. cheers! ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.