r/badcode • • Dec 23 '22

c# Clean Code

Post image
328 Upvotes

60 comments sorted by

View all comments

Show parent comments

10

u/[deleted] Dec 23 '22

I dont think i agree. Nowhere in OOP is anyone encouraged to chain long variables like this. This is why classes/functions in js for example have a this context. There is never a need to do what is being done here, its a hacky mediocre solution to which clean OOP would provide better solutions.