Wooden-Robot.net
Commonsense AI, NLP, interaction design, web apps
Home
About
Publications
Subscribe (RSS) | Assimilate!
Search
Categories
Accessibility/A11y
(4)
AI
(6)
Books
(2)
C#
(12)
C/C++
(3)
Coding style
(9)
DHTML
(28)
Digirati
(3)
Interaction Design
(12)
Java
(11)
MSWindows
(19)
Open AIM
(6)
Optimization
(5)
PIM
(8)
Prolog
(3)
Security
(4)
Source control
(5)
Tools
(19)
Uncategorized
(6)
Search
Meta
Log in
Entries
RSS
Comments
RSS
WordPress.org
Archives - Posts tagged as 'Coding style'
How to enable TestNG launch configurations in Eclipse IDE (Windows)
When using TestNG 5.11 (and at least one earlier version, 5.9) with the Eclipse IDE 3.4.2 (Ganymede, for Windows), one can't setup a Run configuration ...
[January 3rd by david]
Great advice from xml.com about XHTML gotchas
There's a great post on xml.com about getting XHTML markup right. A sampling: Any styles defined on the body element should be defined on the html ...
[January 7th by david]
Simplifying markup and CSS selectors through “semantic” tags
In a brown bag yesterday, Kevin Lawver suggested a best practice for DHTML: Prefer "semantic" markup instead of overuse of div. The principles are: If ...
[November 15th by david]
Don’t rely on the text of <option>
Sometimes I see dropdowns marked up like this: <option><%= localized string %></option> which forces the server-side code to do checks like this: if (sDropdownChoice == L10nStrings("localized string")) Looking up ...
[November 2nd by david]
Avoid script collisions via namespaces
If you plan to use a JS function named something generic like "update()", then you run the risk of another engineer on your team unknowlingly ...
[November 2nd by david]
Indicating type in names (“Hungarian notation”)
The practice of indicating type when one names something is an old practice, and still a great idea. Some say that it's not necessary ...
[November 2nd by david]
Don’t use + to build strings
First, using + to create strings in JS is fine because there is no alternative. But in C# and ASPX (and Java), string objects are "immutable", ...
[November 2nd by david]
Coding with empty string
When you need to put an empty string in C# or ASPX code, use String.Empty rather than "", since this saves creating an object for ...
[November 2nd by david]
Always use curly braces for 1-line statement blocks
Always use {} to wrap the actions of conditionals and such, even if they are just one line. We've had bugs where someone added a ...
[November 2nd by david]