Click here to Skip to main content
15,880,392 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
RickZeeland28-Nov-21 7:54
mveRickZeeland28-Nov-21 7:54 
GeneralRe: .Net Core 6 jumps the shark Pin
raddevus28-Nov-21 11:41
mvaraddevus28-Nov-21 11:41 
GeneralRe: .Net Core 6 jumps the shark Pin
Super Lloyd28-Nov-21 20:12
Super Lloyd28-Nov-21 20:12 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming28-Nov-21 21:52
mveRichard Deeming28-Nov-21 21:52 
GeneralRe: .Net Core 6 jumps the shark Pin
Eusebiu Marcu28-Nov-21 20:58
Eusebiu Marcu28-Nov-21 20:58 
GeneralRe: .Net Core 6 jumps the shark Pin
den2k8829-Nov-21 0:01
professionalden2k8829-Nov-21 0:01 
GeneralRe: .Net Core 6 jumps the shark Pin
Member 916705729-Nov-21 1:14
Member 916705729-Nov-21 1:14 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger29-Nov-21 4:25
professionalMSBassSinger29-Nov-21 4:25 
There are a number of shorthand changes (but little innovation) that have been made to C# over the years that are of limited or questionable value. It is a good idea to test out these shorthand C# changes, then look at what the compiler does with them by looking at the generated MSIL. As one example, having done that, it is why I no longer use "using" for IDisposable objects.

If you like a particular shortcut, use it. But my advice is to at least know what the compiler does with it. In the case of the OP, just make your own Main() and go with it.
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 13:37
professionalJon McKee4-Dec-21 13:37 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger4-Dec-21 13:56
professionalMSBassSinger4-Dec-21 13:56 
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 14:21
professionalJon McKee4-Dec-21 14:21 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger4-Dec-21 15:00
professionalMSBassSinger4-Dec-21 15:00 
GeneralRe: .Net Core 6 jumps the shark Pin
Jon McKee4-Dec-21 16:12
professionalJon McKee4-Dec-21 16:12 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming5-Dec-21 22:00
mveRichard Deeming5-Dec-21 22:00 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger7-Dec-21 8:53
professionalMSBassSinger7-Dec-21 8:53 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming7-Dec-21 22:10
mveRichard Deeming7-Dec-21 22:10 
GeneralRe: .Net Core 6 jumps the shark Pin
MSBassSinger8-Dec-21 5:17
professionalMSBassSinger8-Dec-21 5:17 
GeneralRe: .Net Core 6 jumps the shark Pin
Richard Deeming8-Dec-21 6:18
mveRichard Deeming8-Dec-21 6:18 
GeneralRe: .Net Core 6 jumps the shark Pin
PIEBALDconsult11-Dec-21 8:50
mvePIEBALDconsult11-Dec-21 8:50 
GeneralRe: .Net Core 6 jumps the shark Pin
zezba900029-Nov-21 9:35
zezba900029-Nov-21 9:35 
GeneralRe: .Net Core 6 jumps the shark Pin
PIEBALDconsult11-Dec-21 8:42
mvePIEBALDconsult11-Dec-21 8:42 
GeneralWhat the heck are they teaching philosophers in Florida? Pin
honey the codewitch28-Nov-21 5:54
mvahoney the codewitch28-Nov-21 5:54 
GeneralRe: What the heck are they teaching philosophers in Florida? Pin
trønderen28-Nov-21 6:04
trønderen28-Nov-21 6:04 
GeneralRe: What the heck are they teaching philosophers in Florida? Pin
honey the codewitch28-Nov-21 6:05
mvahoney the codewitch28-Nov-21 6:05 
GeneralRe: What the heck are they teaching philosophers in Florida? Pin
honey the codewitch28-Nov-21 6:08
mvahoney the codewitch28-Nov-21 6:08 

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.