Hacker News new | ask | show | jobs
by sharemywin 1810 days ago
I think it's hard to have reusable code the longer it is. So, I feel your pain on breaking it into really small parts but sometimes it might be necessary for re-usability.

for me it's initializers. we do a lot of transforms for integrations. so we have to convert from one object model to another. And we use alot of object initializers. sometimes object initializers inside other initializers. usually embedded in some kind of lambda expression. it looks cool. but the debugger won't let you step into an individual field. so good luck figuring out which line of code is broke.

1 comments

Thank you, sharemywin!

> for me it's initializers.

Me, too. Initializers or constructors are often hierarchical.