Skip to content

Comment on Is anybody else using ridiculously long variable names?

Comments

Yes. I had an application that had to interact through REST services with a second application. Three specific variables needed to be passed back and forth. Unfortunately, they were given entirely different names in the different systems so I ended up with:

    firstSystemNameAKAsecondSystemName
Nobody was confused.

I'd probably find that annoying in a code base. This is what the idea of a Bounded Context (See [1]) in DDD solves. Within your application's bounded context, call it whatever makes sense to your application, with an anti corruption layer to translate between the two.

[1]: http://martinfowler.com/bliki/BoundedContext.html

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.