Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
The Art of CodeThe Art of Code
Chris OldwoodChris Oldwood
ACCU Conference 2014ACCU Conference 2014
@chrisoldwood / gort@ci...
“Hmm! I’m not quite sure what the artist is trying to say here”
““Programs must be written forPrograms must be written for
people to read, and onlypeople to read, and only
incidentally f...
Code Quality: WTF’s / MinuteCode Quality: WTF’s / Minute
Chopin’s WaterlooChopin’s Waterloo
No CommentNo Comment
// Increment value.
value++;
Brace YourselfBrace Yourself
if (x == 1) {
if (y == 2)
{
if (z == 3)
{
do_something(x, y, z);
}
}
}
Inversion of ControlInversion of Control
// Automatically generated
// code.
//
// DO NOT EDIT!
Cast AwayCast Away
Man survivor("Tom Hanks");
Island& desertIsland =
reinterpret_cast<Island&>
(survivor);
Pure GarbagePure Garbage
public sealed class Litter
{
public bool IsRecyclable
{
get { return true; }
}
}
The Missing LINQThe Missing LINQ
var names = new List<string>();
for (int i=0; i!=length; i+=1)
{
string name = customers[...
On ReflectionOn Reflection
using DependencyInjection;
DI.Container
.RegisterType<Mirror>()
.As
.InstanceOf<IMirror>()
.Sin...
Tabs or Spaces?Tabs or Spaces?
Blog:Blog:
http://chrisoldwood.blogspot.comhttp://chrisoldwood.blogspot.com
@chrisoldwood / gort@cix.co.uk@chrisoldwood / ...
The Art of Code
Upcoming SlideShare
Loading in …5
×

The Art of Code

764 views

Published on

A 15 minute lightning talk given at the ACCU 2014 conference that attempts to fuse the humour of modern art and snippets of code.

  • Be the first to comment

  • Be the first to like this

The Art of Code

  1. 1. The Art of CodeThe Art of Code Chris OldwoodChris Oldwood ACCU Conference 2014ACCU Conference 2014 @chrisoldwood / gort@cix.co.uk@chrisoldwood / gort@cix.co.uk
  2. 2. “Hmm! I’m not quite sure what the artist is trying to say here”
  3. 3. ““Programs must be written forPrograms must be written for people to read, and onlypeople to read, and only incidentally for machines toincidentally for machines to execute”execute” ---- Hal AbelsonHal Abelson
  4. 4. Code Quality: WTF’s / MinuteCode Quality: WTF’s / Minute
  5. 5. Chopin’s WaterlooChopin’s Waterloo
  6. 6. No CommentNo Comment // Increment value. value++;
  7. 7. Brace YourselfBrace Yourself if (x == 1) { if (y == 2) { if (z == 3) { do_something(x, y, z); } } }
  8. 8. Inversion of ControlInversion of Control // Automatically generated // code. // // DO NOT EDIT!
  9. 9. Cast AwayCast Away Man survivor("Tom Hanks"); Island& desertIsland = reinterpret_cast<Island&> (survivor);
  10. 10. Pure GarbagePure Garbage public sealed class Litter { public bool IsRecyclable { get { return true; } } }
  11. 11. The Missing LINQThe Missing LINQ var names = new List<string>(); for (int i=0; i!=length; i+=1) { string name = customers[i]; names.Add(name); }
  12. 12. On ReflectionOn Reflection using DependencyInjection; DI.Container .RegisterType<Mirror>() .As .InstanceOf<IMirror>() .SingleInstance;
  13. 13. Tabs or Spaces?Tabs or Spaces?
  14. 14. Blog:Blog: http://chrisoldwood.blogspot.comhttp://chrisoldwood.blogspot.com @chrisoldwood / gort@cix.co.uk@chrisoldwood / gort@cix.co.uk

×