Null Element Pattern in Elm
billperegoy
203

There’s a frustrating “we don’t need no stinkin’ design patterns” attitude one sometimes runs across in the Elm community when what is really called for is a recognition that the design patterns will be different from those used for OOP. A cynical reading of the situation would say that the most frequently advocated “design pattern” is throw it all together and let the type system sort it out. 😕

But there is one design-pattern-ish change I would recommend to your post: reverse the order of the parameters to `userAttribute` because this will make it work better with the pattern of constructing code using pipes.

Like what you read? Give Mark Hamburg a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.