Click here to Skip to main content
14,367,980 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 14:02
membercharlieg21-Oct-19 14:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Dean Roddey20-Oct-19 5:05
memberDean Roddey20-Oct-19 5:05 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
RickZeeland20-Oct-19 5:47
mveRickZeeland20-Oct-19 5:47 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:41
professionalSander Rossel20-Oct-19 10:41 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
BillWoodruff20-Oct-19 6:06
mveBillWoodruff20-Oct-19 6:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
0x01AA20-Oct-19 6:58
professional0x01AA20-Oct-19 6:58 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Kelly Herald21-Oct-19 7:02
memberKelly Herald21-Oct-19 7:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
lopatir20-Oct-19 7:04
memberlopatir20-Oct-19 7: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 10:24
professionalSander Rossel20-Oct-19 10:24 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
the goat in your machine20-Oct-19 20:02
memberthe goat in your machine20-Oct-19 20:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 7:14
mveEddy Vluggen20-Oct-19 7:14 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 9:02
professionalGreg Utas20-Oct-19 9:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 9:06
mveEddy Vluggen20-Oct-19 9:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 10:33
professionalGreg Utas20-Oct-19 10:33 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 10:42
mveEddy Vluggen20-Oct-19 10:42 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 12:16
professionalSander Rossel20-Oct-19 12:16 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 12:52
mveEddy Vluggen20-Oct-19 12:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:36
professionalSander Rossel20-Oct-19 10:36 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 10:52
mveEddy Vluggen20-Oct-19 10:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:08
professionalSander Rossel20-Oct-19 11:08 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 11:21
mveEddy Vluggen20-Oct-19 11:21 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:39
professionalSander Rossel20-Oct-19 11:39 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 12:03
mveEddy Vluggen20-Oct-19 12:03 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 12:14
professionalSander Rossel20-Oct-19 12:14 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 12:41
mveEddy Vluggen20-Oct-19 12: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.