Thelie@sh.itjust.works to Programmer Humor@programming.devEnglish · 5 months agoProgramming as a hobby means I can do whatever I want!sh.itjust.worksimagemessage-square14fedilinkarrow-up110arrow-down10
arrow-up110arrow-down1imageProgramming as a hobby means I can do whatever I want!sh.itjust.worksThelie@sh.itjust.works to Programmer Humor@programming.devEnglish · 5 months agomessage-square14fedilink
minus-squarejimitsoni18@lemmy.ziplinkfedilinkarrow-up1·5 months agoAlso you can use enums insteas of string literals
minus-squareThelie@sh.itjust.worksOPlinkfedilinkarrow-up0·5 months agoI’m not sure how I would go about this in an elegant way since I’m matching the string I get from a message…
minus-squarejimitsoni18@lemmy.ziplinkfedilinkarrow-up1·5 months agoIf the message used enums for actions/procedures like SPAM_MEMES, then using enums would be more performant
Also you can use enums insteas of string literals
I’m not sure how I would go about this in an elegant way since I’m matching the string I get from a message…
If the message used enums for actions/procedures like SPAM_MEMES, then using enums would be more performant