Click here to Skip to main content
15,904,822 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: Why you shouldn't inherit someone else's code... Pin
charlieg21-Oct-19 13:02
charlieg21-Oct-19 13:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Dean Roddey20-Oct-19 4:05
Dean Roddey20-Oct-19 4:05 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
RickZeeland20-Oct-19 4:47
mveRickZeeland20-Oct-19 4:47 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 9:41
professionalSander Rossel20-Oct-19 9:41 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
BillWoodruff20-Oct-19 5:06
professionalBillWoodruff20-Oct-19 5:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
User 1106097920-Oct-19 5:58
User 1106097920-Oct-19 5:58 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Kelly Herald21-Oct-19 6:02
Kelly Herald21-Oct-19 6:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
lopatir20-Oct-19 6:04
lopatir20-Oct-19 6:04 
Some smtp systems don't like receiving too many send requests too close together, so you got to spread them out if say sending bulk individualized email.
(if you're relying on your ISP's mail handlers to send they purposely force inter-message delays to avoid spammers - often they'll let 5-10 go but then force you to wait before the next one will be allowed.)

I dealt with such myself for a client, needed to send monthly billing invoices (tens to few hundreds each day). Luckily in my case this ran overnight [batch job] so while I did have to incorporate a single (not loop of) 1/2 second sleep between messages.
Actually I could reduce that down to 1/10th second, but being overnight why ride the edge? I didn't want to push it and get bitten by say network spikes etc - at 1/2 sec worst possible case would be couple of hours.

As to doing it in a loop (not defending it, just saying) - amateurish way to enable easier tuning i.e. "perhaps 9 loops of 450 will still be OK" ... big-wheel-small-wheel tuning. Something like the [old non digital] radios that have 2 tuning knobs: "tuning" & "fine tuning."
Message Signature
(Click to edit ->)

GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 9:24
professionalSander Rossel20-Oct-19 9:24 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
the goat in your machine20-Oct-19 19:02
the goat in your machine20-Oct-19 19:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 6:14
professionalEddy Vluggen20-Oct-19 6:14 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 8:02
professionalGreg Utas20-Oct-19 8:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 8:06
professionalEddy Vluggen20-Oct-19 8:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 9:33
professionalGreg Utas20-Oct-19 9:33 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 9:42
professionalEddy Vluggen20-Oct-19 9:42 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:16
professionalSander Rossel20-Oct-19 11:16 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 11:52
professionalEddy Vluggen20-Oct-19 11:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 9:36
professionalSander Rossel20-Oct-19 9:36 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 9:52
professionalEddy Vluggen20-Oct-19 9:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:08
professionalSander Rossel20-Oct-19 10:08 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 10:21
professionalEddy Vluggen20-Oct-19 10:21 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:39
professionalSander Rossel20-Oct-19 10:39 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 11:03
professionalEddy Vluggen20-Oct-19 11:03 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:14
professionalSander Rossel20-Oct-19 11:14 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 11:41
professionalEddy Vluggen20-Oct-19 11:41 

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.