1,904 reputation
515
bio website blog.herby.sk
location Slovakia
age 40
visits member for 2 years, 8 months
seen 3 hours ago

Garbage-collecting duck-typer. Test-infected. Hopefully he is not alone who would like UNIX rewritten with GC memory and closure support in system, kernel API in Javascript, (Python, Ruby, Smalltalk), and C layer deprecated and emulated on top of the former.

I use Windows on workstation and FreeBSD on server.

Recently dipped myself into the mobile app world.


Jul
17
answered Post-hoc testing in TDD recommended?
Jul
16
comment What is a normal “functional lines of code” to “test lines of code” ratio?
@KonradRudolph: I did not pretend anything, I just put it very densely [the price ... is at ... time-to-market], as is often the case with me; but it meant what I said in the reply to you.
Jul
16
comment What is a normal “functional lines of code” to “test lines of code” ratio?
@KonradRudolph: It isn't when compared to the price of finding errors later, and it also saves a lot more in simplicity of the result system. In TDD, you should grow system from test-to-test, using simplest thing that work. In reality, you end up with simpler implementation. So no, it is not pricey, and no, I am not doing things wrong (I know very well it is hard to write good tests).
Jul
15
comment What is a normal “functional lines of code” to “test lines of code” ratio?
It depends on what you mean by "methods are long". What image it created in my head, is that methods are unnecessary long, doing too much work and having too much responsibilities (often having too many parameters). In that case, such method needs proportionally more combinations to cover by tests, so I don't think the ratio would change much...
Jul
15
comment What is a normal “functional lines of code” to “test lines of code” ratio?
... vaguely remember ... I already don't remember where it was (maybe in the Kent Beck's TDD By Example, maybe in somewhere in c2.com). I remember the meaning, though, that three times more test code than production code is ok.
Jul
15
comment What is a normal “functional lines of code” to “test lines of code” ratio?
@ElYusubov: I don't agree that it's "pricey" at all. It seems so for those who still count amount of work in LOCs. But the price is not in LOC, it is in money and time-to-market. And there, TDD is not more pricey than any other reasonable development process.
Jul
15
comment What is a normal “functional lines of code” to “test lines of code” ratio?
@tomwrong: In Kent's book he cites Ward that you should write tests until your fear transforms into boredom.
Jul
15
answered What is a normal “functional lines of code” to “test lines of code” ratio?
Jul
5
comment Is committing/checking in code everyday a good practice?
+1 merge conflicts
Jul
3
comment UI message passing programming paradigm
I also thought of CQRS, but the question was about UI paradigm, and CQRS is general. So I wonder if this was the sought answer of there is something else there.
Jul
2
awarded  Enlightened
Jul
2
comment How do you call the process of taking a part of a function and making an individual function of it?
@LarryHector: I'm not sure it's (GoF) Design Patterns. There is thing called Template Method there that is a bit similar, and of course DP is fundamental read, but Extract Method as well as lots of other refactorings are in fact in other piece of literature and that is Martin Fowler's Refactoring.
Jul
2
awarded  Nice Answer
Jul
2
answered How do you call the process of taking a part of a function and making an individual function of it?
Jun
29
comment Why is HTML/Javascript minification beneficial
@chilis42: The servers are able to serve pre-gzipped file from the filesystem itself, if that's the problem.
Jun
19
comment Why are so many languages passed by value?
Also, passing expression by temporary reference can lead to bad bugs (in stateful language), when you happily change it (since it's just temporary), but then it backfires when you actually pass a variable, and you must devise ugly workaround like passing foo+0 instead of foo.
Jun
19
answered Why are so many languages passed by value?
Jun
19
comment Benefits of classic OOP over Go-like language
+1 for "not necessarily the best one". Citing Alan Kay: "I invented the term Object-Oriented, and I can tell you I did not have C++ in mind." (nor did he have C# and/or Java, I would humbly guess)
Jun
8
answered What are Some Real World Usage Scenarios for node.js
Feb
14
comment New to TDD. Should I avoid private methods now?
"It's my understanding that private methods make objects more encapsulated, thus more resistant to change and errors. Thus, they should be used by default and only those methods that matter to clients should be made public." This seems to me like counter point of view of what TDD is trying to achieve. TDD is development methodology that leads you to create simple, workable and open-to-changes design. Looking "from private" and "only publicize..." is turned around completely. Forget there is such a thing as a private method to embrace TDD. Later, do them as needed; as a part of refactoring.