OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 6:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: Wed Oct 24, 2007 3:39 pm 
Offline
Member
Member
User avatar

Joined: Thu Mar 08, 2007 11:08 am
Posts: 670
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 1:30 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 12:43 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 1:04 pm 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 1:23 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 1:33 pm 
Offline
Member
Member
User avatar

Joined: Thu Mar 08, 2007 11:08 am
Posts: 670
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group