Click here to Skip to main content
15,917,005 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: From the Museum of Ugly Code Pin
charlieg6-Nov-18 3:56
charlieg6-Nov-18 3:56 
GeneralRe: From the Museum of Ugly Code Pin
raddevus6-Nov-18 4:18
mvaraddevus6-Nov-18 4:18 
GeneralRe: From the Museum of Ugly Code Pin
boarderstu6-Nov-18 22:38
boarderstu6-Nov-18 22:38 
GeneralRe: From the Museum of Ugly Code Pin
DerekT-P6-Nov-18 23:22
professionalDerekT-P6-Nov-18 23:22 
GeneralRe: From the Museum of Ugly Code Pin
boarderstu6-Nov-18 23:30
boarderstu6-Nov-18 23:30 
GeneralRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 1:57
mvaraddevus7-Nov-18 1:57 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:16
TheGreatAndPowerfulOz6-Nov-18 5:16 
GeneralRe: From the Museum of Ugly Code Pin
den2k886-Nov-18 5:25
professionalden2k886-Nov-18 5:25 
charlieg wrote:

despise assignments in conditionals and that was a simple example.

Yes yes yes.

Also scoped variables are cool but... they still end up on the stack. There is really no need to use them, apart from making the code more difficult to read and to maintain.

And: kids, always initialize your variables. If you are absolutely, positively sure that the variable in question will never be read before being written on and that the data written on it are always meaningful then at least state it in a comment.
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 6:25
TheGreatAndPowerfulOz6-Nov-18 6:25 
GeneralRe: From the Museum of Ugly Code Pin
den2k886-Nov-18 20:37
professionalden2k886-Nov-18 20:37 
GeneralRe: From the Museum of Ugly Code Pin
boarderstu6-Nov-18 22:40
boarderstu6-Nov-18 22:40 
GeneralRe: From the Museum of Ugly Code Pin
den2k887-Nov-18 0:24
professionalden2k887-Nov-18 0:24 
GeneralRe: From the Museum of Ugly Code Pin
boarderstu7-Nov-18 0:24
boarderstu7-Nov-18 0:24 
GeneralRe: From the Museum of Ugly Code Pin
BillW336-Nov-18 3:49
professionalBillW336-Nov-18 3:49 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:09
TheGreatAndPowerfulOz6-Nov-18 5:09 
GeneralRe: From the Museum of Ugly Code Pin
Stryder_16-Nov-18 4:15
Stryder_16-Nov-18 4:15 
GeneralRe: From the Museum of Ugly Code Pin
raddevus6-Nov-18 4:22
mvaraddevus6-Nov-18 4:22 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:11
TheGreatAndPowerfulOz6-Nov-18 5:11 
GeneralRe: From the Museum of Ugly Code Pin
Richard Deeming6-Nov-18 4:32
mveRichard Deeming6-Nov-18 4:32 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:06
TheGreatAndPowerfulOz6-Nov-18 5:06 
GeneralRe: From the Museum of Ugly Code Pin
charlieg6-Nov-18 9:17
charlieg6-Nov-18 9:17 
GeneralRe: From the Museum of Ugly Code Pin
raddevus6-Nov-18 10:47
mvaraddevus6-Nov-18 10:47 
GeneralRe: From the Museum of Ugly Code Pin
Member 91670576-Nov-18 21:09
Member 91670576-Nov-18 21:09 
GeneralRe: From the Museum of Ugly Code Pin
Tomz_KV7-Nov-18 3:41
Tomz_KV7-Nov-18 3:41 
GeneralRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 3:58
mvaraddevus7-Nov-18 3:58 

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.