3 ms·
I think a lot of this comes from people forgetting what would be considered normal and good practice everywhere else but something about serverless functions ca
by lloydatkinson 5y ago
I think a lot of this comes from people forgetting what would be considered normal and good practice everywhere else but something about serverless functions causes people to treat them as a quick and dirty hack solution. Then the inevitable refactor when that becomes a problem.
- cmckn 5y agoAbsolutely. Java Lambdas are often particularly bad in this respect; all the nice abstractions and class hierarchies seem to go out the window as soon as one “implements RequestHandler”. Everything is a singleton all of a sudden, environment variables being read statically, etc.. The worst Java codebases I’ve ever seen have been Lambdas :(
- lloydatkinson 5y agoThere was a worrying trend in the .NET space of this for Azure Functions but I think there was enough complaints - it's now possible to configure DI yourself and use the .NET config stuff for getting env variables.