不会偷懒的程序员不是好程序员。 日常工作中的重复性劳动还是比较多的,比如内容大部分不变的格式化代码,尤其 Java 编程中常会出现而且长度往往还比较夸张
最近在写一个简单的 Atom 解析类,需要解析其中使用的 RFC3339 规定的日期,碰到了几个小问题,发现这个功能还是需要特别注意一下。 RFC3339 定义的日期格式大体是:年-
最近使用 Android Studio 或者 Intellij 编写 Android 项目时使用 Lint 分析代码,常常会碰到有关 build.gradle 文件的警告提示 1 Not all execution paths return a value 解决的方法很简单,在出问题的 build.gradle 文件里找到 android 项,在
实际项目中要一直用动态方法加载 fragment。 虽然动态加载方法要写的代码会多一点,但是一旦面临需求变更的时候,重构的难度要小不少。 动态方法
最近想自己写一个简单的 Rss 阅读器练手,在阅读 Github 上面的项目 android-rss 时,在 List 的使用上碰到一些不同于入门书籍的代码,并不是很明白意思。之后,不断百度 + Google 终