Top "Coding-style" questions

**DO NOT USE!

Internal typedefs in C++ - good style or bad style?

Something I have found myself doing often lately is declaring typedefs relevant to a particular class inside that class, i.…

c++ coding-style typedef
Does <STYLE> have to be in the <HEAD> of an HTML document?

Strictly speaking, do style tags need to be inside the head of an HTML document? The 4.01 standard implies that, but …

html coding-style html-head
Relational table naming convention

I'm starting a new project and would like to get my table- and column names right from the start. For …

database database-design coding-style naming-conventions relational-database
What's the deal with a leading underscore in PHP class methods?

While looking over various PHP libraries I've noticed that a lot of people choose to prefix some class methods with …

php coding-style
Splitting C++ Strings Onto Multiple Lines (Code Syntax, Not Parsing)

Not to be confused with how to split a string parsing wise, e.g.: Split a string in C++? I …

c++ string syntax coding-style readability
.toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])?

Assuming I have an ArrayList ArrayList<MyClass> myList; And I want to call toArray, is there a performance …

java performance coding-style
C# Custom getter/setter without private variable

I learned c# recently, so when I learned to write properties, I was taught to do it like this: public …

c# coding-style accessor automatic-properties
Best practice for C++ function commenting

Is there an accepted best practice for commenting functions? I only know of the doxygen style but it is not …

c++ coding-style comments
Does anyone still use [goto] in C# and if so why?

I was wondering whether anyone still uses the "goto" keyword syntax in C# and what possible reasons there are for …

c# .net coding-style goto
Clearest way to build html elements in jQuery

I've seen a lot of different styles (and few different methods) of creating elements in jQuery. I was curious about …

javascript jquery coding-style element