Python 老人写 Java 代码,想吐,怎么治?

2017 年 8 月 16 日
 DoctorCat
写了 7 年 Python 代码了,现在切换回 Java,有一种懵逼+想吐+砸键盘的冲动… 有类似境况的盆友么,如何治疗呢?
14502 次点击
所在节点    程序员
119 条回复
DoctorCat
2017 年 8 月 16 日
DoctorCat
2017 年 8 月 16 日
@winglight2016 好的 我吐会儿
idamien
2017 年 8 月 16 日
拍一拍 继续吃
evlos
2017 年 8 月 16 日
说明工资没给够
DoctorCat
2017 年 8 月 16 日
@evlos 技术问题,技术问题
ofblyt
2017 年 8 月 16 日
@DoctorCat 你说的这些基本都有工具生成或者SDK支持,接口实现这个……面向对象语言都跑不了
hantsy
2017 年 8 月 16 日
@DoctorCat

目前感觉 PYthon 语法类似有 jade/PUG, CoffeeScript。。。这些都是前端的。

JVM 虚拟上现在流行的语言太多了(应该超过 100 了吧),Groovy,Kotlin,Scala,总有一种适合你。。。我试了一圈还是感觉 Java 味正。
janxin
2017 年 8 月 16 日
kotlin 应该可以有效降低恶心效果
fds
2017 年 8 月 16 日
写 typescript 很安逸,因为能自动格式化感觉比 python 还好。
xiaoxubeii
2017 年 8 月 16 日
吐着吐着就习惯了。
DoctorCat
2017 年 8 月 16 日
@ofblyt 求工具指点
BBCCBB
2017 年 8 月 16 日
你可以把你的代码贴出来,我们大家看看是你写的烂还是其他的?(逃
zhuangzhuang1988
2017 年 8 月 16 日
python 没啥技术含量呗,一直在舒适区
hantsy
2017 年 8 月 16 日
@donething @yuanfnadi 最近几天花了点时间看了下, 转换了我一个 Demo , https://github.com/hantsy/spring-reactive-sample/blob/master/kotlin/src/main/kotlin/com/example/demo/DemoApplication.kt 只是感觉 Kotlin 怪怪的。

看了 Spring Blog,https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way 和 Spring 最新一个相关的 Presentation。。。Kotlin,+ Gradle Kotlin, Funcational Programming 慢慢的去掉自动化配置, 手动启动程序(去 Spring Boot ), 不用 Annotation( 去 kotlin-spring ), 全部用 Kotlin DSL 声明 Bean (和 Spring 4 时加入的 Groovy DSL 配置类似, 不需要 CGLIB )。 这是 Kotlin 要的效果吗?
thankuu
2017 年 8 月 16 日
你可以试试 scala
DoctorCat
2017 年 8 月 16 日
@zhuangzhuang1988 玩 CURD 业务,编程语言有啥技术含量,跟开车一样都是熟练工种,又不是造轮子的
DoctorCat
2017 年 8 月 16 日
@BBCCBB 开源的一项目,可以去看看:zstack
st2udio
2017 年 8 月 16 日
只用 Python 做深度学习,神经网络,没多大依赖感
DoctorCat
2017 年 8 月 16 日
@zhuangzhuang1988 舒适区,确实啊,毕竟熟练工了
icedx
2017 年 8 月 16 日
楼主的适应性太差了
Python 和 Java 都写
写 Python 的时候还会怀念一下 Java 的某些特性

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/383440

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX