Click here to Skip to main content
15,896,915 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: Be careful what you wish for Pin
musefan5-Dec-19 21:42
musefan5-Dec-19 21:42 
GeneralWhat's one of your least favorite repeated patterns to code? Pin
honey the codewitch5-Dec-19 15:25
mvahoney the codewitch5-Dec-19 15:25 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
Super Lloyd5-Dec-19 16:42
Super Lloyd5-Dec-19 16:42 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
honey the codewitch5-Dec-19 16:53
mvahoney the codewitch5-Dec-19 16:53 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
Super Lloyd5-Dec-19 17:04
Super Lloyd5-Dec-19 17:04 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
honey the codewitch6-Dec-19 4:14
mvahoney the codewitch6-Dec-19 4:14 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
harold aptroot5-Dec-19 22:20
harold aptroot5-Dec-19 22:20 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
honey the codewitch6-Dec-19 4:07
mvahoney the codewitch6-Dec-19 4:07 
To me modulo is a so second nature that I don't find it confusing it all.

When I see it, I automatically think - this is probably a bounding value for the target it is modifying.

For example:

C#
return _array[i % _array.Length];


That tells me that i's value is wrapped to the array's length.

It's instinct to me. What's less clear is when people use if to accomplish the same thing, IMO.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: What's one of your least favorite repeated patterns to code? Pin
harold aptroot6-Dec-19 6:47
harold aptroot6-Dec-19 6:47 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
honey the codewitch6-Dec-19 12:05
mvahoney the codewitch6-Dec-19 12:05 
GeneralRe: What's one of your least favorite repeated patterns to code? Pin
Sander Rossel5-Dec-19 22:40
professionalSander Rossel5-Dec-19 22:40 
GeneralWhen there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk5-Dec-19 13:00
RedDk5-Dec-19 13:00 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen5-Dec-19 13:49
professionalEddy Vluggen5-Dec-19 13:49 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk5-Dec-19 14:33
RedDk5-Dec-19 14:33 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
BillWoodruff5-Dec-19 16:57
professionalBillWoodruff5-Dec-19 16:57 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen6-Dec-19 0:16
professionalEddy Vluggen6-Dec-19 0:16 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk6-Dec-19 8:07
RedDk6-Dec-19 8:07 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen6-Dec-19 8:40
professionalEddy Vluggen6-Dec-19 8:40 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk6-Dec-19 9:28
RedDk6-Dec-19 9:28 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen6-Dec-19 9:51
professionalEddy Vluggen6-Dec-19 9:51 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk6-Dec-19 10:04
RedDk6-Dec-19 10:04 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen6-Dec-19 10:15
professionalEddy Vluggen6-Dec-19 10:15 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk6-Dec-19 10:41
RedDk6-Dec-19 10:41 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
Eddy Vluggen6-Dec-19 10:48
professionalEddy Vluggen6-Dec-19 10:48 
GeneralRe: When there's nothing on a monitor, shouldn't it go blank/ black automatically? Pin
RedDk6-Dec-19 10:57
RedDk6-Dec-19 10:57 

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.