the sorry state of frontend code [a talk @ softbinator]

33
THE SORRY STATE OF FRONTEND CODE

Upload: alin-pandichi

Post on 28-Jan-2018

133 views

Category:

Software


3 download

TRANSCRIPT

THE SORRY STATE OF

FRONTEND CODE

DISCLAIMER

Frontend code written by frontend developers is fine, most of the time.

Frontend code written by backend developers is NOT fine, most of the time.

SKIPPING ALL THOSE RULES

THREE SMALL TIPS TO HELP YOU DO WHAT YOU LOVE EVERYDAY

Quick and dirty will do it. We'll revisit it later when things aren't so hectic.

THREE SMALL TIPS TO HELP YOU DO WHAT YOU LOVE EVERYDAY

BUT WE NEVER DO,

DO WE?

BOYSCOUT RULE:

LEAVE THE

PLACE CLEANER

THAN YOU FOUND IT!

Inconsistent naming Abbreviations Unclear intent Big pile of CSS

Commented code Outdated comments

Etc.

LACK OF

S

HIGHCOUPLING

SINGLE RESPONSIBILITY PRINCIPLE

https://alistapart.com/article/writing-testable-javascript

3RD PARTY

DEPENDENCIES

GLOBAL  NAMESPACE POLLUTION

SIDE  EFFECTS

https://www.smashingmagazine.com/2016/06/an-introduction-to-redux/

THANK YOU

Alin  Pandichi Software developer, trainer and coach at

Mozaic Works

@alinpandichi

[email protected]