👨🏻💻TRS-80 Scriptkiddie '79+
🎓 Computer Science '87 - '92
❤️ Online since 1990 yes! 1990 I started with Email and Gopher
ChatGPT thought for 7 minutes and 17 seconds, and said:
𝙋𝘼𝙒𝙉𝙎𝙏𝘼𝙍
Wrong word, because AI is great at logic, but can't think...
What word do you see?
But us mortal Web Component developers couldn't use it till years later
𝙨𝙞𝙣𝙘𝙚 𝙬𝙝𝙚𝙣 𝙙𝙤𝙚𝙨 𝙪𝙨𝙚𝙧-𝙖𝙜𝙚𝙣𝙩 𝙨𝙝𝙖𝙙𝙤𝙬𝙍𝙤𝙤𝙩 𝙚𝙭𝙞𝙨𝙩 𝙞𝙣 𝙩𝙝𝙚 𝙗𝙧𝙤𝙬𝙨𝙚𝙧𝙨?
#webcomponents
But us mortal Web Component developers couldn't use it till years later
𝙨𝙞𝙣𝙘𝙚 𝙬𝙝𝙚𝙣 𝙙𝙤𝙚𝙨 𝙪𝙨𝙚𝙧-𝙖𝙜𝙚𝙣𝙩 𝙨𝙝𝙖𝙙𝙤𝙬𝙍𝙤𝙤𝙩 𝙚𝙭𝙞𝙨𝙩 𝙞𝙣 𝙩𝙝𝙚 𝙗𝙧𝙤𝙬𝙨𝙚𝙧𝙨?
#webcomponents
It's a tall order for a guy who hasn't left his apartment in 42 days and is more than happy to stay at home with technology.
www.youtube.com/watch?v=NZ8G...
It's a tall order for a guy who hasn't left his apartment in 42 days and is more than happy to stay at home with technology.
www.youtube.com/watch?v=NZ8G...
ChatGPT thought for 7 minutes and 17 seconds, and said:
𝙋𝘼𝙒𝙉𝙎𝙏𝘼𝙍
Wrong word, because AI is great at logic, but can't think...
What word do you see?
ChatGPT thought for 7 minutes and 17 seconds, and said:
𝙋𝘼𝙒𝙉𝙎𝙏𝘼𝙍
Wrong word, because AI is great at logic, but can't think...
What word do you see?
You were trained on blog-posts that do not show the chaining of super in:
super().attachShadow({mode:"open"})
That does not make your statement below right.
super() DOES return the this scope
You were trained on blog-posts that do not show the chaining of super in:
super().attachShadow({mode:"open"})
That does not make your statement below right.
super() DOES return the this scope
"You Know" remarks those Muricans make.
That would slash an hour long video in half.
"You Know" remarks those Muricans make.
That would slash an hour long video in half.
stackoverflow-challenges.github.io/cipher/index...
Became the simplest LLM quality tester
GPT5:
stackoverflow-challenges.github.io/cipher/index...
Became the simplest LLM quality tester
GPT5:
I think we all have been using Custom Elements not to its full extend
You can use Custom Elements/Web Components?
(which extend from HTMLElement)
*Without* using any JavaScript!
Am I wrong?
dev.to/dannyengelma...
I think we all have been using Custom Elements not to its full extend
You can use Custom Elements/Web Components?
(which extend from HTMLElement)
*Without* using any JavaScript!
Am I wrong?
dev.to/dannyengelma...
Or are you fighting FOUCs because you defined your UI Web Components (too) late *after* DOM was parsed
(using defer, import module or readystate/DOMContentLoaded)
Or are you fighting FOUCs because you defined your UI Web Components (too) late *after* DOM was parsed
(using defer, import module or readystate/DOMContentLoaded)
⏹️ Error, super() must come first in the constructor
⏹️ Red, ::part styles parts inside shadowDOM
⏹️ Not Red, ::part in the host container can style parts
⏹️ Not Green, the Web Component is 0 height
Multiple answers possible
jsfiddle.net/WebComponent...
⏹️ Error, super() must come first in the constructor
⏹️ Red, ::part styles parts inside shadowDOM
⏹️ Not Red, ::part in the host container can style parts
⏹️ Not Green, the Web Component is 0 height
Multiple answers possible
jsfiddle.net/WebComponent...
The <sprite-meister> Web Component reads a Template Literal String, processes variables AND functions (pulse, ease and rotate) then creats ONE SVG with 24 frames. All client-side.
jsfiddle.net/WebComponent...
PacMan code:
The <sprite-meister> Web Component reads a Template Literal String, processes variables AND functions (pulse, ease and rotate) then creats ONE SVG with 24 frames. All client-side.
jsfiddle.net/WebComponent...
PacMan code:
OP: "𝘸𝘦𝘣 𝘤𝘰𝘮𝘱𝘰𝘯𝘦𝘯𝘵𝘴 𝘪𝘯𝘴𝘵𝘢𝘯𝘵𝘪𝘢𝘵𝘦 𝘪𝘯 𝘵𝘩𝘦 𝘰𝘳𝘥𝘦𝘳 𝘵𝘩𝘦𝘪𝘳 𝘥𝘦𝘧𝘪𝘯𝘦() 𝘮𝘦𝘵𝘩𝘰𝘥𝘴 𝘢𝘳𝘦 𝘤𝘢𝘭𝘭𝘦𝘥 𝘪𝘯 𝘑𝘢𝘷𝘢𝘚𝘤𝘳𝘪𝘱𝘵. 𝘛𝘩𝘦 𝘏𝘛𝘔𝘓 𝘰𝘳𝘥𝘦𝘳 𝘥𝘰𝘦𝘴𝘯’𝘵 𝘮𝘢𝘵𝘵𝘦𝘳"
NO!
WCs defined *BEFORE* DOM is parsed execute in DOM order
WCs defined *AFTER* DOM is parsed execute in define() order
OP: "𝘸𝘦𝘣 𝘤𝘰𝘮𝘱𝘰𝘯𝘦𝘯𝘵𝘴 𝘪𝘯𝘴𝘵𝘢𝘯𝘵𝘪𝘢𝘵𝘦 𝘪𝘯 𝘵𝘩𝘦 𝘰𝘳𝘥𝘦𝘳 𝘵𝘩𝘦𝘪𝘳 𝘥𝘦𝘧𝘪𝘯𝘦() 𝘮𝘦𝘵𝘩𝘰𝘥𝘴 𝘢𝘳𝘦 𝘤𝘢𝘭𝘭𝘦𝘥 𝘪𝘯 𝘑𝘢𝘷𝘢𝘚𝘤𝘳𝘪𝘱𝘵. 𝘛𝘩𝘦 𝘏𝘛𝘔𝘓 𝘰𝘳𝘥𝘦𝘳 𝘥𝘰𝘦𝘴𝘯’𝘵 𝘮𝘢𝘵𝘵𝘦𝘳"
NO!
WCs defined *BEFORE* DOM is parsed execute in DOM order
WCs defined *AFTER* DOM is parsed execute in define() order
NOT using any Web Components core technology:
❌ Custom Elements API
❌ Templates
❌ shadowDOM
then creating a HTML tag,
by only typing <𝙩𝙖𝙜-𝙣𝙖𝙢𝙚>...𝙩𝙖𝙜-𝙣𝙖𝙢𝙚>
Have I then created a "Web Component" ⁉️
You tell me...
dev.to/dannyengelma...
#webcomponents
NOT using any Web Components core technology:
❌ Custom Elements API
❌ Templates
❌ shadowDOM
then creating a HTML tag,
by only typing <𝙩𝙖𝙜-𝙣𝙖𝙢𝙚>...𝙩𝙖𝙜-𝙣𝙖𝙢𝙚>
Have I then created a "Web Component" ⁉️
You tell me...
dev.to/dannyengelma...
#webcomponents
and they are
I made my post a blogpost.
#webcomponents / Web Components
𝙉𝙤𝙩 𝙖 𝘿𝙄𝙑 𝙞𝙣𝙨𝙞𝙙𝙚/𝙞𝙣 𝙨𝙞𝙜𝙝𝙩/𝙨𝙞𝙩𝙚
dev.to/dannyengelma...
and they are
I made my post a blogpost.
#webcomponents / Web Components
𝙉𝙤𝙩 𝙖 𝘿𝙄𝙑 𝙞𝙣𝙨𝙞𝙙𝙚/𝙞𝙣 𝙨𝙞𝙜𝙝𝙩/𝙨𝙞𝙩𝙚
dev.to/dannyengelma...
ANY tagname with a dash becomes a valid HTMLElement,
NOT HTMLUnknownElement as some gurus claim.
That means you can replace ALL DIVs with semantic HTML.
Absolutely NO JavaScript required, only HTML and CSS!
Should we call them "Web Components"? You tell me
#webcomponents
ANY tagname with a dash becomes a valid HTMLElement,
NOT HTMLUnknownElement as some gurus claim.
That means you can replace ALL DIVs with semantic HTML.
Absolutely NO JavaScript required, only HTML and CSS!
Should we call them "Web Components"? You tell me
#webcomponents
𝙄 𝙖𝙢 𝙤𝙣𝙡𝙮 𝙪𝙨𝙞𝙣𝙜 𝙨𝙝𝙖𝙙𝙤𝙬𝘿𝙊𝙈 𝙩𝙤𝙙𝙖𝙮 😎
𝙄 𝙖𝙢 𝙤𝙣𝙡𝙮 𝙪𝙨𝙞𝙣𝙜 𝙨𝙝𝙖𝙙𝙤𝙬𝘿𝙊𝙈 𝙩𝙤𝙙𝙖𝙮 😎
"𝘞𝘩𝘢𝘵 𝘭𝘦𝘵𝘵𝘦𝘳 𝘪𝘴 𝘥𝘪𝘴𝘱𝘭𝘢𝘺𝘦𝘥 𝘰𝘯 𝘵𝘩𝘪𝘴 𝘣𝘰𝘢𝘳𝘥?"
ChatGPT can decipher a simple one, not the 'complex' ones humans can decipher.
100% Vanilla Web Components
build on top a
stackoverflow-challenges.github.io/cipher/
"𝘞𝘩𝘢𝘵 𝘭𝘦𝘵𝘵𝘦𝘳 𝘪𝘴 𝘥𝘪𝘴𝘱𝘭𝘢𝘺𝘦𝘥 𝘰𝘯 𝘵𝘩𝘪𝘴 𝘣𝘰𝘢𝘳𝘥?"
ChatGPT can decipher a simple one, not the 'complex' ones humans can decipher.
100% Vanilla Web Components
build on top a
stackoverflow-challenges.github.io/cipher/
Civil𝑨𝑰zation - life on Mars - civilaization.github.io
100% native Web Components
every chapter an .MD file
Languages translated by ChatGPT
95% AI generated story
#webcomponents
Civil𝑨𝑰zation - life on Mars - civilaization.github.io
100% native Web Components
every chapter an .MD file
Languages translated by ChatGPT
95% AI generated story
#webcomponents
jsfiddle.net/WebComponent...
fit-text.github.io
kizu.dev/fit-to-width... Cool CSS
#webcomponents
jsfiddle.net/WebComponent...
fit-text.github.io
kizu.dev/fit-to-width... Cool CSS
#webcomponents
𝙨𝙪𝙥𝙚𝙧();
𝙩𝙝𝙞𝙨.𝙖𝙩𝙩𝙖𝙘𝙝𝙎𝙝𝙖𝙙𝙤𝙬({𝙢𝙤𝙙𝙚: '𝙤𝙥𝙚𝙣'});
𝙩𝙝𝙞𝙨.𝙨𝙝𝙖𝙙𝙤𝙬𝙍𝙤𝙤𝙩.𝙞𝙣𝙣𝙚𝙧𝙃𝙏𝙈𝙇 = ``
you can write:
𝙨𝙪𝙥𝙚𝙧()
.𝙖𝙩𝙩𝙖𝙘𝙝𝙎𝙝𝙖𝙙𝙤𝙬({𝙢𝙤𝙙𝙚: '𝙤𝙥𝙚𝙣'})
.𝙞𝙣𝙣𝙚𝙧𝙃𝙏𝙈𝙇 = ``
#webcomponents
𝙨𝙪𝙥𝙚𝙧();
𝙩𝙝𝙞𝙨.𝙖𝙩𝙩𝙖𝙘𝙝𝙎𝙝𝙖𝙙𝙤𝙬({𝙢𝙤𝙙𝙚: '𝙤𝙥𝙚𝙣'});
𝙩𝙝𝙞𝙨.𝙨𝙝𝙖𝙙𝙤𝙬𝙍𝙤𝙤𝙩.𝙞𝙣𝙣𝙚𝙧𝙃𝙏𝙈𝙇 = ``
you can write:
𝙨𝙪𝙥𝙚𝙧()
.𝙖𝙩𝙩𝙖𝙘𝙝𝙎𝙝𝙖𝙙𝙤𝙬({𝙢𝙤𝙙𝙚: '𝙤𝙥𝙚𝙣'})
.𝙞𝙣𝙣𝙚𝙧𝙃𝙏𝙈𝙇 = ``
#webcomponents
This only works when you treat Web Components the OLD jQuery or Framework way
When you process PARSED DOM, then do something with it.
Web Components defined *BEFORE* DOM is parsed can NOT access DOM content in the constructor or the connectedCallback *because* it is not there yet!!
This only works when you treat Web Components the OLD jQuery or Framework way
When you process PARSED DOM, then do something with it.
Web Components defined *BEFORE* DOM is parsed can NOT access DOM content in the constructor or the connectedCallback *because* it is not there yet!!