Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Code like a #FashionVictim
David Nowinsky
April 18, 2014
Programming
0
880
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
29
ngParis #12 - Devops Metrix
davinov
0
71
Devops Metrix
davinov
0
950
Angular <3 APIs
davinov
1
1.1k
Investment opportunities in regulated ICT sector
davinov
0
46
ETIC - Le vote en ligne
davinov
0
52
Other Decks in Programming
See All in Programming
JSのウェブフレームワークで高速なルーターを実装する方法
usualoma
1
1.9k
【Scrum Fest Osaka 2022】スクラムチームに放り込まれた若手エンジニアの皆さん、どのように技術のキャッチアップをしていくかイメージはついていますか?
miiiki
0
120
Let's keep Commodore 64 alive for the next 40 years
mehowte
1
110
JetPackComposeは宣言型プログラミングパラダイムって実はよくわかってないんですが、別に使ってもいいんですよね、
conigashima
0
190
Lancersをコンテナへ本番移行する取り組み
rvirus0817
1
400
The strategies behind ddd – AdeoDevSummit 2022
lilobase
PRO
4
250
GDG Seoul IO Extended 2022 - Android Compose
taehwandev
0
330
クックパッドマートの失敗したデータ設計 Before / After 大放出
mokuzon
0
180
Get Ready for Jakarta EE 10
ivargrimstad
0
870
Power Automateドリブンのチームマネジメント
hanaseleb
0
190
Angular‘s Future without NgModules: Architectures with Standalone Components @enterJS
manfredsteyer
PRO
0
240
Running Laravel/PHP on AWS (AWS Builders Day Taiwan 2022)
dwchiang
0
150
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
151
13k
The Language of Interfaces
destraynor
148
20k
Making the Leap to Tech Lead
cromwellryan
113
7.4k
It's Worth the Effort
3n
172
25k
4 Signs Your Business is Dying
shpigford
169
20k
The Pragmatic Product Professional
lauravandoore
19
3k
Docker and Python
trallard
27
1.6k
A better future with KSS
kneath
225
15k
Clear Off the Table
cherdarchuk
79
280k
Large-scale JavaScript Application Architecture
addyosmani
499
110k
Art, The Web, and Tiny UX
lynnandtonic
280
17k
Building Adaptive Systems
keathley
25
1.1k
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