Re:Generating a Java program with 90% less code
by alasdair_ on Wednesday December 04, 2019 @03:32PM
(#21706596)
>The real reason to move away from Java is to move towards different software architectures (microservices!)
This is a SpringBoot microservice:
@RestController public class BasicController {
@RequestMapping(value="/{id}", method = RequestMethod.GET)
public String get(@PathVariable("id")Integer id) {
return doStuff(id);
}
}I'm not sure it's any more verbose than the equivalent Ruby on Rails microservice (for example).
The real reason to move away from Java is to move towards different software architectures (microservices!)