Programming Perl PostgreSQL, web and email servers. Own inactive construction company. I love to travel and camp! Tried to update this page, changes not only rejected, but also erased. Really????
I'm sold. Sorry, but a pile of nested if's just isn't readable. Read your code out loud to someone, can they follow it? If (!understand) then {map}
But no matter how neat and clean a table of stacked ? : is, I find those obtuse and hard to follow. I don't really like switch. It works. Anyway, all of this is just personal preference and experience. Sometimes how fast you can get it coded matters more than a small difference in speed or memory.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm sold. Sorry, but a pile of nested if's just isn't readable. Read your code out loud to someone, can they follow it? If (!understand) then {map}
But no matter how neat and clean a table of stacked ? : is, I find those obtuse and hard to follow. I don't really like switch. It works. Anyway, all of this is just personal preference and experience. Sometimes how fast you can get it coded matters more than a small difference in speed or memory.