Don't Repeat Yourself, a software development philosophy which aims at reducing redundancy and code repetition.
I have a some simple Java code that looks similar to this in its structure: abstract public class BaseClass { String …
java inheritance dry boilerplateFor example, how to avoid writing the 'func_name' twice? #ifndef TEST_FUN # define TEST_FUN func_name # define TEST_…
c c-preprocessor dryI have three controllers that are quite similar. I want to have a controller which these three extend and share …
javascript angularjs dryI know it's not possible to inherit constructors in C#, but there's probably a way to do what I want …
c# dryI want to use the same {% block %} twice in the same django template. I want this block to appear more …
django django-templates dryI find myself using hash arguments to constructors quite a bit, especially when writing DSLs for configuration or other bits …
ruby initialization dry idiomsWhen writing tests with JasmineJS I have many tests that have similar beforeEach/afterEach code. Is there a way to …
javascript testing jasmine dryGiven pointers to char, one can do the following: char *s = "data"; As far as I understand, a pointer variable …
c pointers dryConsider the following code: hash1 = {"one" => 1, "two" => 2, "three" => 3} hash2 = hash1.reduce({}){ |h, (k,v)| h.merge(k =&…
ruby-on-rails ruby hash dryI have a resource defined in my routes. resources :categories And I have the following in my Category controller: def …
ruby ruby-on-rails-3 resources routes dry