Live data from Hacker News

Open Source .NET libraries that make your life easier

thomasvm.github.io

71–80 of 116 posts

Re: Open Source .NET libraries that make your life easier

#71
post #23
post #4

To add to the author's list: * I seem to install Json.net in every .NET project I create (json serializer - thanks James Newton-King!) * NLog for logging. It's fantastic. * Dapper is also excellent (Micro ORM) (and anything written by Marc Gravell is generally top-notch - see protobuf-net, miniprofiler, StackExchange.Redis) * Automapper, to avoid writing boilerplate code to convert between similarly shaped types (E.G…

> NLog for logging. It's fantastic. I use NLog, but I access it through the Common.Logging facade. This is helpful when I need to bolt my code into an environment where NLog kind of sucks, like Xamarin.Android.

If you're in a position to use it, I much prefer Anotar with Fody https://github.com/Fody/Anotar

Commons.Logging always felt clunky in comparison.

Re: Open Source .NET libraries that make your life easier

#72

TopShelf looks interesting, I have written quite a few Windows services over the years and there have always been lots of gaps in the MS offering.

I've been using TopShelf in production settings for a few years now and have been more than pleased. We have yet to discover any issues related to using the library. And new developers find it extremely easy to pick up.

Re: Open Source .NET libraries that make your life easier

#73
re: Formo

Last summer and into the fall, I had plans for Formo 2.0, which included a lot more flexibility and customization capabilities (json config, http context config, environment variables, etc). When I learned about aspnet5's configuration I essentially stopped development on Formo. The big reason being that they're building in such a way that I imagined Formo would be used. (Which makes me quite happy)

For that reason, the project is largely "finished", but it's still stable and alive.

Re: Open Source .NET libraries that make your life easier

#74
Some that I've been enjoying lately:

- SpecsFor: Some nice BDD wrappers around NUnit and Moq http://specsfor.com/ - Glimpse: A great diagnostic console tool for ASP.NET applications http://getglimpse.com/ - FluentMigrator: Awesome DB migration framework https://github.com/schambers/fluentmigrator

Re: Open Source .NET libraries that make your life easier

#75
Humanizer Fantastic string, number, and datetime manipulation library http://www.nuget.org/packages/Humanizer/

Units.Net I love this for measurement and weight conversions http://www.nuget.org/packages/UnitsNet/

And, of course, a shameless plug of my own library Fibber An indiscriminate data generator that will generate random data for all properties in a given class based on the property's type vs. its name https://github.com/Schandlich/Fibber http://www.nuget.org/packages/Fibber/

Re: Open Source .NET libraries that make your life easier

#76
post #8

You guys should check these ones: * Hangfire( http://hangfire.io/ ): for background jobs. * Polly( https://github.com/michael-wolfenden/Polly ): For exception handling policies. Edit: formatting.

Polly is slick. Takes care of something I've been doing adhoc for a long time.

Re: Open Source .NET libraries that make your life easier

#77

With .NET going open source, I'd like to see what is out there for web services. Are there any linux-compatible .NET web servers/routers that I can use that have a similar feature set and performance to the Spray/Scala stack? C# or F#, but preferably F#. I've tried a couple (suave, nancy), but some simple benchmarks showed they were about half as scalable as spray.

Were those simple benchmarks running on Mono? .Net is certainly going open-source, but it hasn't arrived yet. It might be worth rerunning those benchmarks once .Net proper is available for *nix.

Re: Open Source .NET libraries that make your life easier

#78

TopShelf looks interesting, I have written quite a few Windows services over the years and there have always been lots of gaps in the MS offering.

It's definitely superior to hand rolling Windows services. We have something like 6 or 7 TopShelf-based services, a couple of which are self-hosted WebAPI endpoints. No problems or gotchas that I can remember, aside from slightly marginal documentation last time I looked.

Topshelf's documentation does need some more TLC -- if there's something specific you thought was lacking I can take a look at updating it.

I'm glad to hear you're getting value out of it! Last place I was at, we had about 30 distinct services running. It was a huge bonus to have Topshelf.

Re: Open Source .NET libraries that make your life easier

#79
Does anyone have recommendations for frameworks or libraries for implementing CQRS and distributed processing of large sets of data through DDD?

I've found some different options including Lokad, NServiceBus, MassTransit, MPAPI, but would love to hear what, if any, tools HN users are utilizing.

Re: Open Source .NET libraries that make your life easier

#80
post #56

Earlier quoted context omitted.

Personally, I think it's great even for crud...It's an order of magnitude faster than things like EF/LINQ2SQL

I've also used BLToolkit, and it is pretty fast too, plus it has Linq support to build strongly-typed queries that sometimes better than raw SQL queries. But when it comes to table hints, Linq and other stuff does not help. So, it always depends :)

BLToolkit and the replacement (linq2db) are great. Excellent performance and it has some excellent developers contributing.
Post reply on HN