TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Everyone is wrong about ORMs

6 点作者 colinmcd大约 3 年前

2 条评论

bob1029大约 3 年前
For me, ORMs and [web] frameworks serve essentially the same purpose - Establishing some development pattern that can be followed.<p>Most developers do not feel comfortable jumping directly into raw sql&#x2F;js&#x2F;html&#x2F;css when they are just starting out in their careers, especially when trying to build a new&#x2F;complex thing. Having effectively zero constraints on how to structure a real-world codebase can be terrifying if you don&#x27;t have an existing mental model of one of these things. I remember what it was like to be staring into the maw of a blank solution explorer and not even knowing how many projects I would need to create or what a good namespace system might look like.<p>Understanding that the sql schema is probably the most important part of the entire product may encourage us to not sweep this particular concern under the rug of automagic training wheels. We did the entity framework thing for about a year before moving back to raw sql. Performance was the biggest thing for us. Many of the inferences the ORM made back then were horrific in practice.
PaulHoule大约 3 年前
What about jooq?<p><a href="https:&#x2F;&#x2F;www.jooq.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.jooq.org&#x2F;</a>
评论 #31044585 未加载