News for hackers. Stuff that matters.
Re:An integer formula for Fibonacci numbers (2015) by Sharlin on Monday July 23, 2018 @11:05AM (#17593232)
I think it’s really shortsighted to hardcode them statically into constants. You’d have to build a completely new binary should the requirements someday change! Obviously they belong behind a configuration interface, an instance of which can then be dependency injected to places that need them. In this way you can easily supply them from whatever source you like, such as a properties file, XML document, a database or even a web service.

As it is now, 2/10 would not pass review.

Re:An integer formula for Fibonacci numbers (2015) by oweiler on Monday July 23, 2018 @05:07PM (#17596023)
Sounds like Spring ConfigurationProperties https://docs.spring.io/spring-boot/docs/current/reference/ht...
Re:An integer formula for Fibonacci numbers (2015) by Sharlin on Monday July 23, 2018 @05:22PM (#17596137)
I'm utterly unsurprised.