Author Archives: Sam

TimeSpan or DateTime to Friendly Duration Text (e.g. “3 days ago”)

Data should be displayed to end users in a way that requires the least amount of effort on their part. With dates, do the math for your users ahead of time. Explicit dates may be exact, but relative “duration text” is easier to understand, and it’s usually good enough. Makes users think hard Easy to [...]
Posted in Code | Tagged , , , , | 3 Comments