15
hashedram
38d

The biggest influence on my coding style is my OCD and trust me, its awful.

Comments
  • 0
    Oooh, I'd love to see your code 😍😍

    Wait, what do you mean it's awful?! Code style of yours or OCD?! 🤔
  • 3
    @sladuled The OCD. On really bad days I've spent hours aligning all my assignments so they start and end on the same space. If I don't it feels like someone around me will die. It's a terrible illness and I wouldn't wish it on a dog.

    On normal days, it's minor things like linting every 10 seconds, having all my tabs in the right order, odering my CSS properties in alphabetical order or stuff like that.
  • 1
    I can relate to this. I do similar things: ordering methods, ensuring the variables are proper (not just the name, but camel case / snake case), adding comments between code for my understanding, etc.

    On many instances, this just takes loooong time.
  • 0
    OMG! Reading your comments, I have the exact same issue. I go bonkers when I have to work with another dev (some of the FE devs working with me, don't lint, don't comment, and make a ton of spelling mistakes). Man it's crazy.
  • 0
    @hashedram Yeah, I figured you didn't mean the code was awful, but I wanted to check anyways..

    I know OCD is a bitch to handle, I have it too, though I managed to have it somewhat under ctrl since uni, that is if I'm not under severe stress.. I still count, I still overcheck, I I overwash..

    I wish you all the best with coping & that you too will soon find some peace of mind & ways to handle it with more ease!!
  • 3
    @sladuled That's from one of my chess engines
  • 1
    @hashedram 😍 it looks and 'feels' really nice & clean!! 👍👍
    P.S. how do you decide on how much space to put before & after ' = ' ??
  • 2
    @sladuled Its always one tab after. The before depends on the longest variable in the page. I've had really horrible days where I had to declare a new long variable and ended up re-tabbing the whole page again to line everything up.
Add Comment