this post was submitted on 20 Dec 2024
91 points (93.3% liked)

Programming

17666 readers
361 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
91
Don't DRY Your Code Prematurely (testing.googleblog.com)
submitted 2 days ago* (last edited 19 hours ago) by [email protected] to c/[email protected]
 

DRY = Don't repeat yourself

you are viewing a single comment's thread
view the rest of the comments
[–] AnyOldName3 2 points 21 hours ago (1 children)

This is silly. Everyone knows that DRY is telling you that if you do the same sequence of mouse clicks three times in a row, you should spend the day writing a script to automate the task instead of quickly finishing what you were doing by doing the same sequence of clicks a fourth time. If you are supposed to apply it to the code you write, then there'd never be boilerplate-heavy languages like Java.

[–] [email protected] 1 points 21 hours ago (1 children)

OOT, I'm pretty sure I saw you on OpenMW forum before

[–] AnyOldName3 1 points 20 hours ago (1 children)

I'm one of OpenMW's developers, so that's understandable.

[–] [email protected] 2 points 20 hours ago (1 children)

Ahh yes. Nice to see you on the Fediverse.

[–] AnyOldName3 1 points 19 hours ago

We've had [email protected] for ages, and been present on Mastodon and Matrix for a long time, too.