Still works well! As long as it gets you the answer, it's good! :)
I saw someone use a ternary operator, and was super impressed. Might refactor mine later today to test that. :) Didn't even think of it!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.