Hacker News new | past | comments | ask | show | jobs | submit login

I agree, it's similar to Joda for Java. Sure, Joda does some things that exist in the standard library, but you can be sure that by using Joda that you're getting it right in all kinds of twisted scenarios you never considered.



actually joda is built into java8+ called java.time


We can only hope moment or at least its API gets similar treatment.


Thanks for the tip, I had no idea and was still including the dependency.


It's not API compatible, so if you use Joda and you're thinking of using java.time, it's going to be a lot of refactoring.


It's pretty straight forward to migrate from Joda to Java 8's builtin classes though. Just remove the dependency on Joda Time and let the compiler tell you which files to fix.

This blog post lists which Java 8 classes replace their Joda Time counterparts:

https://blog.joda.org/2014/11/converting-from-joda-time-to-j...


The worst is when you’re stuck on older libraries that still use Joda transitively, so you gotta transition to and from joda at the barriers.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: