228 karma · joined Dec 20, 2010 (15y ago) · 172 submissions
comment 6y ago · link · parent
First, the distribution of tax payers to different marginal tax rate brackets differ. That is, how many percent of US tax payers actually pay top marginal rate vs how many in Belgium do.
Second, the differences in purchasing power. What does the average income (or the top income for that matter) actually get you in different countries.
comment 8y ago · link · parent
If given
1. Player can have a Weapon
2. Sword is a Weapon
3. Wizard is a Player
The from the statement "Wizard cannot have a Sword" follows a contradiction that "Player cannot have a Sword".
comment 8y ago · link · parent
I've been trying to say the exact oppisite. C, C++, Javascript, all those languages provide ways to define abstract datatypes that cannot be circumvented (by "normal" code. Even Haskell has unsafePerformeIO). My latest argument was that people decide not to use those abstractions not because they are unavailable, but because it is more ergonomical or performant not to. The same happens even in ML, not all data is abstracted as an abstract data type.
comment 8y ago · link · parent
I admit that I kinda pushed you into it, but you are moving the goal post. People indeed use public fields in languages like C and Javascript.
In C it's often done for the sake of performance. Hiding data behind a pointer has a cost.
In Javascript I would say it's lazyness above all. Front end programs often aren't that big nor pinacles of code quality.
But it is possible to define abstract data types in both languages. ML makes it a bit easier and some times even more performant, but it doesn't "own" the idea.
Abstractions are quite like immutability. You can enforce both in many languages, some just give you better tools for it.
comment 8y ago · link · parent
The c++ version of your example would be, if I understood your code correctly, to take an std::vector as an constructor parameter, copy it to an private field and sort it.
comment 8y ago · link · parent
comment 8y ago · link · parent
Or to go on to the next sprint with the same task. But here lies the problem in many cases. The sprint is taken not as a time box but as a deadline. A sprint should meen: "You can work 2 weeks, 5 days a week, 8 hours a day on this. Then you stop to think."
comment 9y ago · link · parent
Caller has no problem just ignoring the methods that it doesn't need. But the implementer doesn't have that possibility. If you have a read-write interface and a read-only source, you need to resort to subpar solutions like throwing an exception.
comment 10y ago · link · parent
But it is. Insurance works by pooling money from a group of people where only few are going to use it.
>People never ask "So, what does this drug/treatment cost?" but rather "Do you accept my insurance?"
Which makes sense, as survival and physical and mental well-being are humans primary needs.
comment 10y ago · link · parent
As a CS graguate, I would call it the halting problem. A mathematician would refer to the Gödel's incompleteness theorems. No formal system without paradoxies can be used to prove all true statements.
comment 10y ago · link · parent
comment 10y ago · link · parent
The lessons by Raymond are also given in the context of OSS. Unfortunately it would be extremely difficult to find a team of developers that are passionate about the kind of stuff that SAP is written to solve, for example.
The lessons of Robert Martin and others are about how to be a professional developer. When you are writing software for someone else to use and they pay you money to do it, it is your reaponsibility to think about quality, extensibility and maintainability. It is not your job to express your self.
My take is that the point of TDD being so rigid is that a professional should always follow best practices, not just when they feel like it or when it is easy or convenient to do so. But TDD is an ideal and sometimes, or maybe even most of the time, there are externalities that make you fall short of that ideal.
comment 10y ago · link · parent
When reading Uncle Bob and others I have always got the feeling that the "goal" of the practices described is to have systems that can be maintained and extended for years by different people and teams. It never crossed my mind that Uncle Bob would recommend TDD for that tic-tac-toe I wrote to learn Buzzscript.
comment 10y ago · link · parent
What you do have in webapps is synchronization between concurrent processes. For that the STM primitives don't offer much. The core.async on the other hand is a great fit.