How to work with text in .NET like a pro with Humanizer

Sdílet
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

Komentáře • 58

  • @cymorg8617
    @cymorg8617 Před 3 lety +8

    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.

  • @LuizLoyola
    @LuizLoyola Před 3 lety +42

    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"

    • @Velociapcior
      @Velociapcior Před 3 lety

      it's like you would sit next to me mate

  • @MB-Kajtech
    @MB-Kajtech Před 3 lety +9

    That's a lot of quality of life improvements for a modest 28 KB. Got to try it out, thanks Nick!

  • @rahimliparviz
    @rahimliparviz Před 3 lety +16

    Nick tomorrow I have an interview in c# so wish me luck. And whoever sees this comment they can wish me luck too.

  • @portlyoldman
    @portlyoldman Před 3 lety +4

    After a few days of watching your videos I’m loving them all. You’ve got to be my favourite development centric CZcamsr 🤓🤓

  • @rustamhajiyev
    @rustamhajiyev Před 3 lety +13

    Thanks a lot showing us this cool library. I've been missing that kind of tutorials on your channel in last (months?)

    • @nickchapsas
      @nickchapsas  Před 3 lety +12

      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.

  • @81NARY
    @81NARY Před 3 lety +2

    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.

  • @mabakay
    @mabakay Před 2 lety +2

    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.

  • @elyjacobi41
    @elyjacobi41 Před 3 lety +2

    I would've loved this video a year ago when I was using this API for my college class

  • @jackwo95
    @jackwo95 Před 2 lety

    Great video, thank you so much!

  • @Breathtaker
    @Breathtaker Před 3 lety +3

    Thank You from Russia.

  • @iambonmucho
    @iambonmucho Před 3 lety +1

    This package is a game changer!

  • @waslem123
    @waslem123 Před 3 lety +42

    Kebaberize 😂

  • @danielitohv84
    @danielitohv84 Před 3 lety

    Thanks Nick, I will added to my projects right now!

  • @spyros__5385
    @spyros__5385 Před 3 lety +2

    As always, great content! Και επειδή συνέχεια το ξεχνάω: Συγχαρητήρια για το κανάλι σου!!!

  • @FireDragon91245
    @FireDragon91245 Před 2 lety

    thx very helpfull thats waht i needed for my discord bot :D

  • @mohamedaboughoufa
    @mohamedaboughoufa Před 3 lety

    Thank you man for saving my day

  • @brentsteyn6671
    @brentsteyn6671 Před 3 lety

    Thank you. Realy useful information

  • @42069_
    @42069_ Před rokem

    I would love to have a feature in the package that humanizes numbers like 1_520_000 to 1.5M etc

  • @jt099
    @jt099 Před 3 lety

    Great video nick!

  • @marklester8051
    @marklester8051 Před 3 lety

    Cool library. Very useful

  • @ExpensivePizza
    @ExpensivePizza Před 2 lety

    There's been so many times in my career this library would have been useful.

  • @ajaybhat1040
    @ajaybhat1040 Před 3 lety

    Very very cool. Thank you

  • @tonholis
    @tonholis Před 3 lety +2

    “Kebaberize Nick Chapsas” indeed sounds funny 😂

  • @Tamer_Ali
    @Tamer_Ali Před 3 lety

    Thanks a lot 👍

  • @santhoshn3766
    @santhoshn3766 Před 3 lety

    Thanks for sharing!..

  • @doctor9101
    @doctor9101 Před 2 lety

    Your too good

  • @naruto1012091
    @naruto1012091 Před 2 lety

    Thanks for everything Nick. I was wondering does this library support money humanize?

  • @zerosandones7547
    @zerosandones7547 Před 3 lety

    while watching:
    "WOAH"
    "WHAT THE FUCK?"

  • @rodrigozanferrari
    @rodrigozanferrari Před 2 lety

    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...

  • @MartinMaat
    @MartinMaat Před 2 lety

    A library that makes up stuff and will surprise both you and your users... Who doesn't want that? :-/

    • @nickchapsas
      @nickchapsas  Před 2 lety

      Any library makes stuff up

    • @MartinMaat
      @MartinMaat Před 2 lety

      @@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.

  • @klevialushi571
    @klevialushi571 Před 2 lety

    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.

  • @diego_samano
    @diego_samano Před 3 lety

    Take a look at SqlKata, an interesting Query Builder.

  • @PeterManger
    @PeterManger Před 3 lety

    Awesome

  • @TransparentWorld1275
    @TransparentWorld1275 Před 3 lety

    Any particular reason an array of Funcs is used instead of an array of strings?

  • @nikolabozic7480
    @nikolabozic7480 Před 3 lety

    Hi Nick.
    Do you know how to include humanizer in MVC , in my script file?
    Please let me know.

  • @edwintorres2577
    @edwintorres2577 Před 3 lety

    How to convert number to string?

  • @mustafaazyoksul1372
    @mustafaazyoksul1372 Před 2 lety

    That is called snake case.

  • @lum1acs
    @lum1acs Před 2 lety

    Not working with .NET 6

  • @clearlyunwell
    @clearlyunwell Před 3 lety

    👍🏽

  • @dmytrokulak
    @dmytrokulak Před 3 lety +1

    I can see hours and hours of my life saved over the years just by using this nuget package ...

  • @GregerOlofsson
    @GregerOlofsson Před 3 lety +2

    Ha! I was thinking, yeah pascal, camel and underscore is fine, but if it can't do kebab case I'm out.

  • @klpx7691
    @klpx7691 Před 3 lety

    Que dice el Alex Tienda programador jaja.

  • @minciNashu
    @minciNashu Před 2 lety

    Thought he's Mexican. Turns out he's Greek.

  • @nick066hu
    @nick066hu Před rokem

    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.