Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A few days ago there was a discussion about spaghetti code, and in the comments other flavors of pasta were discussed. One of them was ravioli.

This is a prime example of what "ravioli code" looks like.

It's probably as easy to read goto spaghetti as it is to try to decipher whatever this class does.



What's so hard to understand? It's a convenient superclass for FactoryBean types that produce singleton-scoped proxy objects. If you understand the basics of Spring and how Spring does AOP, then this isn't difficult to understand at all.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: