Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
MrMoo
Sep 14, 2000

That hosting is transpiling down to require() based imports separate for each module and thus there is no shared state.

Practice using the :chome: devtools, add a break point in the Render API and step through and watch the global state

.

Adbot
ADBOT LOVES YOU

MrMoo
Sep 14, 2000

It’s a bit sad devs would rather drop a platform rather than address the defects with the tooling that blocks integration.

Normally in webdev land that ignites creation of a dozen new tools.

MrMoo
Sep 14, 2000

lol, use Luxon DateTime for anything more than fetching the current time.

REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date

quote:

Note: While the time value at the heart of a Date object is UTC, the basic methods to fetch the date and time or its components all work in the local (i.e. host system) time zone and offset.

The long form date is in the local timezone, the short form date is in UTC. NodeJS CLI is good for debugging this.
code:
> new Date('September 11, 2001')
2001-09-11T04:00:00.000Z
> new Date('2001-09-11')
2001-09-11T00:00:00.000Z

MrMoo
Sep 14, 2000

Obfuscation posted:

Does anyone know why Temporal is still not ready?

Blame Microsoft for wanting a 1601 epoch and 100ns units? It has to be something esoteric, probably more related to the multitude of complex calendaring schemes. There are two polyfills though:

https://github.com/js-temporal/temporal-polyfill#readme
https://github.com/fullcalendar/temporal-polyfill#readme

I was impressed a lot of nice stuff has been hitting V8 recently:

https://v8.dev/blog/holiday-season-2023#:~:text=New%20JavaScript%20features

MrMoo fucked around with this message at 20:57 on Mar 19, 2024

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply