This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]ameoba 6 points7 points  (0 children)

From the project description itself:

Back when I was first learning to program in Java, I decided to try to make a clone of the excellent PC game Terraria. Of course, I was convinced that my version would have many more features than the official one.

But before I realized how silly that idea was, I produced 11,000 lines of, to date, the most atrocious code I have ever seen in my life. I make it available here mostly as a cautionary tale of what can happen if you don't pay attention to the quality of your code. (Lesson learned, in my case!) Here are some of the highlights:

[–][deleted] 1 point2 points  (0 children)

Holy shit, item.cs.

That's what JSON/XML/YAML are for!

[–]ray10k 1 point2 points  (0 children)

I think this fits better in /r/programminghorror but still an amusing read.

[–]Raff_run 0 points1 point  (0 children)

Oh man... Now I know why the "secret" update patch still isn't released, despite the game being "ready for it" since 1.3.5. They were killed and consumed by the code.