Open williamstein opened 1 year ago
I asked ChatGPT for better code for counting non-blank non-comment lines of code in all our coffeescript files and it suggested this, which may be useful for keeping track of our status:
~/cocalc/src$ git ls-files | grep '\.coffee$' | xargs cat | grep -vE '^\s*$|^\s*#' | wc -l
20117
Status after @haraldschilly did a ton of work on decaf of the project:
~/cocalc/src/packages$ git ls-files | grep '\.coffee$' | xargs cat | grep -vE '^\s*$|^\s*#' | wc -l
19256
yes. next up is a "final push" for the project, then removing coffeescript itself from it, etc. IMHO the next logical step after this is to transcribe some coffee files in the hub, which are calling code in the project.
Motivation: Coffeescript is dangerous, as compared to Typescript.
What remains:
And the same, but with line counts, sorted from largest to smallest:
It's still around 20K lines of code (or about 10% of the cocalc codebase):