Hacker News new | ask | show | jobs
by shanselman 4458 days ago
MVC5 uses AttributeRouting. Just put the routing on the controllers. No need for a routing table. (or routes.rb ;) )

ASP.Net Identity 2 is just that, easy and extensible membership.

Owin requests also give you what you're asking for also.

Don't like the S, change it? lowercaseroutes=true.

;)

Oh, and just to be snarky, the "programmers who don't understand HTTP" were lead by Henrik Nielsen, author of the HTTP spec, used to work for Tim Berners-Lee. ;)

3 comments

Scott, while you here, can i get your opinion on OData and the future? You probably have some insights i'm not aware of.

(noticed some changes on their website recently)

I wanted to use it to implement my API, but i got kinda "scared" knowing that Netflix changed from OData to something else. Any examples of popular API's using OData for example?

OData, to me, makes sense for data that has a dynamic schematic and/or a client that wants to explore or wander the data in the way an intranet or analyst does. Like Excel folks might. Not the way a phone app or desktop app might. Great for a certain kind of app.

For narrower apps, I'd make a web api but consider using just the OData query string formats (filter, sort) for flexibility.

In short:

Internal API = OData (= data layer)

External API = WebAPI with OData methods (=service layer, which brings the endpoint data to 3rd parties)

And because it's an internal API, it's a reason why you don't see it a lot in public API's (SAP uses it intensively though)

Thanks :)

ASP.Net Identity 2 is just that, easy and extensible membership.

I don't know about easy, but it definitely doesn't look simple, judging by examples.

http://blog.iteedee.com/2014/03/asp-net-identity-2-0-cookie-...

There are a lot of abstractions that don't represent anything outside of the framework itself, and a lot of components that interact in non-obvious ways. Also, it seems like finding integration points requires quite a bit of knowledge about how Identity 2 works.

The fact that there doesn't seem to be a coherent set of definitive/official documentation describing what and how it works doesn't help either.

Ach, I just needed to release a pressure valve. I think I'm mentally getting ready to abandon ASP.Net soon in all honesty, it's such a mess.

And just because you can make a car doesn't make you a great race-driver ;)

EDIT: WTF is going on with downvotes this week? If you don't agree with me, reply, don't down-vote.

A spec designer of HTML, which no sane person can claim isn't riddled with bad design decisions, is not magically a great programmer too

The thing I had to realize is that there is no web framework that I will like everything about. It sounds like such a simple statement, yet it took me a long time to come to grips with it. So find the one that you can "think in" and build your code in it. For me, I recently dusted off PHP. I'm currently building a product in with no framework or ORM, and I am honestly more productive than I have been in a long time--which probably says more about me than I care to admit. The point is, it's the framework that gives me the least resistance to accomplishing what I want to accomplish. If MVC isn't your framework, then switch, but just do it knowing that your new home will have just as many warts as your existing one has. The devil you know is often much easier to deal with than the devil you don't.
Exactly, use the one that makes you happy. Use the one the feeds your spirit. Use the one that allows you to wake up in the morning, and keep working. And ignore the haters.
If you don't agree with me, reply, don't down-vote.

With an account that old you should know better -- downvotes are perfectly fine for disagreement. This is not Reddit.

No they're not. With an account that old you should know downvotes have never been about disagreement. It's a new phenomenon which seems to have been happening alarming rapidly over the last few months.

Maybe we're just from different timezones.

>down votes

It's because of what you said about ASP.NET. I have not been coming to HN that long, but from what I have seen, just about any comment that criticizes Apple, popular windows software, or praises open source alternatives to closed source immediately are met with a barrage of down votes.

edit: and just to clarify, it's not uncommon to see posts on the front page that appear to praise an open source alternative, but anytime you read the comments, the first one is almost always someone who claims that the open source version still isn't ready because it doesn't have that one feature that everybody needs. I know I'm going to sound like a kook, but I would not be surprised in the least if at least 15% of the active HN user base are "shill" accounts controlled by teams that are controlled by different entities. Would HN be a target for operations like this? I think so. There are quite a few high-profile people who regularly come here, and manipulating the opinions of those people are probably in the interests of many organizations. Making sure switching to open source software that isn't distributed by MS or Apple isn't a bold move but a dumb move is in the interest both corporations.

Uh, no.

I downvoted because I want to keep discussions civil and technical. Questioning peoples competency because they name a directory '~/Script' instead of '~/js' or whatever just won't fly here.

This isn't slashdot. You'll get used to it.