Tag Archives: maintainability
Data IDs, part 2
Following up on the different types of IDs from last time, it’s often useful to have an ID that can be sent in a URL. The unique ID may not be appropriate for many reasons. Many systems use something called a slug for this purpose. A slug must be unique, but can change under some… Read More »
Data Structure IDs
Several times in my career, I’ve needed to deal with data structures that lasted more than a short period of time. Sometimes they were actual objects, sometimes just collections of data that belong together without any actual behavior. Many times these structures needed to be stored somewhere. When working on projects like that, I find… Read More »
Are 5-line methods a great idea?
I need to write up a rebuttal of 5 line code principle. My experience has been that it is sometimes useful to extract a concept as a method when it makes sense by itself and can be named. If you can’t think of a good name that covers the concept, then you don’t have a… Read More »