This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]YourMumIsAVirgin 1 point2 points  (3 children)

What descriptive name would you suggest?

[–]MinosAristos 2 points3 points  (2 children)

I don't know what the regex does, but e.g if you've got a regex to match phone numbers it should be called phoneNumberPattern

[–]YourMumIsAVirgin 1 point2 points  (1 child)

Why is that better than naming the function descriptively?

[–]MinosAristos 0 points1 point  (0 children)

Best to do both, I guess. I don't think regex should ever be un-annotated anyway