Click here to Skip to main content
15,887,485 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: Interview tests Pin
honey the codewitch20-Oct-23 8:29
mvahoney the codewitch20-Oct-23 8:29 
GeneralRe: Interview tests Pin
jschell20-Oct-23 11:19
jschell20-Oct-23 11:19 
GeneralRe: Interview tests Pin
honey the codewitch20-Oct-23 11:36
mvahoney the codewitch20-Oct-23 11:36 
GeneralRe: Interview tests Pin
jschell20-Oct-23 12:02
jschell20-Oct-23 12:02 
GeneralRe: Interview tests Pin
honey the codewitch20-Oct-23 13:19
mvahoney the codewitch20-Oct-23 13:19 
GeneralRe: Interview tests Pin
Sander Rossel19-Oct-23 23:55
professionalSander Rossel19-Oct-23 23:55 
GeneralRe: Interview tests Pin
jschell20-Oct-23 11:21
jschell20-Oct-23 11:21 
GeneralRe: Interview tests Pin
englebart21-Oct-23 8:46
professionalenglebart21-Oct-23 8:46 
Failure to understand some basics really bites later… usually in production.

e.g
A validation of a list to detect duplicates.
Duplicates must match on eight unique fields.
Retrieval of some of the fields make a trip to the database.
First implementation consists of three nested loops; full loops with no shortening. Works great in test with 40 items.

Hits production with 500 items and takes minutes to complete. This is an interactive function with a user waiting for a response.

Final solution:
Make one pass through the list to build/combine the comparison fields once.

Then 2 nested loops, but the inner loop is adjusted based on the outer loop.
(if you already compared index 5 to index 23, you do NOT need to compare index 23 to index 5, and you really do NOT need to make the comparison six times like the original algorithm.

This is basic programming!

GeneralYou're already completed Pin
adriancs19-Oct-23 4:06
mvaadriancs19-Oct-23 4:06 
GeneralRe: You're already completed Pin
jschell19-Oct-23 5:13
jschell19-Oct-23 5:13 
GeneralRe: You're already completed Pin
Eddy Vluggen19-Oct-23 5:37
professionalEddy Vluggen19-Oct-23 5:37 
GeneralRe: You're already completed Pin
dandy7219-Oct-23 9:05
dandy7219-Oct-23 9:05 
GeneralRe: You're already completed Pin
adriancs19-Oct-23 16:40
mvaadriancs19-Oct-23 16:40 
GeneralRe: You're already completed Pin
Amarnath S19-Oct-23 5:44
professionalAmarnath S19-Oct-23 5:44 
GeneralRe: You're already completed Pin
Mike Hankey19-Oct-23 5:51
mveMike Hankey19-Oct-23 5:51 
GeneralRe: You're already completed Pin
Amarnath S19-Oct-23 6:35
professionalAmarnath S19-Oct-23 6:35 
GeneralRe: You're already completed Pin
PIEBALDconsult19-Oct-23 7:43
mvePIEBALDconsult19-Oct-23 7:43 
GeneralRe: You're already completed Pin
adriancs19-Oct-23 16:34
mvaadriancs19-Oct-23 16:34 
GeneralRe: You're already completed Pin
theoldfool19-Oct-23 8:03
professionaltheoldfool19-Oct-23 8:03 
GeneralI was sent this PinPopular
honey the codewitch19-Oct-23 3:16
mvahoney the codewitch19-Oct-23 3:16 
GeneralRe: I was sent this Pin
Marc Clifton19-Oct-23 5:25
mvaMarc Clifton19-Oct-23 5:25 
GeneralRe: I was sent this Pin
jmaida19-Oct-23 15:49
jmaida19-Oct-23 15:49 
GeneralRe: I was sent this Pin
CodeZombie6220-Oct-23 1:08
CodeZombie6220-Oct-23 1:08 
GeneralCCC 19-10-2023 Pin
pkfox18-Oct-23 21:30
professionalpkfox18-Oct-23 21:30 
GeneralRe: CCC 19-10-2023 Pin
OriginalGriff18-Oct-23 21:41
mveOriginalGriff18-Oct-23 21: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.