Tag : Coding Style
-
Using Tables to Improve Code Layout
April 29th 2007
Problem Solving C++ Coding Style
Code layout is a surprisingly subtle problem. Or, maybe not so surprising if we remember that typesetting is its own profession, with hundreds of years ...
-
A Literate Program on the 3rd Normal Form
May 8th 2007
Python Coding Style
I wrote this article in an unusual way: I started from the source code of a Python module, commented it thoroughly, made some minor formatting ...
-
LBYL vs. EAFP
May 23rd 2007
Coding Style Engineering
There are basically two error handling strategies: * Look Before You Leap (LBYL) * It's Easier to Ask Forgiveness than Permission (EAFP) I'm going to ...
-
A Nostalga Trip Down Java Lane
June 5th 2007
Silly Coding Style Java
When I was in college, I got a copy of NetBeans (a Java IDE) and did some Java projects to see what the language was ...
-
JSON Rex
November 27th 2007
Coding Style Web
Aristotle writes on tragedy: > The protagonist should be renowned and prosperous, so his change of fortune can be from good to bad. This change ...
-
Clone() In JavaScript
January 23rd 2008
Coding Style Web Tutorial Popular
> My [other essay][DCJS] provides source code and documentation for shallow copy, deep copy, and clone functions. If you came here searching for "javascript clone," ...
-
Semantic Code
April 30th 2008
Problem Solving Coding Style Engineering
> [se·man·tic][SD] (sĭ-măn'tĭk) adj. > 1. Of or relating to meaning, especially meaning in language. [SD]: http://www.answers.com/topic/semantic Programming destroys meaning. When we program, we first ...
-
Function Scope in JavaScript
May 21st 2008
Coding Style Web Tutorial
JavaScript's `this` keyword doesn't have to be confusing. This tutorial will help you use it correctly and effectively. JavaScript is designed to support true object-oriented ...
-
Factory Methods
October 12th 2008
C++ Coding Style Engineering Java
Ah, object creation. Why must you be so problematic? Is it the way you inject dependencies on global classes into the most innocent of code? ...
-
JavaScript Arguments
June 18th 2009
Coding Style Web Tutorial
In JavaScript, the full collection of arguments passed into a function is made available through the special `arguments` keyword. It's useful for fancy functional programming ...
-
Classes and Objects in JavaScript
November 24th 2009
Coding Style Web Tutorial
JavaScript supports object-oriented programming, with classes, objects, methods, and inheritance even though it doesn't have a `class` keyword. (This article is about [JavaScript 1.5][JS15] and ...
-
Deep Copy In JavaScript
November 25th 2009
Coding Style Web Tutorial
I've been interested in writing a generic deep copy algorithm in JavaScript for a while. The simple way to make a deep copy in JavaScript ...
Didn't find the essay you were looking for?
See all essays grouped by tag
or or the alphabetical index of essays.