摘要:
试想场景: 我们要写一个逻辑比较复杂的函数, 发现根之前一个函数很类似。 怎么办, 重新写? or coppy ——update——done 坏处? 重构? 一 以多态取代条件表达式 为什么少用switch语句? class Employee { @Autowired private Employe 阅读全文
posted @ 2018-05-22 18:05
王小森#
阅读(336)
评论(0)
推荐(0)
摘要:
一 常用方案:SimpleDateFormat public class TimeUtils { public static String formatDate(Date date) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 阅读全文
posted @ 2018-05-22 17:23
王小森#
阅读(6869)
评论(0)
推荐(0)

浙公网安备 33010602011771号