3 ms·
> Workdays! This is javascript, not Java. In JavaScript something entirely new would be invented, to solve a problem that has long been solved and is document
by berkes 7mo ago
> Workdays!
This is javascript, not Java.
In JavaScript something entirely new would be invented, to solve a problem that has long been solved and is documented in 20+ year old books on common design patterns. So we can all copy-paste `{ or: [{ days: 42, months: 2, hours: "DEFAULT", minutes: "IGNORE", seconds: null, timezone: "defer-by-ip" }, { timestamp: 17749453211*1000, unit: "ms"}]` without any clue as to what we are defining.
In Java, a 6000LoC+ ecosystem of classes, abstractions, dependency-injectables and probably a new DSL would be invented so we can all say "over 4 Malaysian workdays"
- whatisthiseven 7mo agoBut you know that Java solution will continue working even after we no longer use the Gregorian Calendar, the collapse and annexation of Malaysia to some foreign power, and then us finally switching to a 4-day work week; so it'd be worth it.
- nesarkvechnep 7mo agoIt probably won’t work correctly from the get go. But it can be debugged everywhere so that’s good.
- berkes 7mo ago... and since it was architectured to allow runtime injection-patching of events before they hit the enterprise-service-bus, everyone using this library must first set fourteen ENV vars in their profile, and provide a /etc/java/springtime/enterprise-workday-handling/parse-event-mismatch.jar.patch. Which should fix the bug for you. You can find the patch files for your OSs by registering at Oracle with a J3EE8.4-PatchLibID (note, the older J3EE16-PatchLib-ids aren't compatible), attainable from your regional Oracle account-manager.
- hluska 7mo agoThis isn’t even remotely funny.
- pcblues 7mo agoI am laughing. I'm not even near the end of this thread.
- xorcist 7mo agoAnd least one of those environment can contain template strings that are expanded with arguments from request headers when run under popular enterprise java frameworks, and by way of the injection patching could hot load arbitrary code in runtime. A joke should be funny though, not just a dry description of real life, so let's leave it at that. We've already taken it too far.
- mikeryan 7mo agoJavaScript Temporal. Not sure knowing what a "workday" is in each timezone is in it's scope but it's the much needed and improved JS, date API (granted with limited support to date) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- PunchyHamster 7mo agoIn before someone thinks it's a joke, the most commonly used logging library in Java had LDAP support in format scripts enabled by default" (which resulted, of course in CVE)
- myhf 7mo agoThere's an extra digit in your timestamp.
- berkes 6mo agoAh but you don't know how far in the future I intended it to be :)