
software developer, addicted to KISS
Freiburg, Germany
Joined April 2012
- Tweets41
- Following319
- Followers36
- Likes58
Leveraging the Power of JavaScript Generator Functions: Keep Database Batch Operations clean and maintainable
➡️ thomas.preissler.me/blog/202…
#javascript #cleancode
Integrate #OpenTelemetry into a #Java #Quarkus #microservice to send distributed traces to #AWS #XRay. No javaagent is needed and it supports the Quarkus native mode. #Observability for the entire infrastructure.
➡️thomas.preissler.me/blog/202…
In the past I used the HTTP header "Content-Disposition" to instruct the browser to download a file. I ended up doing this because I knew of no other way for this.
Until today.
I discovered, that the anchor-element has a "download" attribute. 🤯
➡️ thomas.preissler.me/blog/202…
1
Testing #TypeScript Definitions
TypeScript type definitions can be quite complex. They need to be tested to avoid mistakes during implementation and refactoring.
➡️ thomas.preissler.me/blog/202…
Thanks to @mpocock1 and @satya164 for pointing this out to me.
Hey @mpocock1! Is there any way to write unit tests for TypeScript definitions?
Let's take the example you shared:
typescriptlang.org/play?#cod…
I would like to have a test so that if someone refactors the "type Percent" and accidentally allows 09%, they are notified of this error.
1
2
Fix translation issues at compile time with #TypeScript
➡️ TypeScript Playground: typescriptlang.org/play?#cod…
➡️ Blog Post with explanations: thomas.preissler.me/blog/202…
Fix translation issues at compile time with #TypeScript
➡️ TypeScript Playground: typescriptlang.org/play?#cod…
➡️ Blog Post with explanations: thomas.preissler.me/blog/202…
Thanks to @mpocock1 for teaching me such #TypeScript magic. 🪄
2
1
I would love to see such powerful language features in #Java as well.
Thomas Preißler retweeted
Thomas Preißler retweeted
Every new feature, every new dependency, and every new line of code has a maintenance cost that can sometimes outweigh the initial development cost.
Implementing a timeline with scrolling and zooming - or how I failed at elementary school math
thomas.preissler.me/blog/202…
#lessonlearned #cleancode #javascript #flexbox
Thomas Preißler retweeted
Last week, I described a use-case for a custom #Stream #Collector.
Now, thanks to @Miguucm 🙇♂️, meet #teeing, a hidden gem in the #Java #API blog.frankel.ch/teeing-java-…
Java 11 is by default very reluctant to release unnecessary memory back to the operation system. The Shenandoah GC is more aggressive and is available in Java 11.
thomas.preissler.me/blog/202…
Predicate.not is handy to filter #Java streams with method references for the opposite of a provided method.
#cleancode
thomas.preissler.me/blog/202…












