$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Code like a #FashionVictim
Search
David Nowinsky
April 18, 2014
Programming
0
990
Code like a #FashionVictim
Beautiful code with CoffeeScript, Jade, LESS
David Nowinsky
April 18, 2014
Tweet
Share
More Decks by David Nowinsky
See All by David Nowinsky
Angular on speed
davinov
0
54
ngParis #12 - Devops Metrix
davinov
0
92
Devops Metrix
davinov
0
1.1k
Angular <3 APIs
davinov
1
1.2k
Investment opportunities in regulated ICT sector
davinov
0
65
ETIC - Le vote en ligne
davinov
0
69
Other Decks in Programming
See All in Programming
チームをチームにするEM
hitode909
0
350
AIコーディングエージェント(NotebookLM)
kondai24
0
210
Deno Tunnel を使ってみた話
kamekyame
0
150
AIコーディングエージェント(Gemini)
kondai24
0
240
dotfiles 式年遷宮 令和最新版
masawada
1
790
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
160
認証・認可の基本を学ぼう前編
kouyuume
0
260
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
2.8k
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
140
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
450
AIコーディングエージェント(Manus)
kondai24
0
200
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
120
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
370
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
860
BBQ
matthewcrist
89
9.9k
Marketing to machines
jonoalderson
1
4.3k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Designing for Performance
lara
610
69k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.1k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
22
The Spectacular Lies of Maps
axbom
PRO
1
390
Building the Perfect Custom Keyboard
takai
1
660
Rebuilding a faster, lazier Slack
samanthasiow
85
9.3k
The Cost Of JavaScript in 2023
addyosmani
55
9.4k
Transcript
Code like a #FashionVictim Beautiful code with CoffeeScript, Jade, LESS
Atelier technique #3 18 avril 2014
Hello David Nowinsky @davinov
Browers are like old trees...
Browers are like old trees... New things HTML5 CSS3 Old
roots JavaScript HTML CSS
HTML, JavaScript & CSS are cool
HTML, JavaScript & CSS are cool but...
HTML, JavaScript & CSS are cool but... #FashionPolice
fs.readdir(source, function(err, files) { if (err) { console. log('Error finding
files: ' + err) } else { files.forEach(function(filename, fileIndex) { console. log(filename) gm(source + filename).size( function(err, values) { if (err) { console. log('Error identifying file size: ' + err) } else { console. log(filename + ' : ' + values) aspect = (values.width / values.height) widths. forEach(function(width, widthIndex) { height = Math.round(width / aspect) console. log('resizing ' + filename + 'to ' + height + 'x' + height) this.resize(width, height).write(destination + 'w' + width + '_' + filename, function(err) { if (err) console. log('Error writing file: ' + err) }) }.bind( this)) } }) }) } }) HTML, JavaScript & CSS are cool but... #WTF
HTML, JavaScript & CSS are cool but... #PleaseDont
This is beautiful code def complex_function (a, b, c): if
not a: return None # Raising an exception might be better if not b: return None # Raising an exception might be better if not x: # Some Plan-B computation of x return x # One single exit point short clean use indentation
But bowsers don’t run it :-(
Welcome your saviors
JavaScript without the mess
HTML clean and readable
What CSS should be
Make up with the browser ? ?
Make up with the browser or or
Real life examples
Merci David Nowinsky @davinov Code like a #FashionVictim