CodeSOD: Some Original Code
The Daily WTF
MARCH 10, 2024
FreeBSDGuy sends us a VB.Net snippet, which layers on a series of mistakes: If (gLang = "en" ) Then If (item.Text.Equals( "Original" )) Then item.Enabled = False End If ElseIf (gLang = "fr" ) Then If (item.Text.Equals( "Originale" )) Then item.Enabled = False End If Else If (item.Text.Equals( "Original" )) Then item.Enabled = False End If End If The goal of this code is to disable the "original" field, so the user can't edit it.
Let's personalize your content