386 private links
progress in type systems marches inexorably forward, ruling out broader and broader classes of programs as bad. one day, type systems research will achieve the ultimate goal: to conclusively establish that all programs are bad
@lindsey
Summary of new PHP features since v7.0
A library that seems good to parse CSV
13[isOdd] returns true. Funny.
How to do it ?
- Use Symbols to create unique keys
Object.defineProperty()with the symbol- Passing parameters with a function :)
Metho simplifies this process with a simple method.
Metho project: https://github.com/jonrandy/metho
Using the first 48 bist to encode the date up to the microsecond into the UUID. We can encode a date until 10899. We should be fine.
There is then 80 bits left for the random (collision happens in these 80 bits if they got generated at the same microsecond !)
We can then sort, order the UUIDs by date :)
I will give it a try instead of using Storybook for the new projects. Especially with Vue and Vite.
I find Vite to be a good compromise between having the benefits of TS and the slow build step. Use es-build to transpile and does not do type checking since it passes that responsibility onto the IDE.
Totally agree with this comment !
It is still possible to run the type checker all in once if needed.
With jc and the option to convert the output to json
Only supported by chrome for now
- A Save-Data header is sent on each HTTP request. This allows dynamic backends to change the HTML returned.
- The NetworkInformation.saveData JavaScript API. This allows client-side JavaScript to check this and act accordingly.
- The upcoming prefers-reduced-data media query, which allows CSS to set different options depending on this setting. This is available behind a flag in Chrome, but not yet on by default while it finishes standardization.
Seems a good project for Drag'n'Drop !
In a nutschell: font-variant-numeric: tabular-nums; to make space between digit in a number consistent.
See https://twitter.com/i/status/1486059026064584711 for a animated example
Use gap to insert space on both axis left and right between elements
Nesting
Subgrid
Cascade Layers
New CSS color functions
accent-color
@when / @else
:has()
@container() query
Ha !
microlight.js is a tiny library (2.2k minified) which improves readability of code snippets by highlighting, for any programming language, without attaching additional language packages or styles