3 ms·
Well, $white_list and $black_list was easy for me to change to $pass_list and $fail_list. Saves one char and is more explicit about the code intent. I've never
by edoceo 6y ago
Well, $white_list and $black_list was easy for me to change to $pass_list and $fail_list. Saves one char and is more explicit about the code intent.
I've never like colour based names anyway too ambiguous.
- ryanobjc 6y agoAlso it depends on the cultural understanding that white is good and black is bad. Ditto white-hat hacker vs black-hat hackers. If you really want to build something for all times, don't load it up with cultural baggage that will go obsolete.
- Dylan16807 6y agoI would have guessed that fail_list is a list of items that have failed. That's the problem with replacing an actual word with a new term. You get something that would be equivalent, but it doesn't have that innate understanding. It's not a big sacrifice, but it's less immediately clear.