DEV Community

Discussion on: What is your tale of lasagna code? (Code with too many layers)

Collapse
 
solarliner profile image
🇨🇵️ Nathan Graule

I'm building a personal project as a mean to get something from zero to production for learning purpose, and I am struggling with wiring the front-end with the back. Either I dump all the code in the fetch callback or I use DTOs, two sets of interfaces to describe API data structure and internal data structure... It's a mess really, but I haven't found a good level of compromise.