DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square86fedilinkarrow-up1228arrow-down110file-text
arrow-up1218arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square86fedilinkfile-text
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up27arrow-down1·1 year agoYou forgot weekend = dayOfWeek.name[0] == ‘S’;
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up19·1 year agoCan confirm this works completely as expected when the user’s system is set to lang=ES.
minus-squareSchmeckinger@feddit.delinkfedilinkarrow-up11·edit-21 year agoSimple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up1·1 year agotrue but that’s a precondition to some of the other examples as well
You forgot weekend = dayOfWeek.name[0] == ‘S’;
Can confirm this works completely as expected when the user’s system is set to lang=ES.
Simple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
Genius.
true but that’s a precondition to some of the other examples as well