How to work with text in .NET like a pro with Humanizer
Vložit
- čas přidán 21. 08. 2024
- Become a Patreon and get source code access: / nickchapsas
Check out my courses: dometrain.com
Hello everybody I'm Nick and in this video I am going to show you how you can use a Nuget package called Humanizer, to work with text in .NET like a pro. It includes simple text manipulation but also number, date, currency manipulation and also translations and culture specific features.
Give Humanizer a star on GitHub: github.com/Hum...
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: bit.ly/ChapsasG...
Follow me on Twitter: bit.ly/ChapsasT...
Connect on LinkedIn: bit.ly/ChapsasL...
Keep coding merch: keepcoding.shop
#humanizer #csharp #dotnet
Nick's video edits result in hardly a wasted breath - my guess is this 15 min slot took hours to shoot & edit, all so we don't have to waste time. Very much appreciated.
3 minutes in: "a library that removes underscores??? really??????"
5 minutes in: "well, its got some cool features, but I've already done that before sometimes, nothing too big"
6 minutes in: "wow, plurals? now you got my attention"
7 minutes in: "HOLY S*** I AM DOWNLOADING THIS NOW I NEED THOSE "yesterday" AND "1 hour from now"!!!!1!!1111"
it's like you would sit next to me mate
That's a lot of quality of life improvements for a modest 28 KB. Got to try it out, thanks Nick!
Nick tomorrow I have an interview in c# so wish me luck. And whoever sees this comment they can wish me luck too.
Good luck Parviz! Hope you smash it
Good luck mate!
Good luck have fun, keep us posted!
After a few days of watching your videos I’m loving them all. You’ve got to be my favourite development centric CZcamsr 🤓🤓
Thanks a lot showing us this cool library. I've been missing that kind of tutorials on your channel in last (months?)
I’ve been in a low level/performance period with the channel. It seems that people enjoy that content and I enjoy making it. I’m still planning on making tutorials and making libraries like this one more visible.
Been using Humanizer for couple of years now, absolute gem of a library, everytime I create a new project first thing I do is install Humanizer.
Dates (similar to well known moment.js) and numbers conversion seems like most valuable parts. For messages I usually use integration with translation services where real people translate them.
I would've loved this video a year ago when I was using this API for my college class
Great video, thank you so much!
Thank You from Russia.
This package is a game changer!
Kebaberize 😂
Thanks Nick, I will added to my projects right now!
As always, great content! Και επειδή συνέχεια το ξεχνάω: Συγχαρητήρια για το κανάλι σου!!!
Ευχαριστώ πολύ!
thx very helpfull thats waht i needed for my discord bot :D
Thank you man for saving my day
Thank you. Realy useful information
I would love to have a feature in the package that humanizes numbers like 1_520_000 to 1.5M etc
Great video nick!
Cool library. Very useful
There's been so many times in my career this library would have been useful.
Very very cool. Thank you
“Kebaberize Nick Chapsas” indeed sounds funny 😂
Great lib btw
Thanks a lot 👍
Thanks for sharing!..
Your too good
Thanks for everything Nick. I was wondering does this library support money humanize?
while watching:
"WOAH"
"WHAT THE FUCK?"
Is there any way to set a global Vocabulary to my webapi project? but I have some other projects in the solution, like infra, domain, service etc...
A library that makes up stuff and will surprise both you and your users... Who doesn't want that? :-/
Any library makes stuff up
@@nickchapsas I am skeptical because it strikes me as something that gets things right most of the times which typically isn't good enough. I can see myself fighting this thing to get the corner cases right, thus taking more of my time than if I were to produce a custom solution for my problem. I understand it is deterministic but not in a way we can predict and that makes me as a programmer very uneasy.
One question, does Humanizer support the opposite of what you started showing at 11:13 - let say that i have a given string and i want to replace the word one with 1, or the word first with 1.
Take a look at SqlKata, an interesting Query Builder.
Awesome
Any particular reason an array of Funcs is used instead of an array of strings?
Hi Nick.
Do you know how to include humanizer in MVC , in my script file?
Please let me know.
How to convert number to string?
1.ToString() ;-)
That is called snake case.
Not working with .NET 6
👍🏽
I can see hours and hours of my life saved over the years just by using this nuget package ...
Ha! I was thinking, yeah pascal, camel and underscore is fine, but if it can't do kebab case I'm out.
Que dice el Alex Tienda programador jaja.
Thought he's Mexican. Turns out he's Greek.
I hate Humanizer. and also hate any other libraries that use Humanizer. Why? Because of the two-letter-named folder clutter arrogance in the otherwise neat main folder of my applications. Makes the very idea of any folder system (ie. clarity, ease of use, manageability) useless.
Luckily it knows only a few dozen languages, so it will make you main folder just a couple of pages long with that two-letter folder-plethora junk, (imagine it knew all the 7100 languages spoken on this planet, it would then mess up your whole machine all the way , itt'll take you four hours just to scroll thru your application's main folder with 7100 top level folders in it)
why this arrogance? Why on earth it can't hide that stuff into some subfolder, just one level deeper would be enough ...or this would even be more polite: just use plain resource files inside its own folder, not a folder for each.