qaz@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agoWho cares about time complexitylemmy.worldexternal-linkmessage-square68linkfedilinkarrow-up1362arrow-down12
arrow-up1360arrow-down1external-linkWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agomessage-square68linkfedilink
minus-squareCookieOfFortune@lemmy.worldlinkfedilinkarrow-up46·8 months agoThis isn’t sufficiently enterprisey for Java. There should be a Roman numeral factory followed by relevant fromString and toInteger methods.
minus-squarevithigar@lemmy.calinkfedilinkarrow-up12arrow-down1·8 months agoUgh. 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.