News for hackers. Stuff that matters.
Re:Interview with a Pornhub web developer (2019) by sbarre on Tuesday July 28, 2020 @02:58PM (#23979411)
I think the point was that even within the codebase, simplicity and reduced complexity was preferred over perhaps a "cleaner" or more advanced approach.

So managing a bunch of hard-coded code paths via a switch instead of using a regex to pattern-match.

It's less future-proof, but even an entry-level dev can reason about a switch statement and update it as needed.

Re:Interview with a Pornhub web developer (2019) by kradroy on Tuesday July 28, 2020 @03:11PM (#23979544)
This is exactly it. The nuances of regex patterns can be misconstrued. Obviously if the regex used for flow control cannot be sensibly translated to more traditional conditional statements, then they are permitted. Even in that case, the "simplest" regex was preferred.