Giter Site home page Giter Site logo

Comments (29)

kevinchalet avatar kevinchalet commented on August 19, 2024

It's actually a very good idea, thanks for suggesting it 👍

I'll ping @jerriep and see if we can reuse his blog post to add a CONTRIBUTING.md file in all the aspnet-contrib projects.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Of course, feel free to use it as a starting point and then we can refine it as we go along.

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

Also,

can we use a .vsssettings file instead of something resharper specific? I wrote this blog post recently and since I have abandoned resharper. Also I spend half of my time in ubuntu on monodevelop so..I never have resharper anymore. Plus resharper is a paid product which could alienate people who wish to contribute to this library, that cannot get access to such software.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Of course. The main thing which may be different from what most people are used to is that the opening braces are at the end of the line.

I am not familiar with the .vsssettings file, so if you can create one and submit a PR it would be great

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

Just curious...any reasons why we are coding java style?

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Haha, not sure :) @PinpointTownes can answer that one.

He's the boss and I'm marching to his tune ;)

from aspnet.security.oauth.providers.

kevinchalet avatar kevinchalet commented on August 19, 2024

Just curious...any reasons why we are coding java style?

Well, K&R was the main coding style in MSFT until ASP.NET MVC 3 😄
Personally, I kept using it as it's a perfect compromise between code clarity and code length, but I guess it's a matter of personal preference.

can we use a .vsssettings file instead of something resharper specific?

Sure, I can upload mine if you want. But I guess you'll have to manually import it and that it will override your global configuration? Or maybe a plugin like CodeMaid has something built-in for project settings?

from aspnet.security.oauth.providers.

kappa7194 avatar kappa7194 commented on August 19, 2024

But I guess you'll have to manually import it and that it will override your global configuration?

Yes, you're going to rewrite the local settings for the whole Visual Studio:

image

can we use a .vsssettings file instead of something resharper specific?

I don't think there's a way to set coding preferences per-project instead of "per-everywhere".

I wrote this blog post recently and since I have abandoned resharper.

😒

ReSharper is the single most useful productivity extension and memory hog for Visual Studio (totally unbiased opinion).

I am not familiar with the .vsssettings file, so if you can create one and submit a PR it would be great

That's a possible solution: you set the guidelines (in the CONTRIBUTING file, in a ReSharper configuration file, in a CodeMaid configuration file, and so on) and everybody codes where and how they like but the pull-requests must conform to the given guidelines to be accepted (they are checked by someone with ReSharper).

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Is there not an open source utility that does something like this?

I am not too familiar with it, but I believe in the JavaScript world JSLint will check this for you. But I am speaking under correction.

from aspnet.security.oauth.providers.

kappa7194 avatar kappa7194 commented on August 19, 2024

Is there not an open source utility that does something like this?

I am not too familiar with it, but I believe in the JavaScript world JSLint will check this for you. But I am speaking under correction.

One I know is CodeMaid.

Oh, don't forget about Code Analysis:

image

It's not as thorough as StyleCop (RIP) but it's still useful.

Beware that I don't know if it's available in every edition of Visual Studio (it's there in 2015 Community Edition).

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Ahh, OK yes I see @PinpointTownes mentioned CodeMaid above as well as well as you in your post. Sorry...

Yes, then we should set up CodeMaid so people can run it over their code before they commit. That would be the easiest.

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

CodeMaid is definitely fine. Anything that lowers the barrier to entry is where its at.

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

@kappa7194 https://www.nuget.org/packages/StyleCop.Analyzers/1.0.0-beta009

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Have a look at this as well. It is used by the dotnet team:

http://blogs.msdn.com/b/dotnet/archive/2015/02/09/automatic-code-formatter-released-to-github.aspx

from aspnet.security.oauth.providers.

kevinchalet avatar kevinchalet commented on August 19, 2024

That's a possible solution: you set the guidelines (in the CONTRIBUTING file, in a ReSharper configuration file, in a CodeMaid configuration file, and so on) and everybody codes where and how they like but the pull-requests must conform to the given guidelines to be accepted (they are checked by someone with ReSharper).

I never merge a PR as-is. PRs are always cherry-picked and verified: if code style fixes are needed, they are immediately applied and squashed before being pushed. It takes a bit of time, but we're sure we don't have inconsistent providers 😄

I'll take a look at CodeMaid and give it a try. In the meantime, don't worry about sending a PR with inconsistent code styling, it will be fixed at some point before merging 😄

@tparnell8 does it now work with DNX (ASP.NET 5) apps? The last time I tried, they were not supported.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

The comments from you guys about Resharper have made me re-evaluate its use in my development. I simply love Resharper, but with VS 2015 Microsoft has taken massive leaps forward in providing many of the things which I used Resharper for. And yes,

The community is also adding a lot of stuff of top of that using the Roslyn compiler.

So I am going to experiment for the next week or so and see whether I can get by without using Resharper.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

I'll start working of putting together documentation for contributors

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

Resharper is like a drug, once you get over the 2 day hump everything seems fine. Also there are a fantastic assortment of open source extensions that really improve the editing experience of VS, without the performance implications of resharper (I notice it really slows down my editor).

from aspnet.security.oauth.providers.

kevinchalet avatar kevinchalet commented on August 19, 2024

CONTRIBUTING.md added: 385393e

Concerning the code style thing, I'm convinced it should be mitigated by the new Yeoman generator added by @jerriep.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

I am sad (or I guess happy?) to report that my attempt to go without Resharper lasted mere hours... I could see a marked improvement in the speed on the IDE when I turned Resharper off, but I just found it too hard to go without it... :(

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

what feature(s) were you missing that you 'had to have'

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

The only thing I miss is the resharper intellisense. TBH their intellisense is ungodly amazing, but I have learned some tricks to improve the regular VS intellisense.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Yeah, their intellisense was one of the major ones. The ability to just type any part of the identifier and it will list it for you - even when it is in a namespace which is not referenced yet. The VS camel humps are good, but it does not come close to Resharper.

I also use a lot of other code fixes which I could not quite find equivalents for. Like declaring a field and then instantly have Resharper initialize it through the constructor.

I should actually turn it off again and then make detailed notes about the things which frustrates me to go without. It would make good material for a blog post ;)

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

hmm I forgot about that one the .ctor initialize we could make a VS plugin...

The VS intellisense won't auto complete the non referenced classes, but if you type the whole name of a Type that is not referenced you have like a 1/3 that it will lightbulb for a using statement.

If you document what you don't have/like I/we can try to make extensions for it. I'd mostly like to improve the experience for people whom do not have access to resharper.

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Sure, I will do the experiment again and write a blog post with a nice click-bait title like "I turned Resharper off for a week and you will NEVER guess what happened next..." ;)

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

Alrighty

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

it would be cool if you could ref my blog post ;)

from aspnet.security.oauth.providers.

jerriep avatar jerriep commented on August 19, 2024

Oh cool, I also subscribed to your RSS feed so I can monitor it for potential content for ASP.NET Weekly

from aspnet.security.oauth.providers.

TerribleDev avatar TerribleDev commented on August 19, 2024

sweet I have 2 posts I have already written, I think both will be relevant, I will be publishing one in a day or two and the other the following week.

from aspnet.security.oauth.providers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.