News for hackers. Stuff that matters.
Re:I have no side code projects to show you by lozenge on Friday October 27, 2017 @09:11AM (#15567922)
I guess I'd put it in the paths, as it's something that needs to be kept in mind while updating the paths. Also in the coding conventions, but it's understandable not to have one on a small project.

Another option is to create a function like _escape_numeric_string that returns its input after asserting the string is numeric and has a comment explaining, and use it everywhere. Although yes, that does mean changing all your individual functions.

Generally if a code reviewer suggests a change it is worth documenting why the change isn't practical. That can be adding a test or adding a comment.

There are no comments on this comment yet.