News for hackers. Stuff that matters.
Re:Creative usernames and Spotify account hijacking by Confusion on Wednesday June 19, 2013 @03:21AM (#5904151)

  They having nothing to do with each other.
  DRY tells us the code for looking up a user id by user 
  name should be written in only one place, not that the 
  code should be called from only one place.
If you write 'canonicalize(username)' in eight different places, you are not being DRY. If you need to write 'canonicalize(username)' in eight different places, your code probably doesn't separate responsibilities properly across separate modules.

As such, they have a lot to do with each other. After all, if you call code from more than one place, you are writing the calling code in more than one place. Lack of DRYness is about the fact that you are doing so. Lack af modularity is about why you need to do so.

There are no comments on this comment yet.