33
Small, but Minimalism in web development perfectly formed.

Minimalism in Web Development

Embed Size (px)

DESCRIPTION

Small, but perfectly formed.

Citation preview

Page 1: Minimalism in Web Development

Small, but

Minimalism in web development

perfectly formed.

Page 2: Minimalism in Web Development

2.5 million parts

1,060 valves

1,440 circuit breakers

230 miles of wire

Page 3: Minimalism in Web Development

.. a bit simpler

Page 4: Minimalism in Web Development

=

Page 5: Minimalism in Web Development

=

Page 6: Minimalism in Web Development

“Minimalism describes movements in various forms of art and design … where the work is stripped down to its most fundamental features.”

Page 7: Minimalism in Web Development

“The term minimalist is often applied colloquially to designate anything which is spare or stripped to its essentials.”

Page 8: Minimalism in Web Development

Use simple tools.

Build simple things.(where appropriate)

Page 9: Minimalism in Web Development

1. Small is beautiful.

2. Make each program do one thing well.

3. Build a prototype as soon as possible.

Page 10: Minimalism in Web Development

Lines of codeMoving partsConceptsAPI

Page 12: Minimalism in Web Development

37.7MB source download (.tar.gz)

1.04MB sourcedownload (.tar.gz)

1.2 million lines of code 65,000 lines of code

Client/server architecture

It’s just a file.

v 3.6.17v 5.1.38

Page 13: Minimalism in Web Development

SQLite will work great as the database engine for low to medium

traffic websites..

(which is to say, 99.9% of all websites)

http://www.sqlite.org/whentouse.html

Page 14: Minimalism in Web Development

CSS3

Take hard stuff..

that everyone does

and make it easy.

Page 15: Minimalism in Web Development

CSS3Before

http://nuttersmark.com/blog/web-development/-super-fantastic-resizable-pattern-friendly-css-rounded-corners

<div class='rbox_container' id='rbox'><div id='rbox_holder'><div id='rbox_topleft'></div>

<div class='rbox_top_connector' id='rbox_middle'></div><div id='rbox_topright'></div></div>

<div id='rbox_content'><div id='mainbox'><div class="content">

                    

                 Your Content Goes Here

</div></div></div><div id='rbox_holder'><div id='rbox_bottomleft'></div>

<div class='rbox_bottom_connector' id='rbox_middle' ></div>

<div id='rbox_bottomright'></div></div></div>

Page 16: Minimalism in Web Development

CSS3Before

http://nuttersmark.com/blog/web-development/-super-fantastic-resizable-pattern-friendly-css-rounded-corners

div#rbox{height:auto;margin:20px;float:left;}

div#rbox_holder,div#rbox_topleft, div#rbox_bottomleft, div#rbox_topright,

div#rbox_bottomright,div#rbox_middle,div#rbox_middle_news, div#rbox_middle_full {height:66px;}

div#rbox_holder { width:100%;}

div#rbox_topleft, div#rbox_bottomleft {float:left;width:60px;}

div#rbox_topleft { background:url('top_left_corner.gif') no-repeat 6px -6px;} /* IE6 */

html>body div#rbox_topleft { background:url('top_left_corner.png') no-repeat 6px -6px;}

div#rbox_bottomleft {width:60px; background:url(bottom_left_corner.gif) 0px -12px no-repeat;} /* IE6 */

html>body div#rbox_bottomleft {width:60px; background:url(bottom_left_corner.png) 0px -12px no-repeat;}

div#rbox_topright, div#rbox_bottomright {float:right;width:60px;}

div#rbox_topright {background:url(top_right_corner.gif) no-repeat -14px -2px;} /* IE6 */

html>body div#rbox_topright {background:url(top_right_corner.png) no-repeat -14px -2px;}

div#rbox_bottomright {background:url(bottom_right_corner.gif) -14px -12px no-repeat;} /* IE6 */

html>body div#rbox_bottomright {background:url(bottom_right_corner.png) -14px -12px no-repeat;}

div#rbox_middle {float:left;}

div#rbox div#mainbox {background:#fff;width:648px;margin-left:-11px;padding-left:10px;}

div#rbox div#mainbox div.content {position:relative;top:-50px;}

div#rbox div#mainbox div.content p {margin:0px;}

div#rbox_content {padding:0 20px 0 20px; background:transparent url('right_edge.gif') repeat-y; 665px 0px;}  /* IE6  */

html>body div#rbox_content {padding:0 20px 0 20px; background:transparent url('right_edge.png') repeat-y 665px 0px;}

.rbox_container {width:700px;}

.rbox_top_connector, .rbox_mainbox2_bottom {width:580px; background-color:#fff; }

.rbox_bottom_connector {width:580px; background-color:none; background: url('bottom_edge.gif')  repeat-x 0px -12px;}  /*

IE6  */

html>body .rbox_bottom_connector {width:580px; background-color:none; background: url('bottom_edge.png')  repeat-x 0px

-12px;}

Page 17: Minimalism in Web Development

CSS3

h1 { border-radius: 10px; }

Page 18: Minimalism in Web Development

CSS3border-radiusborder-imagebox-shadowtext-shadow

Transforms, transitions, variables, animation..

Page 19: Minimalism in Web Development

Logo

Curved corners

Shadows

Page 20: Minimalism in Web Development

Logo

Curved corners

Shadows

100% image-free

Page 21: Minimalism in Web Development

Logo

Curved corners

Shadows

(except this bit, of course)

100% image-free

Page 22: Minimalism in Web Development

Graceful DegradationAKA “it doesn’t look completely shit in IE.”

Page 23: Minimalism in Web Development

“a lightweight, high performance web server”

Page 24: Minimalism in Web Development

6.9MB source download (.tar.gz)

0.6MB sourcedownload (.tar.gz)

387,000 lines of code 78,000 lines of code

Threading/forking concurrency model

Event-driven architecture

v 0.8.13v 2.2.13

Page 26: Minimalism in Web Development

+VPS

=

Page 27: Minimalism in Web Development

+VPS

=for static content

+for your application

Page 28: Minimalism in Web Development

Microframeworks.

Page 29: Minimalism in Web Development

Frameworks dolots of stuff.Lots of apps don’tneed much stuff.Microframeworksdo just enough stuff.

web.pysinatra

campinglimonade

djngjunonewfmnmlittyglue

squatting

Page 30: Minimalism in Web Development

from itty import get, run_itty

@get('/')def index(request): return 'Hello World!'

run_itty()

Page 31: Minimalism in Web Development
Page 32: Minimalism in Web Development

Perfection is achieved, not when there is nothing more to add..

but when there is nothing left to take away.