© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Miki Szeles
Everything related to test automation
Great post, Maxi!
Is there any magic number from which it is better to use a map than an if? For example I have 2 mappings(0->false, 1-> true) only and I am sure I won't need more. Would you use dictionary in that case too?
Maxi Contieri
Software Engineer
Hi Smells are hints. My advice would be to change it whenever it 'smells', not before, not after.
I think 2 is too soon, 10 is too late :)
Thanks, Maxi Contieri for the answer. 😊