Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What, you mean you don't want to write code like

  Deployment("nginx",DeploymentArgs.builder().spec(DeploymentSpecArgs.builder().selector(LabelSelectorArgs.builder().matchLabels(labels).build()).replicas(1).template(PodTemplateSpecArgs.builder().metadata(ObjectMetaArgs.builder().labels(labels).build()).spec(PodSpecArgs.builder().containers(ContainerArgs.builder().name("nginx").image("nginx").ports(ContainerPortArgs.builder().containerPort(80).build()).build()).build()).build()).build()).build());


I actually laughed out loud when I looked at the example and just saw a bunch of carefully-indented “.build()”s




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: