5

把 Java 写成动态语言了,越改越崩溃。

 3 years ago
source link: https://www.v2ex.com/t/797467
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

V2EX  ›  Java

把 Java 写成动态语言了,越改越崩溃。

  hahaFck · 1 天前 · 1810 次点击
各种 map,前台数据传到后台转换成 map 或者 list<Map>,数据库查询返回 list<Map>,方法调用传参数也是 Map,现在改个东西,完全不知道会影响到哪里,因为都是 Map 参数,方法签名一般都不变,但是 Map 里面的数据不仔细看根本不读知道都有什么,真是越改越崩溃。
另外 map 取数也是各种类型转换,各种 null 判断。
及其 ugly 的代码。

第 1 条附言  ·  3 小时 14 分钟前

真是动态一时爽,维护火葬场。不知道其他语言开发比如 go,c++等也有这个问题么。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK