Live data from Hacker News

Open Source .NET libraries that make your life easier

thomasvm.github.io

111–116 of 116 posts

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

#111

Earlier quoted context omitted.

Damn, thanks for pointing me in that direction. It's exactly what I've been looking for. Technically, I implemented some of that stuff myself because I needed REST client that would work with PCLs and be a bit 'nicer' to use than just juggling strings/routes everywhere, so using annotations and wrapping Microsoft's HttpClient was obvious and relatively easy way out. Anyway, I'll probably just phase out my own solutio…

RefitStubs is necessary because on certain platforms (iOS, WinRT), you cannot JIT and therefore can't use something like Castle Core to generate a class

I figured as much. Unfortunately there's no Emit for AOT where you could do something like: https://github.com/jonwagner/Insight.Database/blob/master/In...

On the other hand, I wonder if it wouldn't be easier to ship a T4 template? I know for sure that would integrate with VS (both the IDE and build process) without any issues, not sure about Xamarin Studio...

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

#112

See: https://github.com/Microsoft/dotnet This is an extensive list of (non-MS) OSS libs and tools for .NET , complete with descriptions. The URL might suggest this is the .NET source, it's a set of text documents with URLs to OSS libs/tools.

Really nice list, especially under https://github.com/Microsoft/dotnet/blob/master/dotnet-devel...

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

#113
post #45

One of my must haves that I'd definitely recommend is T4MVC[0] T4MVC is a T4 template for ASP.NET MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places. [0]: https://github.com/T4MVC/T4MVC

Wow. I have suffered so much without it, unnecessarily! How can this not be built into the ASP.NET MVC framework?

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

#115
post #45

One of my must haves that I'd definitely recommend is T4MVC[0] T4MVC is a T4 template for ASP.NET MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places. [0]: https://github.com/T4MVC/T4MVC

Compile-type safety for literal strings! Amazing!

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

#116

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://…

Fibber looks great, how does it compare to AutoFixture?

Thanks!

I can honestly say I had not heard about AutoFixture until today. Haha.

They look similar. The only difference I can really see is that I prefer my syntax a little better for type fixtures:

.For("whatever"); vs fixture.TypeMappings[typeof(string)] = s => "whatever";

I also allow a seed to be set for ensure "consistent random data".

But there are some features of AutoFixture that I definitely want to look at.

I created Fibber more for mocking data sources when I was creating Web Api services; and AutoPoco was just too much configuration. Unit testing was not the main purpose of the library.

Post reply on HN