Live data from Hacker News

A Peep inside a C# Application Service

themvcblog.typepad.com

11–20 of 26 posts

Re: A Peep inside a C# Application Service

#11
So, I generally like Dependency Injection (except that it makes things hard to debug) The code tends to be cleaner and there's less of it. It's also easier to test.

But I really dislike reading this kind of code. It is just really hard to understand. And if it's hard to understand, it's hard to maintain.

Re: A Peep inside a C# Application Service

#12
It's stuff like this that gives C# a bad name. If you strip away the enterprise-y, ASP.NET stuff it's usually wrapped in, it's a fantastic language.

After having spent a lot of time working in Javascript (and node.js specifically), I'm diving back into C# in my spare time, but learning to forget all the nonsense- no factories, no web.config, no ASP.NET framework... it's great. One highlight is Nancy.fx[1], a very lightweight web framework. Setting up routes is as simple as:

    Get["/list"] = parameters => {
        return "The list of products";
    };
I'm also developing on a Mac with MonoDevelop- it's a poor cousin of Visual Studio, but it works just fine. I feel like there is a series of "C# without the crap" blog posts to be written- I hope to do so.

[1] http://nancyfx.org/

Re: A Peep inside a C# Application Service

#13
post #12

It's stuff like this that gives C# a bad name. If you strip away the enterprise-y, ASP.NET stuff it's usually wrapped in, it's a fantastic language. After having spent a lot of time working in Javascript (and node.js specifically), I'm diving back into C# in my spare time, but learning to forget all the nonsense- no factories, no web.config, no ASP.NET framework... it's great. One highlight is Nancy.fx[1], a very lig…

Asp.net webapi is quite good, I have to say!

Re: A Peep inside a C# Application Service

#14
post #13
post #12

It's stuff like this that gives C# a bad name. If you strip away the enterprise-y, ASP.NET stuff it's usually wrapped in, it's a fantastic language. After having spent a lot of time working in Javascript (and node.js specifically), I'm diving back into C# in my spare time, but learning to forget all the nonsense- no factories, no web.config, no ASP.NET framework... it's great. One highlight is Nancy.fx[1], a very lig…

Asp.net webapi is quite good, I have to say!

I haven't had a chance to look at it, but have heard good things.

The sad thing is that even ASP.NET MVC- which is 100x better than WebForms- is used 0.001 as much. The same fate may apply to the Web API. It just doesn't seem like there is much interest.

Re: A Peep inside a C# Application Service

#15
post #12

It's stuff like this that gives C# a bad name. If you strip away the enterprise-y, ASP.NET stuff it's usually wrapped in, it's a fantastic language. After having spent a lot of time working in Javascript (and node.js specifically), I'm diving back into C# in my spare time, but learning to forget all the nonsense- no factories, no web.config, no ASP.NET framework... it's great. One highlight is Nancy.fx[1], a very lig…

I agree with you about Nancy, and I also use ServiceStack alongside it, but I don't think the linked article has anything to do with ASP.NET specifically. The author does seem to be an ASP.NET MVC guy though.

Re: A Peep inside a C# Application Service

#16
post #14
post #13

Earlier quoted context omitted.

Asp.net webapi is quite good, I have to say!

I haven't had a chance to look at it, but have heard good things. The sad thing is that even ASP.NET MVC- which is 100x better than WebForms- is used 0.001 as much. The same fate may apply to the Web API. It just doesn't seem like there is much interest.

I have built a html5 client of pure html5 + css + js and I am currently using asp.net webapi for the purely RESTful serverside, its great, its so clean decoupled and composable...

i would have thought ASP.NET MVC is quite mainstream and that webforms is slowly dying personally...

now with webapi and a pure html client, i see no point in MVC whatsoever!

Re: A Peep inside a C# Application Service

#17
Think its related to this: http://prezi.com/v9lvosve93i3/changing-the-mindset-more-obje... Event sourcing (eventstore) is different way of modelling complex business logic in object oriented language. Where you think about behaviour and verbs of your business, not data, properties, tables and relations. Not for CRUD apps, web portals, simple web shops, CMSs and similar apps.

Re: A Peep inside a C# Application Service

#18
post #3

> When an Application Service receives control, it loads an Aggregate and retrieves any supporting Domain Services needed by the Aggregate’s business operation. When the Application Service delegates to the Aggregate business operation, the Aggregate’s method produces Events as the outcome. I'm genuinely curious: does anyone here understand anything about that? What do those words even mean ? I mean, even if you assu…

This has nothing to do with C# and .NET. I think it's some kind of ASP.NET framework. As far as I know, C# and .NET do not have this reputation (at least, no more than other technologies in the same space, like Java).

It has nothing to do with any lang or framework, blog author could put Cobol example probably, its more like app architecture.

Re: A Peep inside a C# Application Service

#19

Ummm, what exactly is a "C# Application Service"? This post has no introduction and dives right into the details.

App service is like API, facade, to which a presentation layer (web, mobile app) is connecting. Architecturally speaking, it doesn't have to be separate an app that connects.
Post reply on HN