问 HN:迷茫的初级程序员

4作者: TheRegularOne6 天前
还在看论坛的朋友们,你们好! 我最近刚从大学毕业,开始担任初级开发工程师(目前正努力从资深同事那里汲取尽可能多的知识)。但似乎现实世界和大学里的实践大相径庭。 在大学里,我们学习了设计模式,以及领域层、应用层、基础设施层、UI层等各种职责。领域层不应依赖基础设施层或应用层,等等。但我在实际项目中遇到的情况是,领域层依赖于基础设施层,还有个项目应用层直接引用了基础设施层,而且他们还告诉我这是正确的实现方式…… 唉…… 我觉得我上课听得还不错,但现在我开始怀疑,学习这些东西到底值不值得,因为现实世界的情况如此矛盾。当然,我没有资格质疑资深开发人员,但你们觉得呢——大学里那些所谓的“最佳实践”真的都直接被扔进垃圾桶了吗?还是我只是误解了真实的工作环境?
查看原文
Hello those who still read forums.<p>I have recently graduated from a college and started working as a junior dev (trying to consume as much knowledge from senior colleagues as I can now) and it seems that the real world is kind of a different story compared to the college practice.<p>In the college we&#x27;ve been taught about design patterns and all these responsibilities like domain, application, infrastructure, UI. Domain should never depend on infrastructure or application layer and so on. But the projects I got have domain that depend on infrastructure and another one where application has a reference directly to infrastructure and been told that this is correct implementation... doh..<p>I think I was kind of a good at listening for the lectures, but I now am doubting about, whether it was worth learning stuff at all lol since it&#x27;s so controversial out there. I am, of course, in no position to question senior dev, but what do you guys think - is it really normal that all the college so called &quot;best practices&quot; go straight to the trash bin or am I just misunderstanding the real-work-like context?