Here’s The Thing About Occam’s Razor

I saw two abuses of Occam’s razor recently, though I don’t have the links, so I am just going to rage-post this.

Occam’s razor

Plurality is not to be posited without necessity

Misuses of Occam’s razor

  1. “This explanation is simplest, so by Occcam’s razor, it’s the best.”

    Occam’s razor DOES NOT SAY THAT THE SIMPLER EXPLANATION IS ALWAYS BETTER. It says that the simpler explanation that also explains all the observations is preferred.

  2. “This explanation is simpler and fits all the observations, so Occam’s razor proves it is correct.”

    Occam’s razor does not ever prove any argument. It suggests that we should “prefer” the simpler explanation. But since we cannot every know all the facts, then we cannot be certain we are overlooking a complicating factor.

That is all.


Autolayout Constraints in Emoji — Maximum Readability

Programmatically creating Autolayout constraints is famously dense to read, although the strongly-typed visual format makes some easier to parse visually.

With that in mind, which is easier to read?


let subView1 = UIView()
let subView2 = UIView
let constraint = NSLayoutConstraint(item: subView1, attribute: .left, relatedBy: NSLayoutRelation.equal, toItem: subView2, attribute: .right, multiplier: 1.0, constant: -10)
constraint.priority = 900.0

Or this:1

view.📌(subView1 ⬇️=⬆️ subView2 + 10 ‼️ 900.0)

Read More »