dstelow notes…

Archive for June 2010

links for 2010-06-30

leave a comment »

  • I use this tool to format code for use in my blog, articles etc. Feel free to use it yourself. You'll need a reference to an appropriate stylesheet, either from this site or a copy on your own: http://csharpindepth.com/codestyles.css
  • Most articles about closures are written in terms of functional languages, as they tend to support them best. However, that's also precisely why it's useful to have an article written about how they appear more traditional OO languages. Chances are if you're writing in a functional language, you know about them already. This article will talk about C# (versions 1, 2 and 3) and Java (before version 7).
Advertisements

Written by dstelow

June 30, 2010 at 11:01 pm

Posted in Uncategorized

links for 2010-06-29

leave a comment »

Written by dstelow

June 29, 2010 at 11:02 pm

Posted in Uncategorized

links for 2010-06-28

leave a comment »

Written by dstelow

June 28, 2010 at 11:03 pm

Posted in Uncategorized

links for 2010-06-25

leave a comment »

Written by dstelow

June 25, 2010 at 11:02 pm

Posted in Uncategorized

links for 2010-06-24

leave a comment »

  • 4.9 Style
    Imposing constraints on the format of syntactic elements makes source code easier to read due to consistency in form and appearance. Note that automatic code generators should be configured to produce code that conforms to the style guidelines where possible. However, an exception is made for code generators that cannot be reasonably configured to comply with should or will style rules (safety-critical shall rules must still be followed).
    (tags: dev c++ standards)
  • so the "resource acquisition is initialization" technique leads to less code than use of a "finally" construct.
  • The source at Mozilla.
    (tags: dev javascript)
  • Good synopsis of js equality (albeit in strange source)…"Use '===' to compare with 'null'." and "Use '!==' to compare with 'null'." – Almost universally in jQuery core we use === or !== with the exception of when we're comparing against null. It's actually quite useful to do == null or != null as it will pass (or fail) if the value is either null or undefined. If we want to explicitly check for a null or undefined value we use === null or === undefined (discussed in depth below).

Written by dstelow

June 24, 2010 at 11:01 pm

Posted in Uncategorized

links for 2010-06-23

leave a comment »

  • Here you will find a wide variety of audio and video recordings of past CSC and other university-related talks. Some of these files are very large, and we do not recommend attempting to stream them. Most of these should be available upon request at the Computer Science Club office to be burnt to CD or DVD should you so choose.

Written by dstelow

June 23, 2010 at 11:02 pm

Posted in Uncategorized

links for 2010-06-22

leave a comment »

Written by dstelow

June 22, 2010 at 11:03 pm

Posted in Uncategorized