Joined September 2011
·

Sebastian Krebs

Unister GmbH
·
Berlin, Germany
·
·
·

Posted to Please, oh please, use git fetch over 1 year ago

Saying "Don't use X, but ask somebody else why" is no tip, but a waste of time. Anyway, the tip is not completely right too: There is nothing wrong with git pull, as long as you know, what you are doing (ask your coworker ;)). It is somehow ironic, that I've found the real answer on coderwall: https://coderwall.com/p/tnoiug

In short: Setup git to perform a rebase instead of a merge after pull for you, instead of doing it on your own manually every time.

Posted to PHP Private Class Member Visibility over 1 year ago

I don't get, why the other comments say, it makes sense. Calling $totallyDifferentObject->myPrivateProperty shouldn't work (--> encapsulation) and especially it shouldn't depend on where it happens :?

2 Remove duplicate values from the array

ehm...

$array = array_unique($array);

3 Variable variable names

Seriously: Don't use it. Its a good way to introduce hard to find bugs and to annoy your coworkers.

There is a tool for it

unp foo.ext
Achievements
77 Karma
0 Total ProTip Views