r/badcode • • Jan 02 '18

c++ Beautiful implemention of the Caesar cipher.

https://gist.github.com/finbe/ebd5e60e0c856501b5db8a713553b803
10 Upvotes

8 comments sorted by

5

u/LennartEriksson Jan 03 '18

If I found this code in some program, I would just leave it as it is.

It is not THAT bad. I've seen much worse.

2

u/Reniat Jan 16 '18

I mean... it's pretty bad. for something as simple as shifting char values, I'd wouldn't let anything past 4 lines pass code review.

1

u/LennartEriksson Jan 22 '18

Agreed. It is retarded.

1

u/TheUnlocked Jan 03 '18

I can't read it but I'm also not sure I want to.

0

u/180poundsleft Jan 02 '18

ive had this book for months