watching a talk about something called the "gilded rose kata" so I look it up and my thoughts roughly in order are:

  • wtf is a kata
  • wtf is a "code dojo"
  • why are you storing current time-to-expiry and quality and mutating them that's a fantastic way to introduce all kinds of inconsistency and corruption and fucked up desynchronization bugs
  • this problem is badly underspecified and in some places explicitly self-contradictory. what happens to the quality of conjured cheese? one rule says quality is never above 50 but another rule says this one item is always quality 80. also it never expires so what's the correct thing to do with the SellIn field?
  • [now looking at the python code] why is this a class? there is no reason for this class to exist. this is just a function.
  • why is this function iterating over a list? just process a single item and let the caller worry about how items are organized
Follow

@sjolsen a kata is a concept from martial arts, especially karate. it's a choreographed series of moves used to teach precision of movement and intended to be practiced alone. ive seen "code kata" used to describe programming exercises, because the software industry has a problem with orientalism, i guess. as for the rest of the questions i can't help you there

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!