3 ms·
If you are a solo dev, you do you, but if you are working in a team and you are building huge regexes with back references and other bells and whistles... I wou
by umvi 5y ago
If you are a solo dev, you do you, but if you are working in a team and you are building huge regexes with back references and other bells and whistles... I would guess it's not very readable for your teammates. At least for me, when I look at such a regex I have to stare at it for minutes before grokking it.
- otoburb 5y agoI wonder if there's a metric for code reviews measuring mean-time-to-grok (MTTG).
- marginalia_nu 5y agoRegexps are fairly terse and replace a lot of code, compared to most languages they probably have an information density at somewhere between 10x-100x higher (i.e. it's not rare to replace 100 lines of code with 1 regex), so I think it's fair to expect it take longer to unpack their meaning.
- burnished 5y agoWold that be a reasonable time to ping that coworker and ask them "what does this do?". Not because you can't figure it out, but because they already know?