Skip to main content
5 events
when toggle format what by license comment
Aug 17, 2021 at 14:18 comment added JimmyJames @Kevin And that's the problem with 'primitive obsession', isn't it. It's hard to refactor your way out of that tarpit.
Aug 13, 2021 at 21:01 comment added Kevin Yeah. I agree. Unfortunately, it being a string is pretty deeply rooted in the code from long before this change (and before my time at this company) so refactoring it would be a pretty large undertaking
Aug 13, 2021 at 20:16 comment added JimmyJames @Kevin That might be something to give feedback on. From what I understand Enums in Java are quite a bit different than in C#. They are typesafe, for one. I think they can be overused but this looks like a situation where they make sense.
Aug 13, 2021 at 19:50 comment added Kevin Those are actually strings, hence the .equals
Aug 13, 2021 at 19:25 history answered AlHassan CC BY-SA 4.0