this post was submitted on 22 Jun 2023
89 points (90.8% liked)

Programmer Humor

32396 readers
468 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

That's intentional. So if one part of the code suffers a random mutation and spontaneously develops a bug, the redundant code can still ensure the proper functioning of the program while the bug gets fixed.

Just take care if you merge two branches that contain the same bug; you might end up with a program without functional redundant code. That's why you should never merge closely related branches.

[–] [email protected] 1 points 1 year ago

It's how ~~isoforms~~ functions with different signatures evolve. As long as it isn't harmful it tends to stick around. Then the different code may develop adaptations which fit it into a niche if it is a selective advantage for the ~~organism~~ code base.

[–] nero 3 points 1 year ago

didnt expect to see neuro here

[–] [email protected] 2 points 1 year ago

Applying the (DRY) Do Repeat Yourself principle.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Depends on what you are developing & the language used but a simpler codebase is the definition of security/privacy by design that's how you get more power.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

it's... interlocked safety, shut up.

[–] [email protected] -1 points 1 year ago

As an AI herself, she's right.

load more comments
view more: next ›