▲ | the__alchemist 5 days ago | |||||||
Good general rule of thumb, but desperate scenarios call for desperate measures. I would never do this in Python or Rust for example, but it's necessary in Javascript; `Date` and `Moment`, are so full of traps that the ends justify the means: Especially if you have use for a `Date` or `Time` type. | ||||||||
▲ | jimmaswell 5 days ago | parent | next [-] | |||||||
moment's given me no trouble at all. I certainly haven't found it to be full of traps. Addressing the most common complaint: a moment object is mutable, sure - that's a valid design choice, not a trap. Follow the docs and everything works perfectly well IME. | ||||||||
| ||||||||
▲ | 5 days ago | parent | prev [-] | |||||||
[deleted] |