Simple play icon Course
Skills Expanded

Making .NET Data Types More Human With Humanizer

by Jason Roberts

Create better user experiences that feel more human.

What you'll learn

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

With over 15 years of experience in both frontend and backend software development, Jason Roberts is a freelance developer, trainer, and author. He holds a Bachelor of Science degree in computing, is the author of several books, and writes at his blog DontCodeTired.com. Jason is an open source contributor and in addition to enterprise software development, he has designed and developed Windows Store and Windows Phone apps.

Ready to upskill? Get started