Everything is a $ABSTRACTION and Microkernel Hell

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Solar wrote: And besides, originally we talked about OS design, and honestly - if a developer cannot work correctly unless he's got a "safe" language runtime and GC to take him by the hand, I don't want him near OS code anyway. But that's just MO. ;)
Well, just yesterday, trying to clean up one particular misfunctioning piece of code, I was thinking something like: world would probably be so much better place, if all programming code had to be written with editors without a copy-paste function.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

mystran wrote:world would probably be so much better place, if all programming code had to be written with editors without a copy-paste function.
ROTFL... I know exactly how you feel. :-D
Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

Or if your product wasn't rated by the amount of LOC - which promotes that kind of programming - but by the amount of LOC versus the amount of used features realised by that code.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

I much prefer if my work is rated by how good it works.

Counting LOC is like measuring the psi of a boxer's punch. It doesn't tell you sh*t about how good a boxer he is.
Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

Solar wrote:I much prefer if my work is rated by how good it works.

Counting LOC is like measuring the psi of a boxer's punch. It doesn't tell you sh*t about how good a boxer he is.
Amount and content of punches versus quality of knock-out and following of rules is a pretty fair indication afaik. At least, the only way to cheat it is to make short simple code that does a lot - which is what I want.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

I'd say if you measure programming work by how long it takes until there are no more serious bugs vs the number of features, then it's highly likely that any well scoring code will also have relatively low LOC count for the number of features, as soon as there is anything non-trivial required from the code.

Besides, large LOC count isn't bad in itself. It's just that if there's duplication in the code, then if said duplication has to be changed (say, there's a bug, or requirements change or expand) then the changes have to be made in several places, and this is where the problems come.

Hence, for any non-trivial combination of features, only well written code is ever likely to reach the point of "no more serious bugs." Ofcourse the code might not starts it's life as "well written" but sooner or later it has to be refractored, if continued maintenance with finite time investment is desired. :)
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
Post Reply