4 ms·
"Look man I just used that regex to parse the HTML response. Easy" "You can't parse HTML like that, it's not regular" "What do you mean regular? Look the rege
by 908B64B197 6y ago
"Look man I just used that regex to parse the HTML response. Easy"
"You can't parse HTML like that, it's not regular"
"What do you mean regular? Look the regex works no need to complicate things we're trying to resolve this JIRA ticket"
See, no need for these fancy compilers!
- angry_octet 6y agoAnd yet, these things are easily comprehensible facts without you needing to understand how to implement an LL1 parser. More generally, I can always come up with something you can't understand without some specialised knowledge. I could argue that you couldn't possibly be a computer scientist / software engineer unless you understand the foundations of digital logic -- how else to understand safe implementation of crypto, caching and VM? Who cares about big O when people write pointer hungry code that faults to main memory every cycle? I guess we might both be arguing for 'knowing what we don't know' and where to start looking.
- username90 6y agoYou can parse HTML using regex. Not all HTML, but specific HTML pages are almost always regular as they typically have well formed nesting. It isn't a good idea but language theory doesn't say it is impossible.