The Daily WTF
Bogdan Olteanu picked up a simple-sounding bug. There was a drop-down list in the application which was missing a few entries. Since this section of the app wasn’t data-driven, that meant someone messed up when hard-coding the entries into the dropdown.
Bogdan was correct. Someone messed up, alright.
Destinatii = new List<Destinatii>(4); for (int i = 0; i < Destinatii.Capacity; i++) { switch (i) { case 0: Destinatii.Add(new Destinatii { code = “ANGAJARE”, description = “ANGAJARE” }); break; case 1: Destinatii.Add(new Destinatii { code = “INSCRIERE”, description = “ÎNSCRIERE” }); break; case 2: Destinatii.Add(new Destinatii { code = “EXAMEN AUTO”, description = “EXAMEN AUTO” }); break; case 3: Destinatii.Add(new Destinatii { code = “SOMAJ”, description = “SOMAJ” }); break; case 4: Destinatii.Add(new Destinatii { code = “AJUTOR SOCIAL”, description = “AJUTOR SOCIAL” }); break; case 5: Destinatii.Add(new Destinatii { code = “TRATAMENT”, description = “TRATAMENT” }); break; case 6: Destinatii.Add(new
To read the full article click on the 'post' link at the top.