Opens profile photo
Follow
ΔIV
@DimaYv
Make computers do periodic sins (although in past life I was priest), malgorithms or nothing. / Делаю штуки, которые решают.
Montréal / Saint-Petersburggithub.com/dyJoined February 2011

ΔIV’s Tweets

Thing with JS pipes: if they had reference to result of last operation (so-called pipe placeholder), it could be useful outside of pipes as well. a |> # * 2 same time a ? # : b
I wonder isn't that part confusing for F# programmers: |>, ||> and |||> call the function down pipeline with 1,2 or 3 arguments from input. But Fira converts that to ▷, |▷ and ||▷ - which loses number of bars indicating number of arguments.
Ternary operator should really have short binary form. a > b ? a = b;
3
1

Topics to follow

Sign up to get Tweets about the Topics you follow in your Home timeline.

Carousel

Clever use of reflecting state in attributes
Quote Tweet
When the component goes to status "connecting" it gets the attribute: status="connecting" I then use the :host() selector to show or hide certain parts inside the component based on this attribute: :host([status="connecting"]) .connecting-container { display: block } 👇
Show this thread
1
Chrome supports import-maps. Meaning it's possible to run modules both in node/browser without any tooling. Nice.
1
4
A point on off-threading stuff to web-workers. Make sure amount of calculation is going to outweigh creating an isolated heap and garbage collector for maintaining a thread.
1
1
It's egoistical from nodejs and npm side to call `modules` `node_modules`. There can really be things having nothing to do with node: CSS, SVG, fonts, browser libs, deno, etc. It also makes import path look ugly and fragile: import htm from './node_modules/htm/dist/htm.module.js'
2
Today’s success: Porch pirate trap worked. Someone stole my amazon package full of rotten banana piles.
1
Would be nice if github besides security bots had optimization bots - making PRs with memory leak fixes, perf/size improvements etc.
левират, кутюм, узус, сутти, узанс, авункулат, адат, свычай, сорорат, дожинки, покон, вампука #велмог
Curious observation: Hindus use low order in donations as recurrent flag. Eg. donation of $100 means “that’s it”, but $101 means “let’s continue”
TIL: performance intuition in JS boils down to total number of operations (compared to code size in code golfing). One possible way to measure is to count number of function calls, esp. lookups.
1