Defense against the dark arts - fighting against magic in programming, hidden complexity and...

Preview:

DESCRIPTION

A talk about code complexity, code obscurity, magic in code, and a few more nefarious practices that one may encounter. We will also be discussing about dealing with these problems, management of technical knowledge and coding elegance.

Citation preview

Defense against the dark arts

How to fight black magic and other nefarious practices

What is magic?

Arthur C. Clarke

Any sufficiently advanced code is indistinguishable from magic. Or something to that effect.

Complexity/statement

Straight from google.com

Or this little gem

Ok, big gem

Obscurity/code block

Sample code

How do you call this and why?

Why is this bad?

The magic community frowns on your shenanigans

What is magical thinking?

Paradigm opacity

StackOverflow copy-pasta

Test your assumptions

Examples and paraphrasing

Heavy wizardry examples

Inheritance vs composition

Security practices

Security practices

Garbage collection

Garbage collection

Design patterns

Design patterns

Functional programming

To wrap it up

Magic is a part of our lives

Manage it, don’t pretend it doesn’t exist

Educate yourself

Educate others

Hang around the wizards

Q & A

Fill the feedback form

May you grow a long beard

Recommended