Radu iscu defense against the dark arts

36

description

CodeCampIasi25Oct2014

Transcript of Radu iscu defense against the dark arts

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