Click here to Skip to main content
15,913,090 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.

 
GeneralAll Beyond Fixing PinPopular
W Balboos, GHB29-May-18 7:38
W Balboos, GHB29-May-18 7:38 
GeneralRe: All Beyond Fixing Pin
Randor 29-May-18 9:44
professional Randor 29-May-18 9:44 
QuestionDumbing down code so it can be maintained by junior devs Pin
Marc Clifton29-May-18 6:38
mvaMarc Clifton29-May-18 6:38 
AnswerRe: Dumbing down code so it can be maintained by junior devs Pin
Slacker00729-May-18 6:45
professionalSlacker00729-May-18 6:45 
AnswerRe: Dumbing down code so it can be maintained by junior devs Pin
CHill6029-May-18 7:04
mveCHill6029-May-18 7:04 
AnswerRe: Dumbing down code so it can be maintained by junior devs Pin
Maximilien29-May-18 7:10
Maximilien29-May-18 7:10 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Marc Clifton29-May-18 7:23
mvaMarc Clifton29-May-18 7:23 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Richard Deeming30-May-18 10:34
mveRichard Deeming30-May-18 10:34 
Marc Clifton wrote:
But I didn't know (and nothing comes up in google) that a ^ is what you use to index from the end of the array.

The future of C# : Build 2018 - YouTube[^] - coverage of "ranges" starts at 55 minutes.

Apparently, using negative numbers was ruled out in a language design meeting:
If we use negative numbers, we could make it work for ranges in cases like a[1..-1]. However, we would not be able to make a[-1] work since it already has a meaning in the language. In fact, it would be a pretty a scary breaking change to try and introduce that since it would no longer throw a runtime exception and would instead start returning unexpected values.




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

AnswerRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov29-May-18 7:14
R. Giskard Reventlov29-May-18 7:14 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
DerekT-P29-May-18 21:36
professionalDerekT-P29-May-18 21:36 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov30-May-18 4:44
R. Giskard Reventlov30-May-18 4:44 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
sdedalus30-May-18 6:47
professionalsdedalus30-May-18 6:47 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Peter Shaw29-May-18 23:15
professionalPeter Shaw29-May-18 23:15 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Jim_Snyder30-May-18 5:59
professionalJim_Snyder30-May-18 5:59 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt30-May-18 0:46
Munchies_Matt30-May-18 0:46 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov30-May-18 4:45
R. Giskard Reventlov30-May-18 4:45 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt30-May-18 5:05
Munchies_Matt30-May-18 5:05 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov30-May-18 5:13
R. Giskard Reventlov30-May-18 5:13 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt30-May-18 5:30
Munchies_Matt30-May-18 5:30 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov30-May-18 7:18
R. Giskard Reventlov30-May-18 7:18 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt30-May-18 19:00
Munchies_Matt30-May-18 19:00 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov31-May-18 21:50
R. Giskard Reventlov31-May-18 21:50 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt31-May-18 21:54
Munchies_Matt31-May-18 21:54 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
R. Giskard Reventlov31-May-18 22:40
R. Giskard Reventlov31-May-18 22:40 
GeneralRe: Dumbing down code so it can be maintained by junior devs Pin
Munchies_Matt31-May-18 22:43
Munchies_Matt31-May-18 22:43 

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.