Sometimes still missing (or forgetting?) the obvious after almost 20 years of #java devlopment... #todayilearned that you can just use Objects.toString(nullableString, nonNullDefault). And I was using Optional.ofNullable(nullableString).orElse(nonNullDefault) instead🤦♂️.
Using annotations JsonAnyGetter
and JsonAnySetter it is possible to map unknown properties to a map when mapping JSON to a #Java object. https://t.co/deDHBuNmpX #todayilearned#learnedtoday
You can customize the title bar of VSCode, so that it displayes the folder (project name), which helps you identify your VSCode window! #learnedtoday#til#todayilearned#vscode https://t.co/DY7MXZgYJF
The easiest way to server an SPA (static page application) like a React app and redirecting all paths that should be handled by the client side (React) router with the Go framework Echo is using the rewrite middleware https://t.co/WGHkOCBLWI
#learnedtoday that the basic auth prompt is disabled automatically when HTTP header X-Requested-With:XMLHttpRequest is used in @SpringSecurity! And I wrote a custom entrypoint returning an 401. 🤦♂️ (https://t.co/UmqXYldNfe)
#learnedtoday, that browsers (at least @MicrosoftEdge) automatically translates "Plz" (the german abbreviation for postal code) to "Bitte" (please), if language of the page is set to "en" and automatic translation enabled.
Took me a while to connect the dots... :-)
ULID is a replacement for UUID. It is sortable and based on timestamp + random seed.
There are implementations in many languages available... Interesting...
https://t.co/71JWp53CkY
Announcing the release of MuseScore 4!
The largest release I have ever worked on. Features a new audio engine; new orchestral library; VSTi support; an engraving overhaul; a new UI and hundreds of feature improvements.
Download https://t.co/083hkiwhi2
https://t.co/dxwl3i5guB
@bitfield Yes, there is code I do not understand any more that I thought was clear when I (or someone else) wrote it. There are not many projects where all code is "my code".
But way more often: I use a debugger to understand what other code from libraries or frameworks is doing.
Re-#learnedtoday solving #AdventOfCode puzzle 11: There are no errors on integer overflows, but the result of the calculation may be still wrong. https://t.co/PYS3qLUsq3
@crecotun Yes, that's true. But I do not need neither "Frontend" nor any dev-server, as I am just using typescript as programming language to execute code and get a return value.
For a real project, with server and frontend, it definitely looks interesting.
Solving #AdventOfCode puzzles with #typescript, to get more familiar with it. Is there a best practice to set up a minimal TypeScript-project with linting and testing, so that #vscode and #webstorm can automatically detect the setup? Shocked how complicated this is.
@crecotun Thanks! rome looks promising, even though I did not plan to add another tooling layer, but I'll try it. Vite looks as designed for server development.