Comments on Is it good practice to change the names of variables in challenges?
Parent
Is it good practice to change the names of variables in challenges?
+4
−0
Today, I have posted my first challenge in Code Golf. I have made the Job in 202 byte.
Someone in comments, have changed variables name. e.g:
From rot
to o
, and this renaming have saved 2 bytes.
So, Is it good practice to change the names of variables in challenges?
Post
+5
−0
Yes
Unless the challenge tells you what to name your function, you're free to use anything. This means that single character names are usually the best option.
Note that anonymous function submissions / lambdas are allowed
For that challenge, you don't actually need to submit anything other than the function; running the function (i.e. assigning a name to it and running test cases) is separate.
0 comment threads