DEV Community

Discussion on: Don't Memorize What You Can Google!

Collapse
 
onlyphantom profile image
Samuel Chan

Controversial opinion:
The best way to teach somebody not to memorise what they can google is to ask them to write a non-trivial regex.

Yes, even something like a valid phone number with country extension is a regex pattern that every developers google, copy + paste. Unless you’re doing it for fun / learning. Nobody with a job to do has time to expend mental effort on that instead of stackoverflowing it.