Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 1 year agoCompareBooleanssh.itjust.worksimagemessage-square97linkfedilinkarrow-up1515arrow-down19
arrow-up1506arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 1 year agomessage-square97linkfedilink
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up18·1 year agoMy guess to why there’s two functions is because it was originally only internal, and the programmer realized they needed public as well, but changing internal to public is too scary so they created a new method instead.
minus-squareDragonTypeWyvern@midwest.sociallinkfedilinkEnglisharrow-up1·1 year agoThat does sound scary on general principles
My guess to why there’s two functions is because it was originally only
internal, and the programmer realized they neededpublicas well, but changinginternaltopublicis too scary so they created a new method instead.That does sound scary on general principles