cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muratsu <>
Subject [GitHub] cordova-plugin-camera pull request: CB-9443 Pick correct maxResolu...
Date Mon, 03 Aug 2015 21:25:09 GMT
Github user muratsu commented on the pull request:
    Sorry didn't see your comment earlier. 
    In terms of perf, I think this the usage of `if/else` vs `switch` is not really important
here. Since we're only executing it once, the perf difference is not going to be noticable
either case.
    Readability is a bit more subjective - I don't have a preference in this case. I tend
to use switches only when I have fall-through cases. 
    I wasn't familiar with `switch(true)` pattern. It seemed like an anti-pattern to me at
first but looks like it is a common pattern in dynamic languages. I'll revert it back to switch.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message