V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zhazi  ›  全部回复第 5 页 / 共 15 页
回复总数  288
1  2  3  4  5  6  7  8  9  10 ... 15  
2022-01-18 15:07:45 +08:00
回复了 jaymail 创建的主题 程序员 请教大佬: 关于印尼盾程序如何处理
有货币换算需求就抽象出个货币类 没有就直接用当地币种结算就行
2022-01-17 09:23:22 +08:00
回复了 onice 创建的主题 程序员 奉劝大家工作期间要多喝水
谢谢水宝
2022-01-06 11:55:58 +08:00
回复了 Carver9527 创建的主题 Node.js faker.js 作者删除了所有的代码
搜了一下感觉好气啊
https://zhuanlan.zhihu.com/p/378294553
2021-12-31 21:33:09 +08:00
回复了 liuidetmks 创建的主题 问与答 统计类需求把代码弄的乱,How do yo do ?
报表业务一般都是无视建模。透视数据。所以通过封装 view object 直接写 sql 展示即可
如果在报表业务中涉及汇总 聚合 各种函数建议做数仓
2021-12-20 11:29:16 +08:00
回复了 zhazi 创建的主题 程序员 请教个问题,基于物联网的链路追踪怎么做
@fjm 一般物联网用 mqtt 协议比较多,也有用 ws 协议的。还有一部分自定义的协议,不会有人用 http 协议做物联网吧
2021-12-09 01:39:43 +08:00
回复了 warcraft1236 创建的主题 程序员 Java 的性能能赶上 Go 了?
我直接好家伙,你这用框架都能推断出语言性能了
2021-12-08 19:29:47 +08:00
回复了 jmyz0455 创建的主题 程序员 学习数据库设计的正确方式是什么?
这个字段的命名 [signature] 比较合适

class Foo {
boolean signature; //boolean 类型
boolean hasSignature(){
return signature;
}
}

class Bar {
int signature; //int 类型
boolean hasSignature(){
return signature !=0 ;
}
}
学习数据库设计的正确方式把数据当成数据来看待。不要带入业务信息。业务信息由代码来控制
2021-11-29 14:32:11 +08:00
回复了 imherer 创建的主题 程序员 请教一个 SQL 写法
2021-05-08 14:25:19 +08:00
回复了 w292614191 创建的主题 Java 微服务在企业中如何复用?
微服务本来也不是为了处理复用问题的
Highly maintainable and testable
Loosely coupled
Independently deployable
Organized around business capabilities
Owned by a small team
2021-04-10 14:41:25 +08:00
回复了 RiceMarch 创建的主题 Java Java 泛型 接口返回类 如何面对 空?
Void
2021-03-26 08:37:34 +08:00
回复了 caowentao 创建的主题 职场话题 回顾了最近几场面试,感觉遇到小人了
@djoiwhud 你看的都是什么乱七八糟的书
2021-02-21 15:23:05 +08:00
回复了 fxjson 创建的主题 程序员 Java 如何解决内存泄露问题,有哪些手段
内存泄露是指,某个对象没用使用,没有释放内存,且随着系统运行时间增长,该对象消耗内存持续增长,最终引起系统崩溃。
如果某个对象没有使用,但是该对象使用的内存恒定。那么这个对象只是个普通的对象。

btw 我这面给你解决内存泄露的话先远离你周边的小伙伴,结交一些懂技术的就可以了
@sadfQED2 这个有问题?国内百分之 80 程序员对面相对象停留在认识字的阶段
2021-01-03 15:15:39 +08:00
回复了 AAASUKA 创建的主题 Java Spring 里 Service 层分成接口+Impl 的好处是什么?
Should we use interfaces with our Service Beans?

Short answer: No.

If you want the long answer, here it is:

One of the main interests of using Spring is AOP. This is the technology that allows Spring to add new behaviors on top of your Beans: for instance, this is how transactions or security work.

In order to add those behaviors, Spring needs to create a proxy on your class, and there are two ways of creating a proxy:

If your class uses an interface, Spring will use a standard mechanism provided by Java to create a dynamic proxy.

If your class doesn’t use an interface, Spring will use CGLIB to generate a new class on the fly: this is not a standard Java mechanism, but it works as well as the standard mechanism.

Some people will also argue that interfaces are better for writing tests, but we believe we shouldn’t modify our production code for tests, and that all the new mocking frameworks (like EasyMock) allow you to create very good unit tests without any interfaces.

So, in the end, we find that interfaces for your Service beans are mostly useless, and that’s why we don’t recommend them (but we leave you with the option to generate them!).
2021-01-03 15:14:07 +08:00
回复了 AAASUKA 创建的主题 Java Spring 里 Service 层分成接口+Impl 的好处是什么?
粘一段 Jhispter 对这里的理解
2020-12-25 20:19:51 +08:00
回复了 liliumss 创建的主题 程序员 关于 DDD 的感想
还面临一众读不懂 ddd 瞎吓唬 ddd 的人,比如一楼。
2020-12-17 16:07:12 +08:00
回复了 Braisdom 创建的主题 程序员 凡事就怕问为什么(认识的升级)系列一
另外说一下你的开源项目,现在国内市场讲究攀交情比名气。所以找个好靠山背书(比如阿里的开源)比研究这些见效快
2020-12-17 16:05:02 +08:00
回复了 Braisdom 创建的主题 程序员 凡事就怕问为什么(认识的升级)系列一
问题挺好。但是我面试的时候从来都问我 堆、栈、算法、数据结构、图、树。卷就完了。你聊这些你不怕面试官答不上来吗?
你以为国内培训班是山寨谁的?
2020-12-15 09:10:22 +08:00
回复了 jimmyismagic 创建的主题 程序员 单点登录有什么问题?
你现在的问题不是研究单点登录,更应该重学一遍如何造句
1  2  3  4  5  6  7  8  9  10 ... 15  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2597 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 15:20 · PVG 23:20 · LAX 08:20 · JFK 11:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.