Jetpack/Design Guidelines: Difference between revisions

Jump to navigation Jump to search
we can definitely do new-less construction; remove comment questioning that
(add recommendation around naming of things)
(we can definitely do new-less construction; remove comment questioning that)
Line 63: Line 63:
  let Panel = require("panel").Panel;
  let Panel = require("panel").Panel;
  let panel = Panel();
  let panel = Panel();
''[Myk: this is subject to investigation for implementation feasibility; jQuery does it, but I'm not sure we can reuse its implementation.]''


Method names should be verbs, e.g. <code>show</code>, <code>post</code>. Property names should be the simplest accurate conventional or idiomatic label for their value (e.g. <code>persistent</code> for the boolean property of a visual feature that specifies whether or not the feature remains visible all the time).
Method names should be verbs, e.g. <code>show</code>, <code>post</code>. Property names should be the simplest accurate conventional or idiomatic label for their value (e.g. <code>persistent</code> for the boolean property of a visual feature that specifies whether or not the feature remains visible all the time).
canmove, Confirmed users
2,056

edits

Navigation menu