V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  SabaPing  ›  全部回复第 3 页 / 共 3 页
回复总数  51
1  2  3  
2020-03-02 20:56:56 +08:00
回复了 wenqiang1208 创建的主题 杭州 租房,询问 一帖,第一次到杭州
老哥你酷家乐的吧....
2019-11-11 10:19:56 +08:00
回复了 Xcution 创建的主题 问与答 买的房快交房了,请问 V 友有没有好的软装设计
酷家乐上面找设计师吧
2019-06-18 18:12:54 +08:00
回复了 aoscici2000 创建的主题 Java Map, List 写死类型和不写有什么区别?
首先这样做本质上是为了做到 static type safety + polymorphism , 换句话说在保证一定静态类型安全前提下, 抽出共性, 代码重用.

然后 polymorphism 中有一大类叫做 parameter polymorphism, java list 的泛型就是 parameter polymorphism 的一种实现.
2019-06-05 10:23:14 +08:00
回复了 zxc1234 创建的主题 职场话题 面试问:面向对象是什么
In principle, the motivation for object-oriented programming is very sim- ple: all but the most trivial programs need some sort of structure. The most straightforward way to do this is to put data and operations into some form of containers. The great idea of object-oriented programming is to make these containers fully general, so that they can contain operations as well as data, and that they are themselves values that can be stored in other containers, or passed as parameters to operations. Such containers are called objects. Alan Kay, the inventor of Smalltalk, remarked that in this way the simplest object has the same construction principle as a full computer: it combines data with operations under a formalized interface. So objects have a lot to do with language scalability: the same techniques apply to the construction of small as well as large programs.

Scala 作者 Martin Odersky 的原话
2019-04-24 16:22:37 +08:00
回复了 jimmyvan 创建的主题 macOS 有人买过 pdf expert 么?
我买了, 但是用到最后看 pdf 还是习惯打开 mac 用 preview...
2019-03-04 10:55:10 +08:00
回复了 index90 创建的主题 Go 编程语言 Go 上的 DI 有什么比较好的解决方案
手动构造函数注入不用库
楼主是我工作之后接触过的研发里面最屌的一个.
主大佬一路顺风!
2019-01-30 11:22:53 +08:00
回复了 zhutmost 创建的主题 Scala Scala 中不带具体实现的 object 是什么用法
object DataAssign
他的功能其实跟 val flag: String = "DataAssign" 一样, 一般可以用来做 state 标识, 信号标识等一些带枚举性质的东西.

他跟 val flag: String = "DataAssign"最主要的区别是, 他有 type, 可以统一到 scala 的 type system 中.

具体你看看一下第三方枚举类型的实现: https://github.com/lloydmeta/enumeratum
2018-11-11 19:46:57 +08:00
回复了 magicdu 创建的主题 Java 各位的代码里还在用 SQL 语句吗?怎么管理的
scala, 纯

fp, 用 doobie 交互数据库, 直接在代码里撸 raw sql.
2018-11-10 09:13:33 +08:00
回复了 sadhen 创建的主题 程序员 2018 年学好 Scala 的时间线
入坑 scala 一年半了, 说说我的经历和决定比较关键的知识.
第一年时间基本是靠 java 的经验强行写 scala, 用的 scala 特性差不多只有 collection, future, pattern match 啥的.
大概 6 个月前开始深入 scala 的 type system, 慢慢开始写 type 层面的抽象和多态. 这时候掌握了两个关键技术 -- higher-kinded type 和 type class.
三个月前开始深入 functional programming, 主要是学习 cats, shapeless 和 category theory, 目前感觉这方面水实在太深, 涉及到一些固有观念的转变, 听说 scala 大神 @tpolecat 用了 4 年的时间"to be more functional"... 这一块比较关键的学习资料我觉得有两个, 一个是神书"Functional programming in scala", 另外一个是 cats 和 cats-effect 文档.

我们公司的部分生产环境, 大量使用了 scala 代码, 老的有 akka actor, akka stream, akka http; 比较新的有 flink scala; 最近刚试验上了一个用 typelevel 全家桶(cats, cats-effect, http4s, doobie, fs2, circe)写的 http 微服务.

写 scala 还是很快乐的!
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2227 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 07:37 · PVG 15:37 · LAX 00:37 · JFK 03:37
Developed with CodeLauncher
♥ Do have faith in what you're doing.