Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
It's always good to continue long lines of code down to the next line so it's easy to read while you code.
Gamer extraordinaire. Programmer wannabe.
Posted
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).
  • *Gurus*
Posted
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.
Posted

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! ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...