Joined January 2013
·

Yan

Moscow, Russia
·
·
·

@doon Every method in Objective-C goes in pair with plain C function implementing it. self and _cmd are just the first parameters of each implementation, not the reserved keywords.

@hafthor Excellent point, thanks!
Adding ... to macro declaration fixed this issue:

#define weakifySelf(BLOCK...)
Posted to clean untracked files over 1 year ago

Why not git clean -df?
To show what will be removed you can use git clean -ndf.
Also clean-untracked may leave empty directories but git clean removes untracked directories entirely.

Posted to The elegance of the Block over 1 year ago

You do not need weakSelf here. The block lies on the stack, you do not pass it to anywhere or return from a method. So it is not copied to heap and it does not retain variables. Moreover it will be destroyed when method finishes. Just use self.

Posted to Merging Branches Without Checkout over 1 year ago

@skopp Depending on chosen branching model there may be different cases when we need fast-forward. In the article I show a very simplified one, just for example.

Posted to Speed up pushing to Github over 1 year ago

Interesting. Does it work only with github, or it can be used with any git server, e.g. bitbucket?

Achievements
415 Karma
40,256 Total ProTip Views