Click here to Skip to main content
15,501,065 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.

 
GeneralRe: .Net Core 6 jumps the shark Pin
raddevus28-Nov-21 7:50
mvaraddevus28-Nov-21 7:50 
GeneralRe: .Net Core 6 jumps the shark Pin
RickZeeland28-Nov-21 8:54
mveRickZeeland28-Nov-21 8:54 
GeneralRe: .Net Core 6 jumps the shark Pin
raddevus28-Nov-21 12:41
mvaraddevus28-Nov-21 12:41 
GeneralRe: .Net Core 6 jumps the shark Pin
Super Lloyd28-Nov-21 21:12
MemberSuper Lloyd28-Nov-21 21:12 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming28-Nov-21 22:52
mveRichard Deeming28-Nov-21 22:52 
GeneralRe: .Net Core 6 jumps the shark Pin
Eusebiu Marcu28-Nov-21 21:58
MemberEusebiu Marcu28-Nov-21 21:58 
GeneralRe: .Net Core 6 jumps the shark Pin
den2k8829-Nov-21 1:01
professionalden2k8829-Nov-21 1:01 
GeneralRe: .Net Core 6 jumps the shark Pin
Member 916705729-Nov-21 2:14
MemberMember 916705729-Nov-21 2:14 
That's a simple continuation of the "pay for play" philosophy. While the unavailability of the Main function is a thing I really hate about Python (how the hell am I supposed to know where complex code starts operating), it's absence is a huge win for small code bases.

Don't get me wrong, for a kLoC of code, spread across 4 or so different modules, the lack of structure which this particular C# template brings to the table would be a bloody nightmare (which is why I'm not using this style for my kLoC-multimodule project). But for something of only mild complexity, that's a win.

Boilerplate code, like any other overhead, starts paying off eventually, but if you have something not nearly huge enough for that overhead to pay off, low-overhead alternatives rule.

Take file system as an example. NTFS (or ext, if you're so inclined) is by orders of magnitude more advanced, than FAT. Yet, FAT (be it FAT32 or exFAT) got it's own raison d'etre, which is low-requirements-low-overhead.

PS: that part that you highlighted, namely local functions, is older, than .NET 6. They started with C# 7.0 which started it's life with .NET 4*x.
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger29-Nov-21 5:25
professionalMSBassSinger29-Nov-21 5:25 
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 14:37
professionalJon McKee4-Dec-21 14:37 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger4-Dec-21 14:56
professionalMSBassSinger4-Dec-21 14:56 
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 15:21
professionalJon McKee4-Dec-21 15:21 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger4-Dec-21 16:00
professionalMSBassSinger4-Dec-21 16:00 
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 17:12
professionalJon McKee4-Dec-21 17:12 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming5-Dec-21 23:00
mveRichard Deeming5-Dec-21 23:00 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger7-Dec-21 9:53
professionalMSBassSinger7-Dec-21 9:53 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming7-Dec-21 23:10
mveRichard Deeming7-Dec-21 23:10 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger8-Dec-21 6:17
professionalMSBassSinger8-Dec-21 6:17 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming8-Dec-21 7:18
mveRichard Deeming8-Dec-21 7:18 
GeneralRe: .Net Core 6 jumps the shark Pin
PIEBALDconsult11-Dec-21 9:50
professionalPIEBALDconsult11-Dec-21 9:50 
GeneralRe: .Net Core 6 jumps the shark Pin
zezba900029-Nov-21 10:35
Memberzezba900029-Nov-21 10:35 
GeneralRe: .Net Core 6 jumps the shark Pin
PIEBALDconsult11-Dec-21 9:42
professionalPIEBALDconsult11-Dec-21 9:42 
GeneralWhat the heck are they teaching philosophers in Florida? Pin
honey the codewitch28-Nov-21 6:54
mvahoney the codewitch28-Nov-21 6:54 
GeneralRe: What the heck are they teaching philosophers in Florida? Pin
trønderen28-Nov-21 7:04
Membertrønderen28-Nov-21 7:04 
GeneralRe: What the heck are they teaching philosophers in Florida? Pin
honey the codewitch28-Nov-21 7:05
mvahoney the codewitch28-Nov-21 7:05 

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.