Skip to content
quotesby

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

  • web development
  • graphic design

Putting it to work

  • duplicate DOM nodes with same coordinates
  • maintain consistent layout

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

  1. double value; /* or your money back! */ short changed; /* so triple your money back! */

    Permalink to quote #236
  2. I think I'm happier with that. $rubyometer += 0.3 or so. :-)

    Permalink to quote #235
  3. 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

  1. 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
  2. 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
  3. Simple things should be simple, complex things should be possible.

    Alan KayAlan Kay quote #4