16

Hardest part of my job? Being a professional bracket counter.

Comments
  • 1
    There are plugins for that :D
    I suggest to not waste your time for stuff like that.
  • 3
    You could use an IDE... Just follow the light lines between the brackets ^^
  • 0
    For readability, I've noticed (by reading 5 year old code of myself) it's often better to assign an intermediate value to a variable instead of passing it directly as an argument. The performance impact is so minimal, it's really not worth it.

    So instead of return(len(strrev(replace(a,b,c)))))));, assign the result of, say, strrev in a meaningful variable, like "whatsapp_password". This also helps as self-documenting code because having a value with meaning (your whatsapp password is a strrev of your IMEI so it actually makes sense in the example) tells you what's going on.
Add Comment