👨🏻💻TRS-80 Scriptkiddie '79+
🎓 Computer Science '87 - '92
❤️ Online since 1990 yes! 1990 I started with Email and Gopher
But if you ask them:
you can use a 3rd party Web Component, but it might ruin the rest of your webpage. Are you fine wth that?
They all say: NO!
But if you ask them:
you can use a 3rd party Web Component, but it might ruin the rest of your webpage. Are you fine wth that?
They all say: NO!
It couldn't be blocked.
System Administrators wanted him expelled.
We (R&D department at same Uni) offered him a job.
It couldn't be blocked.
System Administrators wanted him expelled.
We (R&D department at same Uni) offered him a job.
Platinum Member (1 only) Microsoft
I spent 15 years deep into MS tech
Still ranked #2 in the all-time SharePoint-StackExckange [topic:JavaScript] ranking because I also had a life.
2017 MS switched SP frontend to React
I hate Microsoft more
Platinum Member (1 only) Microsoft
I spent 15 years deep into MS tech
Still ranked #2 in the all-time SharePoint-StackExckange [topic:JavaScript] ranking because I also had a life.
2017 MS switched SP frontend to React
I hate Microsoft more
I once was heavliy into Angular.
And then Google called Angular 2 and upgrade.
(it was a new language)
I don't trust anything coming from Google.
I once was heavliy into Angular.
And then Google called Angular 2 and upgrade.
(it was a new language)
I don't trust anything coming from Google.
One 3 line AI prompt created:
shadow-style.github.io
too lazy to enter a second prompt, I was only exploring content for my Web Component course.
I did start refactoring that page, but as a public research page it is good enough.
One 3 line AI prompt created:
shadow-style.github.io
too lazy to enter a second prompt, I was only exploring content for my Web Component course.
I did start refactoring that page, but as a public research page it is good enough.
Spent days to squeeze out more Bytes from my Web Component pet-project. It now would have fit in the 4KB of my VIC-20.
Had I used LIT my Web Component would be way over double the size, and upgrade hell for the next 30 years.
Original source code is now super lean
Spent days to squeeze out more Bytes from my Web Component pet-project. It now would have fit in the 4KB of my VIC-20.
Had I used LIT my Web Component would be way over double the size, and upgrade hell for the next 30 years.
Original source code is now super lean
As I said, context
Those Template Literal newlines and spaces end up in your gzipped file...
Great from Development POV, but from a Delivery POV they suck
I grew up with a VIC-20 with 4KB of memory.. I care about every Byte. Maybe a bit too much, but I'm happy
As I said, context
Those Template Literal newlines and spaces end up in your gzipped file...
Great from Development POV, but from a Delivery POV they suck
I grew up with a VIC-20 with 4KB of memory.. I care about every Byte. Maybe a bit too much, but I'm happy
BUT do you measure memory consumption?
The CPU is most likely doing hardly anything
make-it-snow.github.io
Everything you are programming always depends on context
Otherwise everyone would always use the cool Generator functions and WeakMaps everywhere
BUT do you measure memory consumption?
The CPU is most likely doing hardly anything
make-it-snow.github.io
Everything you are programming always depends on context
Otherwise everyone would always use the cool Generator functions and WeakMaps everywhere
Off the record, nothing copied yet
Lit taught me to avoid creating HTML like the plague,
I use a 1 line framework for readable, smaller and faster code:
𝙘𝙤𝙣𝙨𝙩 𝙘𝙧𝙚𝙖𝙩𝙚𝙀𝙡𝙚𝙢𝙚𝙣𝙩 = (𝙩𝙖𝙜, 𝙥𝙧𝙤𝙥𝙨 = {}) => 𝙊𝙗𝙟𝙚𝙘𝙩.𝙖𝙨𝙨𝙞𝙜𝙣(𝙙𝙤𝙘𝙪𝙢𝙚𝙣𝙩.𝙘𝙧𝙚𝙖𝙩𝙚𝙀𝙡𝙚𝙢𝙚𝙣𝙩(𝙩𝙖𝙜), 𝙥𝙧𝙤𝙥𝙨);
Off the record, nothing copied yet
Lit taught me to avoid creating HTML like the plague,
I use a 1 line framework for readable, smaller and faster code:
𝙘𝙤𝙣𝙨𝙩 𝙘𝙧𝙚𝙖𝙩𝙚𝙀𝙡𝙚𝙢𝙚𝙣𝙩 = (𝙩𝙖𝙜, 𝙥𝙧𝙤𝙥𝙨 = {}) => 𝙊𝙗𝙟𝙚𝙘𝙩.𝙖𝙨𝙨𝙞𝙜𝙣(𝙙𝙤𝙘𝙪𝙢𝙚𝙣𝙩.𝙘𝙧𝙚𝙖𝙩𝙚𝙀𝙡𝙚𝙢𝙚𝙣𝙩(𝙩𝙖𝙜), 𝙥𝙧𝙤𝙥𝙨);
The first year is failed when it turns out IT is nothing like what dad—long past his cool era—claimed it was.
The first year is failed when it turns out IT is nothing like what dad—long past his cool era—claimed it was.
And when X distributes a Web Component WITHOUT shadowDOM I won't use it any public sites unless there is 100% certainty my pages CSS isn't attacked
That means:
A. the Web Component doesn't add CSS
B. I extend the Web Component and add shadowDOM myself
And when X distributes a Web Component WITHOUT shadowDOM I won't use it any public sites unless there is 100% certainty my pages CSS isn't attacked
That means:
A. the Web Component doesn't add CSS
B. I extend the Web Component and add shadowDOM myself
No one cares if its wrapped in a chastity belt?
They should, because your CSS *inside* your Web Component should NEVER bleed out to the whole page.
Enter shadowDOM
People who whine about shadowDOM have never written larger components
No one cares if its wrapped in a chastity belt?
They should, because your CSS *inside* your Web Component should NEVER bleed out to the whole page.
Enter shadowDOM
People who whine about shadowDOM have never written larger components
> but don't control the rest of the page?
Your daughter is 16 and going to a party for the first time... you know it can be a wild party (you were 16 once in the same town)
So do you make her wear the chastity belt (shadowDOM) or not?
> but don't control the rest of the page?
Your daughter is 16 and going to a party for the first time... you know it can be a wild party (you were 16 once in the same town)
So do you make her wear the chastity belt (shadowDOM) or not?
super() // sets AND returns 'this' scope
.attachShadow({ // sets AND returns shadowRoot
mode: "open",
referenceTarget: "setting"
})
}
super() // sets AND returns 'this' scope
.attachShadow({ // sets AND returns shadowRoot
mode: "open",
referenceTarget: "setting"
})
}
> window.customElements.define() in JavaScript
Not 100% correct
JavaScript creates DEFINED Custom Elements
But *any* (no JS)
dashed-html.github.io
> window.customElements.define() in JavaScript
Not 100% correct
JavaScript creates DEFINED Custom Elements
But *any* (no JS)
dashed-html.github.io
He then sold it for 7 figures to the New York Times
www.nytimes.com/games/wordle...
the current site is 2MB
But Wordle is about letters not numbers 😇
mordle.github.io *extends* the original Web Components
Blog: dev.to/dannyengelma...
He then sold it for 7 figures to the New York Times
www.nytimes.com/games/wordle...
the current site is 2MB
But Wordle is about letters not numbers 😇
mordle.github.io *extends* the original Web Components
Blog: dev.to/dannyengelma...
Added the option to play any date, a dictionary, and more...
Play: mordle.github.io
Blog:
dev.to/dannyengelma...
Added the option to play any date, a dictionary, and more...
Play: mordle.github.io
Blog:
dev.to/dannyengelma...
Everything in programming can be a footgun.
I once cancelled a teammember because he/she/x did not know Set already existed and built something similar...
Everything in programming can be a footgun.
I once cancelled a teammember because he/she/x did not know Set already existed and built something similar...