Click here to Skip to main content
14,387,787 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Long Lines Pin
bjongejan21-Oct-19 23:07
Memberbjongejan21-Oct-19 23:07 
GeneralRe: Long Lines Pin
agolddog22-Oct-19 3:44
Memberagolddog22-Oct-19 3:44 
GeneralRe: Long Lines Pin
Maximilien21-Oct-19 6:22
MemberMaximilien21-Oct-19 6:22 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:08
MemberPeejayAdams22-Oct-19 0:08 
GeneralRe: Long Lines Pin
Dave Kreskowiak21-Oct-19 6:39
mveDave Kreskowiak21-Oct-19 6:39 
GeneralRe: Long Lines Pin
pkfox21-Oct-19 11:23
professionalpkfox21-Oct-19 11:23 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:17
MemberPeejayAdams22-Oct-19 0:17 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 3:27
mveDave Kreskowiak22-Oct-19 3:27 
It's a bit more readable, and in this case, it's a lot more debuggable.

You now have your bounds and list in variables, making it easier to figure out why you're not getting the results you should be getting.

On top of that, the code doesn't check for bounds being valid values or even readable from AppSettings and breaking it out into variables makes that easier to spot and fix.

GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 4:14
MemberPeejayAdams22-Oct-19 4:14 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 7:03
mveDave Kreskowiak22-Oct-19 7:03 
GeneralRe: Long Lines Pin
BryanFazekas22-Oct-19 2:15
MemberBryanFazekas22-Oct-19 2:15 
GeneralRe: Long Lines PinPopular
Ravi Bhavnani21-Oct-19 6:47
professionalRavi Bhavnani21-Oct-19 6:47 
PraiseRe: Long Lines Pin
PeejayAdams22-Oct-19 0:17
MemberPeejayAdams22-Oct-19 0:17 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 6:52
professional  Forogar  21-Oct-19 6:52 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 8:01
professionalPIEBALDconsult21-Oct-19 8:01 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 8:40
professional  Forogar  21-Oct-19 8:40 
AnswerRe: Long Lines Pin
ZurdoDev21-Oct-19 6:58
professionalZurdoDev21-Oct-19 6:58 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:19
MemberPeejayAdams22-Oct-19 0:19 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 7:10
professionalPIEBALDconsult21-Oct-19 7:10 
GeneralRe: Long Lines Pin
Gary Wheeler22-Oct-19 3:10
MemberGary Wheeler22-Oct-19 3:10 
GeneralRe: Long Lines Pin
Kevin Marois21-Oct-19 7:16
professionalKevin Marois21-Oct-19 7:16 
GeneralRe: Long Lines Pin
Marc Clifton21-Oct-19 10:35
mvaMarc Clifton21-Oct-19 10:35 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:22
MemberPeejayAdams22-Oct-19 0:22 
GeneralRe: Long Lines Pin
PIEBALDconsult22-Oct-19 3:57
professionalPIEBALDconsult22-Oct-19 3:57 
GeneralRe: Long Lines Pin
Member 916705721-Oct-19 21:52
MemberMember 916705721-Oct-19 21:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.