Why is Minecraft bad?

I always hear about how Minecraft is not coded very well, but no one ever really explains why that is. What did he do poorly from a coding perspective? And did poor coding have an impact on the performance of the game that the average person would notice? I’ve never really played the game before, maybe only about 20 minutes in my life, but since it’s in java I have an interest in the development.