24

Is it even legal to code with accents on your variables? 🤔

Comments
  • 6
    It shouldn't be.
  • 2
    @jespersh Someone on our team *actually* tried that once. Let's just say it resulted in a firmly worded email where everyone else on the team was copied in.

    No-one dared do it after that.
  • 3
    Use numbers, much better:

    thing1

    thing2

    thing3

    otherThing1

    ...
  • 1
    It depends.
  • 2
    God no, even if your language of choice allows for it or utf characters. Don't.

    Your code may enter a system, environment or console that doesn't work with it.
  • 6
    I'd hit the person in the face. With chair.
  • 8
    @AlmondSauce To be fair... I find it hillarious to code using emoji :D Would never push to production but... I had few easter eggs left for reviewing members to see if they actually review it. Code was fully working but had a few emojis as class names/functions/variables. As expected, he missed it and when I posted in our slack - was put in the "office" to talk to the manager about his overlooking.

    ps. This was done intentionally, since there were times when he passed shitty code from juniors into production. So as a reminder - even seniors can fuck with you :D
  • 4
    For better readability, I would also reduce the variable names to only one letter with accent
  • 0
    no problem unless the message between developers and code is understood
  • 0
    @rutee07 has raha hu me
  • 3
    Any character not in US-ASCII-7 in code I have to work with, will be removed instantly upon finding.
    Multiple findings can result in damage to the authors mental health.
    Repeated findings on successive events can lead to severe damage of the authors bank account, as they might very possibly get fired.
    ... for incompetence!
  • 0
    It actually makes me wonder, how do Chinese code? Just Pinyin, or they use Chars?
  • 0
    @Epolepole they use their keyboard like everyone else? ^^
  • 1
    Nah i just zalgo my variables
  • 0
    ok I know a song to describe that

    https://youtube.com/watch/...
  • 0
  • 0
    Last week i had a discussion withy colleague. I asked him, if asian people code in asian letters. First i thought he will laugh at my joke but then he showed me some non english base programming languages.
  • 0
    @daniellampl A dozen years ago I had to write a wrapper from Delphi 5 to a compression algorithm. I *think* it was 7zip, but I am not sure.

    However, most comments were in Japanese. Luckily the API was very intuitive.
  • 0
Add Comment