1
Grumpycat
260d

I have an errant ; appearing in a react app screen. Hundreds of components in this friggin monstrosity.

How would you find the extra ; to remove it?

Kill me now!

Comments
  • 1
    Just remove all semicolons, you don't need them.
  • 1
    Technically correct. Good job.
  • 0
    Instead I will spend three days creating an automated framework to remove the semicolons in each file one at a time until the test succeeds. Fuck it.
  • 0
    Can’t you inspect the browser with react devtools to find the component that contains the semicolon?
  • 0
    I'd start by looking for all the semicolons thst aren't at the EOL.
  • 0
    I'd start by using something other than React ....

    Joking, we use it at work, but didn't IDE search helping? Search for ; and do a quick overview if there is something that doesn't look right?
  • 0
    @black-kite Tried that. Doesn’t help.
  • 0
    Found it. 194 files changed. Remove semicolon from 88 files. Edit for loops add them back. Binary search. Rinse repeat. When in doubt use brute force. Fuck javascript.
  • 0
    I got a woohoo from the project manager. Fuck you project manager. You could not have found it.
Add Comment