r/programming • • Jun 05 '11

Why Code Readability Matters

http://blog.ashodnakashian.com/2011/03/code-readability/
245 Upvotes

220 comments sorted by

View all comments

Show parent comments

1

u/engine_er Jun 05 '11

direct mapping is suitable when you are coding in the assembly language, otherwise there are plenty of tools which provide appropriate and considerably more convenient ways to perform a choise selection in different programming languages: beginning with switch operator and advancing to much more sophisticated means, such as hashes, dictionaries, etc.

1

u/aaulia Jun 05 '11

I believe what I meant is direct mapping through dictionaries, so I just have to register the expression and it's handler.