6

幽默:尽量用领域语言编写代码

 3 years ago
source link: https://www.jdon.com/59072
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

幽默:尽量用领域语言编写代码

下面代码为什么第一行比后面更推荐呢?

// This is preferred
if (trader.can\/iew(portfolio)) { ... }

// Over this
if (portfolioldsByTraderId.get(trader.getld()) .containsKey(portfolio.getld())) { ... }

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK