Re:An integer formula for Fibonacci numbers (2015)
by aldanor on Monday July 23, 2018 @08:00AM
(#17592094)
Indeed, what's the point to ask someone to write a fizzbuzz when it's already been done to the highest of professional enterprise standards! [1]
[1] https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...
Re:An integer formula for Fibonacci numbers (2015)
by philbarr on Monday July 23, 2018 @08:06AM
(#17592128)
Highest professional enterprise standards my arse. Where's the message queues? Why isn't there a Fizz microservice and a Buzz microservice that live behind an API Gateway and receive messages from an event driven architecture?
Re:An integer formula for Fibonacci numbers (2015)
by jedimastert on Monday July 23, 2018 @08:07AM
(#17592135)
I'm gonna need a write up. I've been looking at the code for 10 or 15 minutes and I still haven't found "fizz", "buzz", or the number 100 anywhere in the code. It's amazing.
Re:An integer formula for Fibonacci numbers (2015)
by conistonwater on Monday July 23, 2018 @08:37AM
(#17592266)
I have no idea either, but those are "constants", and so it is only logical that they belong in com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.Constants (https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...).
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.
Re:An integer formula for Fibonacci numbers (2015)
by ConcernedCoder on Monday July 23, 2018 @01:17PM
(#17594163)
IsEvenlyDivisibleStrategyFactory.java ... now I remember why I hate java.
Re:An integer formula for Fibonacci numbers (2015)
by zaptheimpaler on Monday July 23, 2018 @01:25PM
(#17594236)
Needs more AWS Lambda, this is outdated.
Edit: I actually tried a FizzBuzz myself and I actually like it. I get why people were to ask it at interviews since it does require you to think for a second (if you haven't done it before) so you can easily filter out people who can't think