Click here to Skip to main content
15,900,461 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 22:07
bjongejan21-Oct-19 22:07 
GeneralRe: Long Lines Pin
agolddog22-Oct-19 2:44
agolddog22-Oct-19 2:44 
GeneralRe: Long Lines Pin
Maximilien21-Oct-19 5:22
Maximilien21-Oct-19 5:22 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:08
PeejayAdams21-Oct-19 23:08 
GeneralRe: Long Lines Pin
Dave Kreskowiak21-Oct-19 5:39
mveDave Kreskowiak21-Oct-19 5:39 
GeneralRe: Long Lines Pin
pkfox21-Oct-19 10:23
professionalpkfox21-Oct-19 10:23 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:17
PeejayAdams21-Oct-19 23:17 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 2:27
mveDave Kreskowiak22-Oct-19 2: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 3:14
PeejayAdams22-Oct-19 3:14 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 6:03
mveDave Kreskowiak22-Oct-19 6:03 
GeneralRe: Long Lines Pin
BryanFazekas22-Oct-19 1:15
BryanFazekas22-Oct-19 1:15 
GeneralRe: Long Lines PinPopular
Ravi Bhavnani21-Oct-19 5:47
professionalRavi Bhavnani21-Oct-19 5:47 
PraiseRe: Long Lines Pin
PeejayAdams21-Oct-19 23:17
PeejayAdams21-Oct-19 23:17 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 5:52
professional  Forogar  21-Oct-19 5:52 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 7:01
mvePIEBALDconsult21-Oct-19 7:01 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 7:40
professional  Forogar  21-Oct-19 7:40 
AnswerRe: Long Lines Pin
ZurdoDev21-Oct-19 5:58
professionalZurdoDev21-Oct-19 5:58 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:19
PeejayAdams21-Oct-19 23:19 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 6:10
mvePIEBALDconsult21-Oct-19 6:10 
GeneralRe: Long Lines Pin
Gary Wheeler22-Oct-19 2:10
Gary Wheeler22-Oct-19 2:10 
GeneralRe: Long Lines Pin
Kevin Marois21-Oct-19 6:16
professionalKevin Marois21-Oct-19 6:16 
GeneralRe: Long Lines Pin
Marc Clifton21-Oct-19 9:35
mvaMarc Clifton21-Oct-19 9:35 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:22
PeejayAdams21-Oct-19 23:22 
GeneralRe: Long Lines Pin
PIEBALDconsult22-Oct-19 2:57
mvePIEBALDconsult22-Oct-19 2:57 
GeneralRe: Long Lines Pin
Member 916705721-Oct-19 20:52
Member 916705721-Oct-19 20: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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   487 votes