you are viewing a single comment's thread
view the rest of the comments
[–] 63 points 1 year ago (1 child)

This isn’t sufficiently enterprisey for Java. There should be a Roman numeral factory followed by relevant fromString and toInteger methods.

  • source
  • hideshow 1 child comment
  • [–] 15 points 1 year ago

    Ugh. Literally refactored multiple factories into straightforward functions in the most recent sprint where I work.

    Someone saw a public factory method which was a factory for a reason and just cargo culted multiple private methods using the same pattern.

  • source
  • parent