3 ms·
To those who self study: how or where did you learn the design patterns for good code? Anyone can learn how to write text book programs in any language but work
by gigatexal 7y ago
To those who self study: how or where did you learn the design patterns for good code? Anyone can learn how to write text book programs in any language but working on a team and diving into a paradigm say MVCC or something doesn’t seem as easy at least for me
- mattmanser 7y agoFrom blogs, conferences, meetups or on the job. Also, universities have traditionally been terrible at teaching those concepts. I haven't worked with CS graduates for a few years, but usually they were terrible at designing anything, totally misunderstood OOP, etc. Because lecturers were terrible at teaching it, often because lecturers had no experience actually programming professionally. Maybe it's changed now. For example lecturers loved talking about polymorphism, even though you almost never should use it. I remember a project I inherited from a graduate where he'd gone absolutely crazy on inheritance, where an industry professional would have used just a select few interfaces. Nightmare code.
- gigatexal 7y ago"For example lecturers loved talking about polymorphism, even though you almost never should use it." Well, that makes me feel better after having a terrible time making heads or tails of a codebase with many, many levels of inheritance. I think I am getting there but my head hurts trying to unravel it to do things.
- mattmanser 7y agoAlmost always the wrong thing to do, one of the ways to make spaghetti code.