DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square92fedilinkarrow-up1233arrow-down111file-text
arrow-up1222arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square92fedilinkfile-text
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up27arrow-down1·1 year agoYou forgot weekend = dayOfWeek.name[0] == ‘S’;
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up20·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