We have to be defensive and paranoid with any inputs to our program. Including configuration values.
My rule of thumb is to make type checks easy to write. So for example creating a "confirmation" library where I can say C.int(number) that will throw an exception if the wrong type is entered.
If it's easy and quick to write you can riddle your code with it. It can also handle logging automatically and if the language permits, get the line number of the detected bug.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
We have to be defensive and paranoid with any inputs to our program. Including configuration values.
My rule of thumb is to make type checks easy to write. So for example creating a "confirmation" library where I can say C.int(number) that will throw an exception if the wrong type is entered.
If it's easy and quick to write you can riddle your code with it. It can also handle logging automatically and if the language permits, get the line number of the detected bug.