Code Smell 246 - Modeling Expiration Dates
2024-4-9 20:32:29 Author: hackernoon.com(查看原文) 阅读量:2 收藏

Too Long; Didn't Read

In many systems, the expiry date of a credit card is often represented by simply using a Date object. This can lead to potential issues and misunderstandings, especially when dealing with operations such as comparisons and calculations. It's generally considered a better practice to represent the expiration date with an adequate object.


文章来源: https://hackernoon.com/code-smell-246-modeling-expiration-dates?source=rss
如有侵权请联系:admin#unsafe.sh