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

 
RantGetAssemblyVersion, VB style Pin
Saša Ćetković27-Jun-22 4:03
professionalSaša Ćetković27-Jun-22 4:03 
GeneralRe: GetAssemblyVersion, VB style Pin
Southmountain1-Jul-22 13:55
MemberSouthmountain1-Jul-22 13:55 
GeneralRe: GetAssemblyVersion, VB style Pin
Saša Ćetković2-Jul-22 5:07
professionalSaša Ćetković2-Jul-22 5:07 
GeneralRe: GetAssemblyVersion, VB style Pin
Southmountain2-Jul-22 11:47
MemberSouthmountain2-Jul-22 11:47 
GeneralRe: GetAssemblyVersion, VB style Pin
dan!sh 20-Jul-22 0:32
professional dan!sh 20-Jul-22 0:32 
GeneralRe: GetAssemblyVersion, VB style Pin
Saša Ćetković21-Jul-22 22:18
professionalSaša Ćetković21-Jul-22 22:18 
GeneralRe: GetAssemblyVersion, VB style Pin
obermd1-Sep-22 5:24
Memberobermd1-Sep-22 5:24 
GeneralRe: GetAssemblyVersion, VB style Pin
englebart1-Sep-22 15:12
professionalenglebart1-Sep-22 15:12 
There is some code that builds a dynamic Class name to load a different class as needed.

The are multiple other places where this code was copied, but there is only a single, fixed class that is needed.

Replace 10-20 lines of unnecessary code with

“new Fixed()”

General"This is a rare event" Pin
Marc Clifton7-May-22 9:33
mvaMarc Clifton7-May-22 9:33 
GeneralRe: "This is a rare event" Pin
Slacker00710-May-22 11:04
professionalSlacker00710-May-22 11:04 
GeneralRe: "This is a rare event" Pin
jsc4211-May-22 1:17
professionaljsc4211-May-22 1:17 
GeneralRe: "This is a rare event" Pin
MarkTJohnson11-May-22 4:23
professionalMarkTJohnson11-May-22 4:23 
GeneralRe: "This is a rare event" Pin
PIEBALDconsult14-May-22 15:20
professionalPIEBALDconsult14-May-22 15:20 
GeneralRe: "This is a rare event" Pin
PIEBALDconsult14-May-22 15:24
professionalPIEBALDconsult14-May-22 15:24 
GeneralRe: "This is a rare event" Pin
Marc Clifton15-May-22 8:04
mvaMarc Clifton15-May-22 8:04 
GeneralRe: "This is a rare event" Pin
Jörgen Andersson18-May-22 0:52
professionalJörgen Andersson18-May-22 0:52 
GeneralRe: "This is a rare event" Pin
Craig Robbins27-Jun-22 15:01
MemberCraig Robbins27-Jun-22 15:01 
GeneralRe: "This is a rare event" Pin
PIEBALDconsult27-Jun-22 15:41
professionalPIEBALDconsult27-Jun-22 15:41 
GeneralRe: "This is a rare event" Pin
Duncan Edwards Jones16-May-22 8:05
professionalDuncan Edwards Jones16-May-22 8:05 
GeneralRe: "This is a rare event" Pin
pkfox30-Jun-22 23:36
professionalpkfox30-Jun-22 23:36 
GeneralRe: "This is a rare event" Pin
Member 150787164-Jul-22 18:10
MemberMember 150787164-Jul-22 18:10 
GeneralRe: "This is a rare event" Pin
Ron Anders21-Jul-22 6:56
MemberRon Anders21-Jul-22 6:56 
GeneralTell me what's wrong with the following Pin
Gary R. Wheeler4-May-22 6:35
MemberGary R. Wheeler4-May-22 6:35 
GeneralRe: Tell me what's wrong with the following Pin
Greg Utas4-May-22 7:42
mveGreg Utas4-May-22 7:42 
GeneralRe: Tell me what's wrong with the following Pin
Gary R. Wheeler4-May-22 7:53
MemberGary R. Wheeler4-May-22 7:53 

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.