美丽心灵公益论坛

查看: 2046|回复: 5

The class is better than the SQL statement:

[复制链接]
累计签到:10 天
连续签到:1 天

104

主题

241

回帖

1775

积分

金牌会员

Rank: 6Rank: 6

积分
1775
发表于 2021-12-12 19:08:33| 字数 507 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x

  • The DEBATE about SQL versus ORM will never end, and I've been thinking about it a lot.  


...

A programmer working with databases will soon face a difficult choice.  MyBatis or JPA?  

Many people say that the choice of technology should be based on demand, which is true.  However, in addition to the demand, there is a very important link, that is the level of teammates.  If you choose something more advanced, you're just setting the whole team up.  

JPA has a higher level of abstraction and simpler code to write, but it is anything but simple.  Despite a lot of training, I've worked with teams that still use it like shit.  



累计签到:10 天
连续签到:1 天

12

主题

119

回帖

1398

积分

金牌会员

Rank: 6Rank: 6

积分
1398
发表于 2021-12-12 19:16:01| 字数 608 | 显示全部楼层
A programmer working with databases will soon face a difficult choice.  MyBatis or JPA?  

使用数据库的程序员将会面临一个困难抉择。MyBatis或JPA?

Many people say that the choice of technology should be based on demand, which is true.  However, in addition to the demand, there is a very important link, that is the level of teammates.  If you choose something more advanced, you're just setting the whole team up.  

许多人对于科技工具的选择理应基于需求的见解看来是正确的。虽然如此,除了需求之外,另外一点也很重要,那就是团队伙伴的水平。如果你选择了更先进的科技工具,你只会令整个团队难堪。

JPA has a higher level of abstraction and simpler code to write, but it is anything but simple.  Despite a lot of training, I've worked with teams that still use it like shit.  

JPA更抽象和更易于编写,不过却一点也不简单。尽管他们得到很多培训,我曾经跟许多团队一起工作,他们都用得一团糟。

评分

参与人数 1钻石 +80 收起 理由
simonzhd + 80 很给力!

查看全部评分

累计签到:10 天
连续签到:1 天

104

主题

241

回帖

1775

积分

金牌会员

Rank: 6Rank: 6

积分
1775
 楼主| 发表于 2021-12-12 19:33:17| 字数 42 | 显示全部楼层
使用数据库的程序员将会面临一个困难抉择。MyBatis或JPA?

...
关键Class
累计签到:10 天
连续签到:1 天

104

主题

241

回帖

1775

积分

金牌会员

Rank: 6Rank: 6

积分
1775
 楼主| 发表于 2021-12-12 21:38:48| 字数 33 来自手机 | 显示全部楼层
jpa是面向对象编程,俗称 orm;
你说那个好,肯定是jpa好,高级
累计签到:10 天
连续签到:1 天

104

主题

241

回帖

1775

积分

金牌会员

Rank: 6Rank: 6

积分
1775
 楼主| 发表于 2021-12-14 18:45:29| 字数 42 | 显示全部楼层
累计签到:10 天
连续签到:1 天

104

主题

241

回帖

1775

积分

金牌会员

Rank: 6Rank: 6

积分
1775
 楼主| 发表于 2021-12-14 18:47:37| 字数 56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|免责及版权声明|关于|美丽心灵公益论坛

GMT+8, 2025-11-1 16:55 , Processed in 0.059139 second(s), 34 queries .

Powered by Discuz! X3.4

!copyright!

快速回复 返回顶部 返回列表