DEV Community

Cover image for Code Smell 50 - Object Keys
Maxi Contieri
Maxi Contieri

Posted on • Updated on • Originally published at maximilianocontieri.com

Code Smell 50 - Object Keys

Primary keys, IDs, references. The first attribute we add to our objects. They don't exist in the real world.

Problems

Solutions

  1. Reference object to