Git Product home page Git Product logo

codestyle.co's Introduction

Scott Dorman

Microsoft MVP, Software Architect, Developer, Author, Speaker


          resumé              


I've worked with computers professionally since 1993. Although my primary focus is commercial software applications, I enjoy building infrastructure components and reusable shared libraries. I help companies define, develop, and automate processes, code standards, and guidelines.


1559       1559       sdorman       scott_dorman       scottdorman       https://feeds.feedburner.com/scottdorman

Codestyle.co     Languagespecs.info    

feedback

Buy Me A Coffee

GitHub Sponsor

codestyle.co's People

Contributors

blairconrad avatar dependabot[bot] avatar scottdorman avatar sihugh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codestyle.co's Issues

m_ for denoting class level variables

From Joe Healy (July 28, 2014 3:04 PM)

m_ for denoting class level variables. Right or wrong? Still pops up occasionally! Hard habit to break for old c++ / mfc coders. And NOT covered in your docs.

From Jonas Stawski (‎July ‎28, ‎2014 3:12 PM)

Depending on the project I simply use _

Example:

private string _name;
public string Name 
{
   get { return _name; }
   set { _name = value; }
}

From Shayne Boyer (July 28, 2014 3:34 PM)

Drop the _ and just lowercase the private.

From Jonas Stawski (‎July 28, ‎2014 3:36 PM)

Yes, I do that as well, hence why I said depending on the project, and by that I mean, depending on the people involved. Sometimes I also make the constructor variable without underscore and the private variables with.

public class Person
{
   private string _name;
   public Person(string name)
   {
        _name = name;
   }
}

From Kevin Schaefer (July 28, 2014 3:40 PM)

Last I saw, privates should still start with _, but not m_.

From: Scott Dorman (July 28, 2014 4:49 PM)

Guidelines right now are culled from the Framework Design Guidelines, which don't explicitly call out using m_ for class level variables. It does mention s_ and g_ for static/global variables. There is also a guideline about not starting any identifier with just an _. I can add something about not using m_ to the guidelines...or someone can file a bug and/or pull-request to add it. :)

From Jim Wooley (July 28, 2014 5:15 PM)

Coming from the VB world I still use underscore to I'd module level fields as distinct from public properties since you can't differentiate only on case in VB (which is prohibited in the CLI guidelines.) It also helps to avoid the common mistake of this:

string foo;
public Bar(string foo)
{
   foo = foo;
}

Make attribution links more noticeable

When guidelines are summarized or adapted from another source, the attribution link should be more noticeable that it is a link.

(Summarized from a blog comment.)

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.