-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.hacking
38 lines (34 loc) · 1.6 KB
/
README.hacking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"When designing an interface, imagine that your program is all
that stands between the user and hot, sweaty,
tangled-bedsheets-fingertips-digging-into-the-back sex."
-- http://xkcd.com/196/
- Design principle: things happen on screen because the user did
something; things don't happen on their own.
Thus, it's not okay to just query the server every 5 minutes,
get new articles, and display them: the user isn't expecting new
articles to appear on their own.
It's okay to fetch new articles in the background, and maybe
flash a "new articles" icon. But don't interrupt reading the
existing articles.
It's okay to display new articles after the user presses a
"refresh" button or something.
- Notes on DOM::Storage:
http://dev.w3.org/html5/webstorage/
Note that the Storage interface only allows storing and
retrieving strings, so data structures must be JSONified before
storage.
https://developer.mozilla.org/en/storage
http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/usingthejavascriptdatabase/usingthejavascriptdatabase.html
| | sessionStorage | localStorage | database | JSON |
| FF 3.5 | Yes | Yes | No | Yes |
| FF 3.6 | Yes | Yes | No | Yes |
| iPod | Yes | Yes | Yes | Yes |
| Safari 5 | Yes | Yes | No? | Yes |
| Chrome | ? | ? | ? | ? |
- Browser sizes
- droid mini:
w: 360 px, h: 559 px, 96 dpi
=> 3.75" x 5.82"
- iPad air:
w: 768, h: 937 px, 96 dpi
=> 8.0" x 9.76"