JavaScript for C# developers: some refactoring

I just published a blog post on my DevExpress ctodx blog about taking some non-idiomatic JavaScript code (actually from a DevExpress CodeCentral example program) and refactoring it to follow JavaScript best practices.

Topics covered include:

Take a look!

Album cover for Carboot SoulNow playing:
Nightmares On Wax - Morse
(from Carboot Soul)

Loading similar posts...   Loading links to posts on similar topics...

2 Responses

 avatar
#1 Marcel Doru Popescu said...
08-Dec-10 12:04 AM

Good article, but I spent far too little time reading it and far too much being annoyed that the text is wider than the page (and thus the last words on each row, except for the first paragraph, are not visible). I tested it on three browser, so I doubt it was on my side.

julian m bucknall avatar
#2 julian m bucknall said...
08-Dec-10 8:09 AM

Marcel: Yeah, it was all screwed up. I noticed it late last night and spent some time fixing it. It's now looking as I wanted it to in the first place.

Cheers, Julian

Leave a response

Note: some MarkDown is allowed, but HTML is not. Expand to show what's available.

  •  Emphasize with italics: surround word with underscores _emphasis_
  •  Emphasize strongly: surround word with double-asterisks **strong**
  •  Link: surround text with square brackets, url with parentheses [text](url)
  •  Inline code: surround text with backticks `IEnumerable`
  •  Unordered list: start each line with an asterisk, space * an item
  •  Ordered list: start each line with a digit, period, space 1. an item
  •  Insert code block: start each line with four spaces
  •  Insert blockquote: start each line with right-angle-bracket, space > Now is the time...
Preview of response