Viewing a single comment thread. View all comments

hpstring t1_j8x5iyh wrote

I'm a beginner in this field and I was wondering what it means for code to be "centralized" and "dry". Does "centralized" mean putting a lot of code in a single file and "dry" means raw code that is not very easy to read but is efficient or have some other advantages?

1

baffo32 t1_j8zbmua wrote

dry is a very basic software engineering principle that means to include only one copy of every sequence of code. it looks like machine learning people did not learn this as they weren’t trained as software engineers. DRY stands for “don’t repeat yourself”, and if not respected then it gets harder and slower more and more to maintain, improve, or bugfix software, the larger and older it gets.

2

baffo32 t1_j8zbuup wrote

i think by centralized they mean what they imagine dry looking like, putting code in one place rather than spreading it out. it’s not usually used that way. it’s a reasonable expression though; people usually centralize components so there is one organized place to go to in order to access them.

2

hpstring t1_j8zw7i5 wrote

Lots of thanks! I didn't receive training from software engineering perspective, which seems to be an important aspect in machine learning.

1

baffo32 t1_j90uucx wrote

it’s important if you’re publishing large software packages of course lots of hobbyists also learn in the field

1