this post was submitted on 20 Dec 2024
94 points (92.7% liked)

Programming

17668 readers
167 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
94
Don't DRY Your Code Prematurely (testing.googleblog.com)
submitted 2 days ago* (last edited 1 day 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
[–] [email protected] 1 points 1 day ago (2 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 1 day ago (1 children)

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

[–] [email protected] 1 points 1 day ago (1 children)

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

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

Ahh yes. Nice to see you on the Fediverse.

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

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