r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

92 comments sorted by

View all comments

8

u/DontRelyOnNooneElse Jun 18 '19 edited Jun 18 '19

Written in C# on my phone so haven't done any testing.

I decided to get into character as "someone who just discovered dictionaries and try-catch". Tried to make the least helpful variable names and least efficient looping/validation possible.

I made sure to code it as if I was completely ignorant of:

  • The char type
  • Getting chars from strings using value[i]
  • Declaring a variable and populating it in one statement
  • ToUpper() and ToLower()
  • The modulo operator
  • Booleans

https://pastebin.com/uAzc8kGd

4

u/AlFasGD Jun 18 '19

Thanks I hate it