[ Projects
| Toolbox
| References
| My Notes
]
Endian-ness
- Little-endian: in least significant byte first order (the data is represented
"little-end-first"). Intel and VAX machines. 0x1234 =
34 12
- Big-endian: the most significant byte first ("big-end-first"). Unix workstations (Sun boxes).
0x1234 =
12 34
- Network byte order: big-endian.
JavaScript
Rules Of Thumb
- When queuing, always provide backpressure.
- Never hide a change in level in the memory hierarchy. It is better to make things look
more expensive than they are than to make things look cheaper than they are.
- When you have an active object that takes a listener as a constructor parameter, don't start
immediately - provide a start method instead.
- When you have an async request (especially a "stop" request), support detecting when the
request is complete. There are three cases: don't care, block, and callback. If the callback case
is supported, the other two can be implemented in terms of it.
- When doing subscriptions, there are three methods: subscribe, unsubscribe, and refresh.
Refresh is not strictly required, but is useful - it is needed if subscriptions are muxed
downstream.
- In event driven systems, an object whose update is an event should be immutable.
C o m m e n t s :
(nothing yet)