Click here to Skip to main content
14,207,083 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
Generallet, var, val - Swift, Kotlin, JavaScript Pin
raddevus12-Jun-19 11:02
mvaraddevus12-Jun-19 11:02 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Eddy Vluggen12-Jun-19 11:37
mveEddy Vluggen12-Jun-19 11:37 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus12-Jun-19 12:05
mvaraddevus12-Jun-19 12:05 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Eddy Vluggen12-Jun-19 12:15
mveEddy Vluggen12-Jun-19 12:15 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8812-Jun-19 22:30
professionalden2k8812-Jun-19 22:30 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:51
mvaraddevus13-Jun-19 1:51 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 916705712-Jun-19 20:37
memberMember 916705712-Jun-19 20:37 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Richard Deeming12-Jun-19 23:25
mveRichard Deeming12-Jun-19 23:25 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
obermd13-Jun-19 4:10
memberobermd13-Jun-19 4:10 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:42
mvaraddevus13-Jun-19 1:42 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 798912213-Jun-19 6:44
memberMember 798912213-Jun-19 6:44 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Sander Rossel12-Jun-19 22:05
professionalSander Rossel12-Jun-19 22:05 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:44
mvaraddevus13-Jun-19 1:44 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8812-Jun-19 22:28
professionalden2k8812-Jun-19 22:28 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Richard Deeming12-Jun-19 23:34
mveRichard Deeming12-Jun-19 23:34 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8812-Jun-19 23:41
professionalden2k8812-Jun-19 23:41 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:46
mvaraddevus13-Jun-19 1:46 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
MSBassSinger13-Jun-19 5:23
professionalMSBassSinger13-Jun-19 5:23 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Rick York13-Jun-19 10:26
mveRick York13-Jun-19 10:26 
GeneralMust-Have NuGet Constants Packages Pin
David A. Gray7-Jun-19 20:56
groupDavid A. Gray7-Jun-19 20:56 
GeneralKill it with fire #2 - or fml Pin
charlieg31-May-19 12:04
membercharlieg31-May-19 12:04 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 15:11
professionalDavid O'Neil31-May-19 15:11 
GeneralRe: Kill it with fire #2 - or fml Pin
Gary R. Wheeler31-May-19 16:38
memberGary R. Wheeler31-May-19 16:38 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 17:34
professionalDavid O'Neil31-May-19 17:34 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg1-Jun-19 3:22
membercharlieg1-Jun-19 3:22 
not that I'm really arguing, but it looks like your code base between example 1 and 2 have the same level of complexity. And why use a goto to leave the loop when a break would work just fine? Maybe it's just the example.

My point in the original is that I have try/catch pairs all through the code, and nothing is done in the catch. No logging, no recovery, no ASSERTS, I mean nothing. If you're not going to handle the exception, just remove the try and let it crater Smile | :)
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...

"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

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.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190612.1 | Last Updated 15 Jun 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid