1 / 15

The Art of Code

The Art of Code. Chris Oldwood ACCU Conference 2014. @chrisoldwood / gort@cix.co.uk. “Hmm! I’m not quite sure what the artist is trying to say here”. “Programs must be written for people to read, and only incidentally for machines to execute” -- Hal Abelson. Code Quality: WTF’s / Minute.

ledell
Télécharger la présentation

The Art of Code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Art of Code Chris Oldwood ACCU Conference 2014 @chrisoldwood / gort@cix.co.uk

  2. “Hmm! I’m not quite sure what the artist is trying to say here”

  3. “Programs must be written for people to read, and only incidentally for machines to execute”-- Hal Abelson

  4. Code Quality: WTF’s / Minute

  5. Chopin’s Waterloo

  6. No Comment // Increment value. value++;

  7. Brace Yourself if (x == 1) { if (y == 2) { if (z == 3) { do_something(x, y, z); } } }

  8. Inversion of Control // Automatically generated // code. // // DO NOT EDIT!

  9. Cast Away Man survivor("Tom Hanks"); Island& desertIsland = reinterpret_cast<Island&> (survivor);

  10. Pure Garbage public sealed class Litter { public bool IsRecyclable { get { return true; } } }

  11. The Missing LINQ var names = new List<string>(); for (int i=0; i!=length; i+=1) { string name = customers[i]; names.Add(name); }

  12. On Reflection using DependencyInjection; DI.Container .RegisterType<Mirror>() .As .InstanceOf<IMirror>() .SingleInstance;

  13. Tabs or Spaces?

  14. Blog: http://chrisoldwood.blogspot.com @chrisoldwood / gort@cix.co.uk

More Related