I have been writing python OO for a while and every time when I create a method, I always ask myself, should this be instance method or staticmethod (or classmethod)? As you might already aware that the difference between instance method and static method is that static method doesn’t have access to the instance, same… Read More »
http://blog.codepipes.com/testing/software-testing-antipatterns.htm The above article talks about some anti-patterns in tests, personally I agree most of them especially anti-pattern on “Treating TDD as a religion”.
“In our industry, every technology generates what I call a “galaxy.” These galaxies feature stars but also black holes; meteoric changes that fade in the night, many planets, only a tiny fraction of which harbour some kind of life, and lots of cosmic dust and dark matter. Examples of galaxies are, for example, .NET, Cocoa, Node.js,… Read More »
Was thinking of a primary school classmate, typed in the name and returned a lot of result of various people, wonder what shows up now if I type in my Chinese name? (Yes I have done it before, years ago) And results are some PHP Dokuwiki plugins I wrote 9 years ago! Like… https://www.dokuwiki.org/plugin:tablemath, and this https://www.dokuwiki.org/plugin:autoincludeindex,… Read More »
After been through some tutorials of Laravel, it’s quite obvious that Django pwns Laravel in any day (if you know Python). There are a lot of manual process in Laravel that Django would have made it so easy, note this is not the same “black magic” that Laravel provides. Python vs PHP Since I am… Read More »
During the last day of Christmas break I’ve spent a few hours trying to pick up Laravel again, from the beginning. I remember I blogged about Laravel back in 2016 (time flies!), and reading them again, I am surprised that what I thought back in 2016 still applies today. Today I am going to talk… Read More »
Just a note to myself that when multiple keys added ssh agent, the key at the top of the keychain needs to be the bitbucket one, as it won’t try all the keys.