illusionist@lemmy.zip to Programmer Humor@lemmy.ml · 7 days agoChild labour with 10 years of experience, 'AI-native' accepting 250k lines of Cursor codelemmy.mlimagemessage-square200fedilinkarrow-up1773arrow-down114
arrow-up1759arrow-down1imageChild labour with 10 years of experience, 'AI-native' accepting 250k lines of Cursor codelemmy.mlillusionist@lemmy.zip to Programmer Humor@lemmy.ml · 7 days agomessage-square200fedilink
minus-squareColdus12@reddthat.comlinkfedilinkarrow-up1·edit-26 days agoIn what world? 1k lines is a lot… Even a few hundred can take hours if everything is unknown, code is legacy, and naming is bad. Like if there is a line like this memcpy(ptr, src, 4 * 6 * sizeof(real)); What’s that 4? What’s that 6? Is real a float? A double?? What are we copying, where, why??? This is a line I saw recently. 1k code is huge even if readable.
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up1·6 days agoOk, sure, for low-level C/C++ code with memory management and such it takes a lot longer than 2h per 1000 lines. For business logic in higher-level programming languages it’s usually fine.
In what world? 1k lines is a lot… Even a few hundred can take hours if everything is unknown, code is legacy, and naming is bad.
Like if there is a line like this
memcpy(ptr, src, 4 * 6 * sizeof(real));
What’s that 4?
What’s that 6?
Is real a float? A double?? What are we copying, where, why???
This is a line I saw recently. 1k code is huge even if readable.
Ok, sure, for low-level C/C++ code with memory management and such it takes a lot longer than 2h per 1000 lines. For business logic in higher-level programming languages it’s usually fine.