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
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
The Art of Readable Code
Next
Upcoming SlideShare
The Art of Readable Code
Next
Download to read offline and view in fullscreen.

Share

The Art of Code

Download to read offline

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 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

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

Views

Total views

981

On Slideshare

0

From embeds

0

Number of embeds

15

Actions

Downloads

3

Shares

0

Comments

0

Likes

0

×