Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We have a consistent braces style, so the lines that are removed are rarely those.

A lot of the saves come from `?.` replacing null check chains. Many more from the shorter constructor and field initialization syntax (you can get a bunch of things in one short statement). A bunch more from usage of standard library lambda taking functions (`first`, `single`, etc.). Some more just comes from shorter lines due to less explicit types. These are all more some guesses due to conversions I've seen, and not the result of accurate analysis.

We also use very little Java streams. A combination of Java 8 arriving late to Android code, and the preference to avoid extra allocations and inefficiencies streams can cause for shorter lists.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: