724
you are viewing a single comment's thread
view the rest of the comments
[-] Coldus12@reddthat.com 1 points 15 hours ago* (last edited 15 hours ago)

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.

[-] balsoft@lemmy.ml 1 points 42 minutes ago

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.

this post was submitted on 03 Aug 2025
724 points (98.3% liked)

Programmer Humor

37567 readers
736 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS