Click here to Skip to main content
15,867,568 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: 25 years of programming reduced to a question. Pin
Martin ISDN24-Sep-20 2:45
Martin ISDN24-Sep-20 2:45 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 6:42
professionalJeremy Falcon24-Sep-20 6:42 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 5:55
mvaraddevus23-Sep-20 5:55 
GeneralRe: 25 years of programming reduced to a question. Pin
OriginalGriff23-Sep-20 6:25
mveOriginalGriff23-Sep-20 6:25 
GeneralRe: 25 years of programming reduced to a question. Pin
raddevus23-Sep-20 7:19
mvaraddevus23-Sep-20 7:19 
GeneralRe: 25 years of programming reduced to a question. Pin
rnbergren23-Sep-20 2:58
rnbergren23-Sep-20 2:58 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:07
professionalJeremy Falcon23-Sep-20 3:07 
GeneralRe: 25 years of programming reduced to a question. Pin
Fueled By Decaff23-Sep-20 4:52
Fueled By Decaff23-Sep-20 4:52 
There is an old trick from days when memory sizes were counted in bytes. (No I did not figure it out and had to be taught it.)

Use three exclusive or operations. This will avoid the overflow issue of using add and subtract.

For example:

a = 15
b = 5
a = a^b
b = b^a
a = a^b

GeneralRe: 25 years of programming reduced to a question. Pin
jsc4223-Sep-20 10:47
professionaljsc4223-Sep-20 10:47 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 11:09
professionalJeremy Falcon23-Sep-20 11:09 
GeneralRe: 25 years of programming reduced to a question. Pin
Gary R. Wheeler23-Sep-20 12:21
Gary R. Wheeler23-Sep-20 12:21 
GeneralRe: 25 years of programming reduced to a question. Pin
David Crow23-Sep-20 3:07
David Crow23-Sep-20 3:07 
GeneralRe: 25 years of programming reduced to a question. Pin
Kornfeld Eliyahu Peter23-Sep-20 3:39
professionalKornfeld Eliyahu Peter23-Sep-20 3:39 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:46
professionalJeremy Falcon23-Sep-20 3:46 
GeneralRe: 25 years of programming reduced to a question. Pin
5teveH23-Sep-20 3:41
5teveH23-Sep-20 3:41 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:49
professionalJeremy Falcon23-Sep-20 3:49 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 3:55
professionalJeremy Falcon23-Sep-20 3:55 
GeneralRe: 25 years of programming reduced to a question. Pin
Sandeep Mewara23-Sep-20 4:34
mveSandeep Mewara23-Sep-20 4:34 
GeneralRe: 25 years of programming reduced to a question. Pin
F-ES Sitecore23-Sep-20 4:39
professionalF-ES Sitecore23-Sep-20 4:39 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 4:43
professionalJeremy Falcon23-Sep-20 4:43 
GeneralRe: 25 years of programming reduced to a question. Pin
jsc4223-Sep-20 10:51
professionaljsc4223-Sep-20 10:51 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 10:56
professionalJeremy Falcon23-Sep-20 10:56 
GeneralRe: 25 years of programming reduced to a question. Pin
Marc Clifton23-Sep-20 4:41
mvaMarc Clifton23-Sep-20 4:41 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 4:45
professionalJeremy Falcon23-Sep-20 4:45 
GeneralRe: 25 years of programming reduced to a question. Pin
peterkmx23-Sep-20 4:53
professionalpeterkmx23-Sep-20 4:53 

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.