qaz@lemmy.world to Programmer Humor@programming.devEnglish · 2 个月前Who cares about time complexitylemmy.worldimagemessage-square58fedilinkarrow-up1399arrow-down11
arrow-up1398arrow-down1imageWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 2 个月前message-square58fedilink
minus-squareCookieOfFortune@lemmy.worldlinkfedilinkarrow-up57arrow-down1·2 个月前This isn’t sufficiently enterprisey for Java. There should be a Roman numeral factory followed by relevant fromString and toInteger methods.
minus-squarevithigar@lemmy.calinkfedilinkarrow-up12·2 个月前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.
This isn’t sufficiently enterprisey for Java. There should be a Roman numeral factory followed by relevant fromString and toInteger methods.
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.