Originally posted by silix
View Post
Announcement
Collapse
No announcement yet.
Ubuntu Announces Mir, A X.Org/Wayland Replacement
Collapse
X
-
Originally posted by funkSTAR View PostCanonical Marketing is doing a great job. Positive words for shitty ideas. First Harmony and Unity, now Mir(peace). Nice work marketing. Now lets drink to five years of further fragmentation and building walled gardens.
Comment
-
Originally posted by timothyja View Postyou can do TDD on an existing project.
retrofitted tests (being usually written against the nominal use case's specification) help spot anomalies in the observable effects of the running application
but unlike tdd testcases written before code (possibily more than one for each line of code, for the correct as well as the undesired behaviour), they are not in direct correspondence with the code they test
thus they dont guarantee that the code is minimal (only the one "necessary and sufficient" to make the test pass ie satisfy specifications - minimality which in turn typically makes the code cleaner and more readable) nor that you cannot "change a LoC without at least one test faling" (which is the imperative with pure tdd)
thus dont guarantee against possible hidden bugs
and, they dont account for code documentation - unlike tdd testcases which should possibly suffice to understand the program's internals (since they're a programmatic embodiment of the program's specifications)
Yes its takes a long time to get coverage but it just involves adding tests for any new code.
of course, TDD like other forms of Agile development isnt perfect, far from it - but if anything it gets you code at every iteration ("early release") that you can assume to work (ie code you dont necessarily have to go back to for bugfix testing etc, later) as soon as the iteration is complete (all test passing, assuming tests are correctly written themselves), and is inherently documented and minimal, since the earliest iterations
OTOH, to get this you have TDD should be used from the start , hence canonical's decision
Comment
-
Originally posted by silix View Postit wouldnt be test driven development, but test retrofitted at best..
so you spend a long time (possibly longer than with tdd - since to get a working prototype you rush development ) adding stuff that wont, by itself, make the rest of the code more streamlined, more readable, directly documented or directly mapped over working specs - which you'd possibly get directly using TDD... i fail to see the point of it...
In the case of Mir if TDD is so important than why not push for it to be used by the Wayland project rather than reinventing a stable project.Last edited by timothyja; 07 March 2013, 11:16 PM.
Comment
Comment