cm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 2 days agoAny day nowimagemessage-square55fedilinkarrow-up1583arrow-down19
arrow-up1574arrow-down1imageAny day nowcm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 2 days agomessage-square55fedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up16·edit-218 hours agoOne of my colleagues submitted a PR with a bunch of emojis in the readmes and log statements and I’m just so infuriated with it.
minus-squarepftbest@sh.itjust.workslinkfedilinkarrow-up5·15 hours agoI just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up3·13 hours agoThere are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
minus-squarepftbest@sh.itjust.workslinkfedilinkarrow-up3·11 hours agoWe don’t use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this: - (! grep -r -I -P '[^\x{00}-\x{7f}©®™°]' src)
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up3·6 hours agoThis is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.
minus-squarewilfim@sh.itjust.workslinkfedilinkarrow-up6·17 hours agoI literally see it everywhere in my companies’ documentation
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up9·edit-218 hours agoYeah, they used ⚠️ in a warning.
minus-squareRagingRobot@lemmy.worldlinkfedilinkarrow-up1·58 minutes agoThey add excessive logging too. I had cursor write some UI code and I thought my console was going to explode. Console logs each step of the way haha. I guess that’s the easiest way for it to debug its own code
One of my colleagues submitted a PR with a bunch of emojis in the readmes and log statements and I’m just so infuriated with it.
I just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(
There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
We don’t use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this:
This is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.
I literally see it everywhere in my companies’ documentation
In the logs???
Yeah, they used ⚠️ in a warning.
They add excessive logging too. I had cursor write some UI code and I thought my console was going to explode. Console logs each step of the way haha. I guess that’s the easiest way for it to debug its own code