A running list of weird Swift things I encounter.

These are a few ideas for interview questions that explore some of the odd nuances of swift?

What will the following code print?

class Bla {
var closure1: Action?
var closure2: Action?
}
let bla = Bla()
bla.closure1 = {
print("hello…

--

--

git status Get a visual of current changes. red changes are unstaged changes. Green changes are staged changes.

I use the following to clear all changes

git reset Unstage your changes

git checkout .

git checkout -- .

git clean -f -fd -fx

--

--