September 24, 2020

configuration or constant

Filed under: Uncategorized Himanshu @ 10:35 am

Should I put this in configuration or in constant! I was reviewing code of third-party software. One piece specifically stuck to my head, configuration entry for number of milliseconds in an hour!

Don’t think it’s worth multiple paragraph, truth of the life like number of milliseconds is not good candidate for configuration entry. A nice good name and keep it constant! Even if it’s not too much effort to make it configurable.

Agree?

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress