326 reputation
16
bio website beebo.org
location London, United Kingdom
age 38
visits member for 3 years, 11 months
seen Aug 7 at 12:57

Feb
11
awarded  Popular Question
Oct
15
comment Are there any design patterns that are unnecessary in dynamic languages like Python?
@faif Norvig's paper was written in 1996, before Python had iterators. (It seems they arrived in version 2.1 python.org/dev/peps/pep-0234/.)
Apr
25
answered Is it OK to split long functions and methods into smaller ones even though they won't be called by anything else?
Mar
6
awarded  Yearling
Mar
6
answered Using testing branches in Git
Mar
6
comment Using testing branches in Git
@cpa Not quite sure what you're after. You want some software that helps testers figure out what branches are available for testing, and switches branches for them? Or a process for testers for follow?
Mar
6
comment Should I test inherited methods?
Good point re Liskov's substitution principle, you're right that if this holds, the derived class will pass all the base class's tests. However, LSP is frequently violated, including by xUnit's setUp() method itself! And pretty much every web MVC framework that involves overriding an "index" method also breaks LSP, which is basically all of them.
Mar
5
awarded  Nice Question
Mar
5
revised Should I test inherited methods?
added 6 characters in body
Mar
5
comment Should I test inherited methods?
@CodesInChaos Yes, that could be a bad example. But the same problem applies whenever you have inheritance.
Mar
5
comment Should I test inherited methods?
I like the argument that behavioural testing is orthogonal to the way class happen to be constructed. It does seem a bit funny to completely ignore inheritance, though. (And how to you manage the shared tests, if you have a lot of inheritance?)
Mar
5
awarded  Editor
Mar
5
revised Should I test inherited methods?
Added equivalent formulation
Mar
5
awarded  Student
Mar
5
asked Should I test inherited methods?
Nov
2
awarded  Teacher
Nov
2
answered high level design of a browser layout engine?
Jul
29
comment Are there any design patterns that are unnecessary in dynamic languages like Python?
According to Norvig, 2 of the 16 (Interpreter and Iterator) are "either invisible or simpler" due to macros (which Python doesn't have).
Apr
2
awarded  Supporter