Life, Liberty, and the Pursuit of APIness The Secret to Happy Code Dylan Beattie @dylanbeattie www.dylanbeattie.net dot net sheff

@ dylanbeattie • Building websites since 1992 • CTO @SkillsMatter • Microsoft MVP • London .NET User Group • www.dylanbeattie.net • dylan@dylanbeattie.net

http://starnewshq.deviantart.com/art/Comedy

and

Tragedy

325546823

@dylanbeattie

happycode

http://www.mornota.com/beyninizi

gelistirin/ @dylanbeattie

happycode

EXPERIENCE EXPERIENCE EXPERTISE EXPERTISE @dylanbeattie

happycode

EXPERIENCE EXPERTISE @dylanbeattie

happycode

How To Draw An Owl: 1: draw an oval for the head 2: draw an oval for the body 3: draw the rest of the owl @dylanbeattie

happycode

EXPERIENCE EXPERTISE @dylanbeattie

happycode

Server Error in '/' Application Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule . To fix this add <add name=" PerWebRequestLifestyle " type=" Castle.MicroKernel.Lifestyle.PerWebRequestLifeStyleModule , Castle.Windsor " /> to the < httpModules

section on your web.config @dylanbeattie

happycode

Do you believe in… the users? @dylanbeattie

happycode

@dylanbeattie

happycode

(image from @ DrunkVS via Twitter) @dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

By MBlairMartin

Own work, CC BY

SA 4.0, https://commons.wikimedia.org/w/index.php?curid=50244059 @dylanbeattie

happycode

A> @dylanbeattie

happycode

A>hello @dylanbeattie

happycode

A>hello Bad command or file name A> @dylanbeattie

happycode

A>hello Bad command or file name A>menu Bad command or file name A>help Bad command or file name A> @dylanbeattie

happycode

A>if you're happy and you know it, syntax error Syntax error A>if you're happy and you know it, syntax error Syntax error A>if you're happy and you know it and you really want to show it if you're happy and you know it syntax error @dylanbeattie

happycode

A>if you're happy and you know it, syntax error Syntax error A>if you're happy and you know it, syntax error Syntax error A>if you're happy and you know it and you really want to show it if you're happy and you know it syntax error Syntax error A> @dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

Type Your Program Here @dylanbeattie

happycode

@dylanbeattie

happycode

Microsoft Edge video @dylanbeattie

happycode

@dylanbeattie

happycode

here? Oxfordian Kissuth via Wikimedia Commons : https://commons.wikimedia.org/wiki/File:Hyde_Park_sign_post.jpg @dylanbeattie

happycode

http://maxpixel.freegreatpicture.com/Heartbeat

Pulse

Healthcare

Heart

Medicine

163709 @dylanbeattie

happycode

https://www.flickr.com/photos/philliecasablanca/2070476609/in/photostream/ @dylanbeattie

happycode

Request Timed Out @dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

Type Your Program Here @dylanbeattie

happycode

https://practicalmotoring.com.au/car

advice/common

car

warning

lights

explained/ @dylanbeattie

happycode

Enterprise Warp Drive http://memory

alpha.wikia.com/wiki/Force_of_Nature_(episode)?file=Warp_core_maintenance.jpg @dylanbeattie

happycode

@dylanbeattie

happycode

Monty Python Lumberjack. @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% 10:00 11:00 12:00 13:00 14:00 15:00 @dylanbeattie

happycode

Time CPU Consumption 100% 80% 60% 40% 20% 0% Jan Feb Mar Apr May Jun Jul @dylanbeattie

happycode

@dylanbeattie

happycode

FATAL ERROR WARN INFO DEBUG @dylanbeattie

happycode

FATAL • Application is completely unresponsive • Multiple users affected with immediate effect • Immediate attention. Stop what you’re doing and look into it. @dylanbeattie

happycode

ERROR & WARN • They will happen. • ERROR – one person noticed, maybe? • WARN – nobody noticed but it’s still odd. • Individual messages probably aren’t useful @dylanbeattie

happycode

https://universitycompare.com/articles/worst

commuters

sit

next

tube/ @dylanbeattie

happycode

INFO • Everything’s fine • Startup , shutdown, cache recycle • In a perfect world, INFO is all you’ll ever see. @dylanbeattie

happycode

DEBUG http://hyperboleandahalf.blogspot.co.uk/ @dylanbeattie

happycode

http://hyperboleandahalf.blogspot.co.uk/ @dylanbeattie

happycode

@dylanbeattie

happycode

log.Fatal Log.Error log.Warn log.Info log.Debug ――――― Wake_Me_Up_At_4AM_On_A_Sunday () ――――― Apologize_To_User_And_Raise_A_Ticket () ――――
Tell_Me_If_This_Happens_1000_Times () ――――
Everything_Is_Fine_Just_Checking_In () ――――― Fill_My_C_Drive_With_Stack_Traces () Adapted from a post by Daniel Lebrero / https://labs.ig.com/logging

level

wrong

abstraction @dylanbeattie

happycode

The Rules Of

happycode @dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

interllisense . Sandboxes Oxfordian Kissuth via Wikimedia Commons : https://commons.wikimedia.org/wiki/File:Hyde_Park_sign_post.jpg @dylanbeattie

happycode

@dylanbeattie

happycode

@dylanbeattie

happycode

Life, Liberty, and the Pursuit of APIness The Secret to Happy Code Dylan Beattie @dylanbeattie www.dylanbeattie.net dot net sheff