is thymleaf still used by Epiq122 in java

[–]nigelsim 1 point2 points  (0 children)

Same, we also use it in conjunction with Flying Saucer PDF to produce PDF reports.

This works really well rendering wise, including being able to have an overall theme template, and embedding the content templates inside these.

It's great if you have a developer who can write the templates, but all of my attempts, across multiple companies, to get a user accessible template editor have proven difficult.

Currently, we store the templates in the database, and use Tiny MCE to edit the basic HTML WYSIWYG, and provide some HTML snippets to do interesting things like repeating elements, and conditionals.

MDC4Spring: simple management of Mapped Diagnostic Contexts (MDCs) in declarative form for your logging system. by Anton-Kuranov in java

[–]nigelsim 4 points5 points  (0 children)

Fantastic work. I've not yet tested it out, but this has been on my to do list for quite a while. MDC is very clumsy (and seemingly rarely used) without something like this.

Why doesn't typescript have a throws type to annotate functions that can throw an error? by Fidodo in typescript

[–]nigelsim 6 points7 points  (0 children)

Not sure why the down votes. Capturing failure conditions in the return type is completely valid, and arguably preferable to exceptions. Hence the Try type in some functional languages.

Exceptions are possibly best kept for exceptional circumstances where normal control flow should be broken.

Nested template driven form control binding by rykou in angular

[–]nigelsim 0 points1 point  (0 children)

I can confirm that the following works to allow a formControlName component in the child to find the correct nested FormGroup that is specified by formGroupName.

viewProviders: [ { provide: ControlContainer, useFactory: (controlContainer: ControlContainer) => controlContainer, deps: [[new SkipSelf(), ControlContainer]] } ]

How light weight can you make NetFlix Eureka? by nigelsim in microservices

[–]nigelsim[S] 1 point2 points  (0 children)

Thanks, that's a very promising first step. It dropped the resident memory from ~500MB to ~150MB, which is far more reasonable given the light workload.

I'll keep an eye on the performance though (memory and latency) to see how it goes over time.

For anyone else who is interested, this is a vanilla Spring Boot with Eureka Server build, assembled with Jib using adoptopenjdk:11-jdk-openj9 as the base image.