15 Matching Annotations
  1. Jun 2017
    1. static bool operator >(CSSRuleData& r1, CSSRuleData& r2) { int spec1 = r1.selector()->specificity(); int spec2 = r2.selector()->specificity(); return (spec1 == spec2) : r1.position() > r2.position() : spec1 > spec2; }

      c++ code... but cannot understand......

  2. May 2017
    1. Firefox 使用的是 Gecko,这是 Mozilla 公司“自制”的呈现引擎。而 Safari 和 Chrome 浏览器使用的都是 WebKit。

      webkit -> 开源

    1. // good const errorMessage = 'This is a super long error that was thrown because of Batman. When you stop to think about how Batman had anything to do with this, you would get nowhere fast.';

      known for the first time ...... but I think tried to not write a long string....

    2. // good inbox.filter((msg) => { const { subject, author } = msg; if (subject === 'Mockingbird') { return author === 'Harper Lee'; } return false; });

      why not using else to return false is a good one?

  3. Oct 2016
  4. Jun 2016
    1. svg.selectAll("circle") .data([32, 57, 112, 293]) .enter().append("circle") .attr("cy", 60) .attr("cx", function(d, i) { return i * 100 + 30; }) .attr("r", function(d) { return Math.sqrt(d); });

      the first three circle did not change the position and radius........... why?????

  5. May 2016
    1. The idea behind this design was that it would make programming in JavaScript easier for beginners. In actuality, it mostly makes finding problems in your programs harder because the system will not point them out to you.

      hard to debug......

    2. It would accept almost anything I typed but interpret it in a way that was completely different from what I meant.

      😂 may need lots of time to understand