everestpipkin / image-scrubber

A friendly browser-based tool for anonymizing photographs taken at protests
https://everestpipkin.github.io/image-scrubber
MIT License
928 stars 82 forks source link

Inconsistent and Bad Style Practices #25

Closed caelinsutch closed 4 years ago

caelinsutch commented 4 years ago

There should be a linter to help some style issues. Splitting JS into separate modules wouldn’t hurt either.

caelinsutch commented 4 years ago

Really I think this would require this to be converted into an NPM project to add grunt, eslint and/or other tools to check code style, thoughts?

everestpipkin commented 4 years ago

I'm trying to keep this project as light-weight and human readable as possible and don't want to convert to NPM, but I agree that the code needs to be tidied pretty extensively. I think it might need to happen when there is less critical work to do though!

wheany commented 4 years ago

While I agree that the code could be modularized better, I also think that it's very valuable that the project is as simple as it is, where all you have to do is to copy the html, js and css files into a directory and it will just work.

Adding a compilation step increases the barrier to entry for people who want to use the program locally and completely offline and are tech savvy enough to copy some files and open them in a browser, but do not know the javascript build tool ecosystem.

SaFrMo commented 4 years ago

Added a possible fix for this in #32!

everestpipkin commented 4 years ago

Closing with the merge from #32