Top "Conventions" questions

Should one use < or <= in a for loop

If you had to iterate through a loop 7 times, would you use: for (int i = 0; i < 7; i++) or: for (…

performance conventions readability
How do I pronounce "=>" as used in lambda expressions in .Net

I very rarely meet any other programmers! My thought when I first saw the token was "implies that" since that's …

c# .net lambda conventions
Where to declare class constants?

I'm using class members to hold constants. E.g.: function Foo() { } Foo.CONSTANT1 = 1; Foo.CONSTANT2 = 2; This works fine, except that …

javascript conventions
What is the canonical YAML naming style

I am designing a new YAML file, and I want to use the most standard style of naming. Which is …

yaml conventions
JavaScript braces on new line or not?

At work, we place braces on the next line, but at home, I do the opposite. Which one do you …

javascript coding-style conventions
Directory structure for TypeScript projects

What would be an idiomatic directory structure for a TypeScript project? I would like the following features in such a …

typescript directory-structure conventions typescript1.8
An Ideal Folder Structure for .NET MVC

When I started in .NET Webforms I didn't have much trouble finding a folder structure to follow since VS offered …

asp.net-mvc asp.net-mvc-2 asp.net-mvc-3 naming-conventions conventions
How to signal "not implemented yet"?

In the initial drafting of a new gem I need to leave some method implementations empty ( to be implemented in …

ruby exception-handling coding-style conventions
How to organize large R programs?

When I undertake an R project of any complexity, my scripts quickly get long and confusing. What are some practices …

r package conventions code-organization project-organization
Netbeans 7.4 introduces "10 lines max" per method rule. Where does this rule come from?

NetBeans 7.4 beta is currently available for public download, and it introduces a weird warning rule by default: Method length is 16 …

netbeans methods conventions coding-style