naming-conventions

Naming Conventions for .NET / C# / WPF Projects

梦想的初衷 提交于 2019-12-03 01:04:23
What is a widely accepted naming convention for .NET/C#/WPF projects? Microsoft has an extensive MSDN article on naming conventions here . Here are some useful links on this subject .Net Naming Conventions and Programming Standards - Best Practices Naming Conventions for .NET / C# Projects Naming Conventions & Coding Standards for .NET Goog Luck! You can see Philips Healthcare - C# Coding Standard for C# It look very good. And of course Design Guidelines for Developing Class Libraries Use the tools Microsoft FxCop and Microsoft StyleCop for validation. Instead of listing potentially flammable

Underscores or camelCase in PostgreSQL identifiers, when the programming language uses camelCase?

孤人 提交于 2019-12-03 00:54:40
This has been bothering me for a while, and I can't arrive at a solution that feels right ... Given an OO language in which the usual naming convention for object properties is camelCased, and an example object like this: { id: 667, firstName: "Vladimir", lastName: "Horowitz", canPlayPiano: true } How should I model this structure in a PostgreSQL table? There are three main options: unquoted camelCase column names quoted camelCase column names unquoted (lowercase) names with underscores They each have their drawbacks: Unquoted identifiers automatically fold to lowercase. This means that you

JavaScript naming convention for promises? [closed]

一个人想着一个人 提交于 2019-12-03 00:54:11
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. I feel it would be useful to have a naming convention for JavaScript variables which hold a promise . I don't generally like or advocate naming conventions beyond programming language standards, but in the style of programming where promises are passed

Git flow release branches and tags - with or without “v” prefix

和自甴很熟 提交于 2019-12-03 00:31:35
问题 I have seen multiple contradicting definitions on various git flow related websites. Is there an official recommendation or single source of truth? Branches: release-1.2.3 or release-v1.2.3 Tags: 1.2.3 or v1.2.3 回答1: Well, basically it is a matter of preference, but I prefer the version with the v , as Semver does it that way and I try to follow that specification as close as possible to get a sane versioning. It also makes filtering for those Tags easier, as you can press v and then the TAB

Best practices for creating a data model [closed]

試著忘記壹切 提交于 2019-12-03 00:28:49
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. For a current project I'm creating a data model. Are there any sources where I can find "best practices" for a good data model? Good means flexible, efficient, with good performance, style, ... Some example questions would be "naming of columns", "what data should be normalized", or "which attributes should be exported into an own table". The source should be a book :-) Personally I think you should read a book on

Naming convention for assets (images, css, js)?

孤街浪徒 提交于 2019-12-03 00:20:56
问题 I am still struggling to find a good naming convention for assets like images, js and css files used in my web projects. So, my current would be: CSS: style-{name}.css examples: style-main.css , style-no_flash.css , style-print.css etc. JS: script-{name}.js examples: script-main.js , script-nav.js etc. Images: {imageType}-{name}.{imageExtension} {imageType} is any of these icon (e. g. question mark icon for help content) img (e. g. a header image inserted via <img /> element) button (e. g. a

Official way to write xcode [closed]

谁说胖子不能爱 提交于 2019-12-03 00:16:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . What's the official way to write: Xcode , XCode , xcode , ... ? I have seen it writing numerous ways and want to be sure that I use it correctly. 回答1: a picture is worth a thousand words 来源: https://stackoverflow.com/questions/5725269/official-way-to-write-xcode

What is the preferred way (better style) to name a namespace in Ruby? Singular or Plural?

蓝咒 提交于 2019-12-02 23:39:02
What are for you the pros and cons of using: FooLib::Plugins FooLib::Plugins::Bar vs. FooLib::Plugin FooLib::Plugin::Bar naming conventions? And what would you use or what are you using? What is more commonly used in the comunity? Use: module FooLib end module FooLib::Plugins end class FooLib::Plugins::Plugin; end #the base for plugins class FooLib::Plugins::Bar < FooLib::Plugins::Plugin; end class FooLib::Plugins::Bar2 < FooLib::Plugins::Plugin; end or in a different words: module FooLib module Plugins class Plugin; end #the base for plugins class Bar < Plugin; end class Bar2 < Plugin; end

Android activity naming

对着背影说爱祢 提交于 2019-12-02 21:36:13
I'm running into more and more naming clashes between Android activities and other classes. I was wondering if you could tell me how you avoid these. Sadly, my particular naming problems are not covered in the related questions on SO. First example I have an activity that displays a level of the game. However, the data required for that level (background artwork, entities etc.) is stored in a separate class. Naturally, I would call the latter class Level . However, I would call the activity Level as well, because it displays levels. Second example I have an activity that plays back a cut scene

Naming conventions for “number of foos” variables [closed]

最后都变了- 提交于 2019-12-02 21:33:14
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Let's suppose that I need to store the number of foo objects in a variable. Not being a native English speaker, I always wonder what's the best (= short and immediately clear) name for that var. foo_num ? num_foo ? no_foo ? foo_no ? or something else? The full name should be number_of_foos , but it's a bit verbose. What's your favorite and why? I go for fooCount because it is