HN user
concise_unicorn
[ my public key: https://keybase.io/gillesdemey; my proof: https://keybase.io/gillesdemey/sigs/4_RqSmf2ex0Qppc_90idDimu76jm1Txp_ICliaTqZvc ]
No, DICOM is a container format that can contain JPEG XL image data
It literally takes about 50ms to parse libraries like jQuery (mobile), angular and React with acorn[1].
Wether the choice was deliberate or not is debatable, but given the speed of these parsers I'd reason that there isn't any advantage to using regexes.
Reducing the amount of false positives is also one step closer to making this tool somewhat more secure, though certainly doesn't address any of the previous comments in this thread.
Tools like acorn[1] and Esprima[2] can parse the JavaScript source and output an ESTree compliant syntax tree.
Then you can traverse it and modify it like any other AST.
[1] https://github.com/ternjs/acorn [2] http://esprima.org/ [3] https://github.com/estree/estree
Regular expressions are a very naive way of detecting calls to 'require'. For correctness you're better off recursively walking the AST.
I've successfully used Detective in a couple of my personal projects to find all require statements.
Relevant issue on Detective: https://github.com/substack/node-detective/issues/8
Awesome stuff!
Here's a pet peeve of mine though: why isn't the entire surface area of the tasks clickable? I'm horrible at precisely targeting checkboxes.
Is it just me or does it fail to explain just what it is, exactly?
Having just secured my own J1 visa, I can attest to how relatively easy it was.
Thanks for the screencasts, now I may finally get around to giving it a try.