Re:Mythical man month: 10 lines per developer day
by VectorLock on Wednesday February 12, 2020 @02:26AM
(#22306683)
I once had to work with some outsourced developers who would do "something(); something(); something();..." rather than "for(int i = 0; i < 10; i++) something();" when instructed to repeat something X times.
Re:Mythical man month: 10 lines per developer day
by ascar on Wednesday February 12, 2020 @03:02AM
(#22306847)
It's called loop unrolling and improves performance by eliminating loop control overhead and reducing branch mispredictions. Maybe they had a compiler background :)? /s
Re:Mythical man month: 10 lines per developer day
by ktpsns on Wednesday February 12, 2020 @07:48AM
(#22308366)
If they had, they would know that virtually any compiler can do this on his own.
I also know these examples and I know the people who are writing them. "Copy & Paste" coding is just more convenient for them instead of writing a loop, fizzling with brackets, indation or whatever. They don't produce high entropy code.
Re:Mythical man month: 10 lines per developer day
by downerending on Wednesday February 12, 2020 @01:47PM
(#22311512)
You joke, but I've seen code almost exactly like this in commercial software.
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 +
3 = 45
And so is 3 * 15.