/* now make a new head in the exact same spot */
About this quote
- What does it mean?
- The comment instructs to create a new head element at the same location as an existing one.
- In plain terms
- Make a new head in the same spot.
- What can you take from it?
- Reuse precise positioning when adding UI elements.
Where it applies
Putting it to work
Questions to consider
- Why duplicate instead of move?
- What are the performance impacts?
Another view
Duplicating elements can cause overlap or performance issues.
More from Larry Wall
double value; /* or your money back! */ short changed; /* so triple your money back! */
Permalink to quote #236 I think I'm happier with that. $rubyometer += 0.3 or so. :-)
Permalink to quote #235 And in the limiting case where the optimizer is completely broken because it's not implemented yet, we get to work around that too. Optionally...
Permalink to quote #234
Related quotes
Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining.
Jef RaskinJef Raskin quote #1 The best thing software can be is easy, but the way to do this is to get the defaults right, not to limit users' choices.
Paul GrahamPaul Graham quote #2 Simple things should be simple, complex things should be possible.
Alan KayAlan Kay quote #4