|
|
|
|
|
by jeroenhd
1252 days ago
|
|
If I had to show a progress bar for less than a second in a screen the user will only open up once per 10 years (it's NFC code for scanning passports/ID cards), I wouldn't bother writing a reusable custom progress bar component either. Sure, you can do it better, but why would you? There are other, more pressing issues in this code (that probably also don't warrant spending extra time on refactoring). Those redundant checks are highlighted in every IDE I can think of. I can only assume they're there for readability. |
|