Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
57
ngParis #12 - Devops Metrix
davinov
0
94
Devops Metrix
davinov
0
1.1k
Angular <3 APIs
davinov
1
1.2k
Investment opportunities in regulated ICT sector
davinov
0
66
ETIC - Le vote en ligne
davinov
0
70
Other Decks in Programming
See All in Programming
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
180
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
470
CSC307 Lecture 03
javiergs
PRO
1
490
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
100
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.2k
組織で育むオブザーバビリティ
ryota_hnk
0
180
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
470
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.3k
dchart: charts from deck markup
ajstarks
3
990
Data-Centric Kaggle
isax1015
2
780
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
190
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
It's Worth the Effort
3n
188
29k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Music & Morning Musume
bryan
47
7.1k
WCS-LA-2024
lcolladotor
0
450
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
86
AI: The stuff that nobody shows you
jnunemaker
PRO
2
260
Become a Pro
speakerdeck
PRO
31
5.8k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
370
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
330
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