Re:Programmers At Work: Bill Gates (1986)
by skittles on Wednesday February 05, 2014 @09:04PM
(#7188274)
In assembly language, a sub-procedure can save the state of all the registers it will use before using them and then set the state back when it is done (push register values on the stack, do work using those registers, and then pop the state back). This is the safe thing to do, but it wasn't the best way to write code back then. People would use unsafe procedures instead to reduce code size. With that said, I think Bill was talking about the fact that if the program doesn't repeat itself (by using procedures to abstract common idioms), then a mistake would be amplified since it would cause problems for all call sites.
Re:Programmers At Work: Bill Gates (1986)
by hifier on Wednesday February 05, 2014 @09:21PM
(#7188329)
Yeah, I could see interpreting this quote that way. However, if taken literally it implies a very intertwined world. It's probably not fair to to dissect this so much, however.
Re:Programmers At Work: Bill Gates (1986)
by pjscott on Thursday February 06, 2014 @01:03AM
(#7188963)
It was a different time. Intertwining your world made sense if it could squeeze a BASIC interpreter into 4k. Now my laptop has 8000000k of memory.
Re:Programmers At Work: Bill Gates (1986)
by laureny on Thursday February 06, 2014 @08:00AM
(#7190113)
> but 'separation of concerns' and 'loose coupling' have been central to every design decision I've made.
I'm guessing no design decision you've made has ever involved assembly language. Bill Gates obviously knows a little bit more than you on this topic.
Re:Programmers At Work: Bill Gates (1986)
by hifier on Thursday February 06, 2014 @07:53PM
(#7194080)
I'm not claiming to know more than Bill. To backtrack a bit, there are other concerns more primary than these in certain situations (possibly a lot of situations). However, Bill's comment was not about assembly, it was about what 'great' programmers do. Even still, as skittles pointed out, I might have misinterpreted Bill's statement anyway.
"If you’re a great programmer, you make all the routines depend on each other, so little mistakes can really hurt you."
I know things were different back then, and Bill did not have the luxury of building on the wisdom learned over decades of experience, but 'separation of concerns' and 'loose coupling' have been central to every design decision I've made. It's hard to conceive of how one would believe that a tightly coupled, brittle design was a good one.