Lifting the curse of stringly-typed code [post]

Eddie A Santos, Karim Ali
2017 PeerJ Preprints  
How often do JavaScript programmers embed structured languages into strings literals? We conduct an empirical investigating mining nearly 500 thousand JavaScript source files from almost ten thousand repositories from GitHub. We parsed each string literal with seven separate common grammars, and found the most common data type that is hidden within the confines of string literals. To reduce the overuse of strings for structured data types, we present a simple static program analyzer that finds
more » ... nalyzer that finds embedded languages and warns the developer, providing an optional fix.
doi:10.7287/peerj.preprints.2723v1 dblp:journals/peerjpre/SantosA17 fatcat:ukytoafiubgf3id3ysmrqpi4hm