You used to be able to decompile Terraria into perfectly readable code, since its c# and they didnt use an obfuscator. The code base was atrocious, but it is impressive that they got something working, and pretty fun, together as quickly as they did.
These days there are a fair amount of production Unity games out that you can extract full sources for.. Can make for a fun read sometimes.