Joined September 2011
·
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 :?
Posted to
Some cool things from the world of PHP
over 1 year
ago
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.
Posted to
Extracting archives from the terminal easily
over 1 year
ago
There is a tool for it
unp foo.ext
Achievements
77 Karma
0 Total ProTip Views
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013
Altruist
Increase developer well-being by sharing at least 20 open source projects
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Forked
Have a project valued enough to be forked by someone else
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
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/tnoiugIn short: Setup git to perform a
rebase
instead of amerge
after pull for you, instead of doing it on your own manually every time.