Note that there are some explanatory texts on larger screens.

plurals
  1. USShane H
    primarykey
    data
    text
    plurals
    1. COThat's correct -- There's a ton of noise in this area about people who want to render a diff in HTML the way you described. I don't care about that, I won't be rendering the diff at all but instead use the output block-element deltas to drive more powerful visualizations of the differences between different pages and versions of the same page. Appreciate your input, this isn't like anything I've built before and I wanted to try to make sure I'm not over thinking it or missing anything obvious.
      singulars
    2. COClever, but not good. Why is this "most efficient"? It would be a lot more readable to just compare the array_keys($a) to range(0, count($a)). The most clever solution is rarely the best one in my experience. Especially when being clever adds literally no value over the obvious and clean alternative.
      singulars
    3. COHaha, wow. Great reality check. How did I get that in my head? It's one of those things -- 5 second glance at the docs (or my own code written 10 months ago) would've dispelled. A few weeks ago I was looking over the docs on PHP Semaphores, SEM, libevent, posix, etc, and I thought "Huh, why does POSIX extension implement a way to send signals, PCNTL has the same thing" -- And after that, it just became my own conventional wisdom. Anyway, thanks for taking a min to answer. Despite the ignorance of my question -- check out that daemon library if you ever have the need. It's really coming along!
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload