Expanded

Making .NET Data Types More Human With Humanizer

Create better user experiences that feel more human.
Course info
Rating
(61)
Level
Intermediate
Updated
Jul 29, 2014
Duration
1h 44m
Table of contents
Description
Course info
Rating
(61)
Level
Intermediate
Updated
Jul 29, 2014
Duration
1h 44m
Description

Have you ever seen things like "view your order(s)" in an application? If we know how many orders there are, we should pluralize the word "order" appropriately. Another example is showing detailed dates and times when a more simple format like "2 days ago," "yesterday," or "tomorrow" is a more appropriate, more human representation of the data. Humanizer also makes it trivial to convert computerized strings such as Pascal case method names into normal sentences, or turn numeric values into word equivalents. It even makes it easy to work with byte sizes such as writing (10.605).Kilobytes() and creating strings such as "10.61 KB" or ".01 MB". Scenarios like these are made easy with Humanizer, without us having to write and test the code ourselves.

About the author
About the author

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More from the author
Working with Nulls in C#
Advanced
2h 31m
Aug 13, 2021
Working with Files and Streams in C#
Intermediate
3h 25m
Jun 2, 2021
Exception Handling in C#
Intermediate
1h 44m
Mar 22, 2021
More courses by Jason Roberts