Click here to Skip to main content
14,303,639 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.

 
GeneralVisual Studio namespace gotcha Pin
Fueled By Caffeine9-Sep-19 4:17
memberFueled By Caffeine9-Sep-19 4:17 
GeneralRe: Visual Studio namespace gotcha Pin
Nathan Minier17-Sep-19 1:20
professionalNathan Minier17-Sep-19 1:20 
GeneralI think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 5:53
memberRob Grainger4-Sep-19 5:53 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
PeejayAdams4-Sep-19 6:07
memberPeejayAdams4-Sep-19 6:07 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 22:50
memberRob Grainger4-Sep-19 22:50 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Greg Utas4-Sep-19 7:20
memberGreg Utas4-Sep-19 7:20 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 22:51
memberRob Grainger4-Sep-19 22:51 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
MarkTJohnson4-Sep-19 8:00
professionalMarkTJohnson4-Sep-19 8:00 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
kmoorevs4-Sep-19 12:06
memberkmoorevs4-Sep-19 12:06 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Bernhard Hiller5-Sep-19 22:41
memberBernhard Hiller5-Sep-19 22:41 
JokeRe: I think my WTF per minute counter just overflowed... Pin
Fueled By Caffeine9-Sep-19 3:22
memberFueled By Caffeine9-Sep-19 3:22 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
#realJSOP9-Sep-19 5:21
mve#realJSOP9-Sep-19 5:21 
GeneralKotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 10:36
mvaraddevus15-Aug-19 10:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Marc Clifton15-Aug-19 11:19
protectorMarc Clifton15-Aug-19 11:19 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 12:29
mvaraddevus15-Aug-19 12:29 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Ryan Peden15-Aug-19 11:32
staffRyan Peden15-Aug-19 11:32 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 12:31
mvaraddevus15-Aug-19 12:31 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Member 798912215-Aug-19 20:43
memberMember 798912215-Aug-19 20:43 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Stuart Dootson15-Aug-19 21:28
professionalStuart Dootson15-Aug-19 21:28 
Member 7989122 wrote:
Subranges are, of course, allowed on any discrete type.

That's something I got used to with Ada that I wish I had in C++ (or any of the other static typed languages I use) - even in languages like Kotlin or Rust, which have first class support for ranges, they're still a run-time entity, not a compile-time thing, so you can't constrain how a function works by a range in the same way... And you can't take sub-ranges of enums either Frown | :-(

Oh, for a dependently typed language?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 1:36
mvaraddevus16-Aug-19 1:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
grumpy_nl15-Aug-19 22:41
membergrumpy_nl15-Aug-19 22:41 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 1:37
mvaraddevus16-Aug-19 1:37 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Richard Deeming16-Aug-19 1:36
mveRichard Deeming16-Aug-19 1:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 1:39
mvaraddevus16-Aug-19 1:39 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
englebart16-Aug-19 2:09
memberenglebart16-Aug-19 2:09 

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.