Advertisement ยท 728 ร— 90

Posts by Danny Engelman ๐ŸŒท๐Ÿ๏ธ๐Ÿ›ฅ๏ธ

Elementary Web Component Knowledge from yor Dev Console:

(without JavaScript) ANY <tag-name> IS an HTMLElement

UNdefined Custom Elements are great for layout and styling

Lesson #1 from WCQ - A Web Components Course

Elementary Web Component Knowledge from yor Dev Console: (without JavaScript) ANY <tag-name> IS an HTMLElement UNdefined Custom Elements are great for layout and styling Lesson #1 from WCQ - A Web Components Course

I am building a Web Components course
This is lesson #1

๐™€๐™ก๐™š๐™ข๐™š๐™ฃ๐™ฉ๐™–๐™ง๐™ฎ
๐™’๐™š๐™— ๐˜พ๐™ค๐™ข๐™ฅ๐™ค๐™ฃ๐™š๐™ฃ๐™ฉ๐™จ
๐™†๐™ฃ๐™ค๐™ฌ๐™ก๐™š๐™™๐™œ๐™š
๐™›๐™ง๐™ค๐™ข
๐™ฎ๐™ค๐™ช๐™ง ๐˜ฟ๐™š๐™ซ ๐˜พ๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š

๐˜ฅ๐˜ฐ๐˜ค๐˜ถ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต.๐˜ฃ๐˜ฐ๐˜ฅ๐˜บ.๐˜ช๐˜ฏ๐˜ฏ๐˜ฆ๐˜ณ๐˜๐˜›๐˜”๐˜“ = "<๐˜ฎ๐˜บ-๐˜ฆ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต/><๐˜ข๐˜ฏ๐˜ฐ๐˜ต๐˜ฉ๐˜ฆ๐˜ณ๐˜ฆ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต/>";
$("๐˜ฎ๐˜บ-๐˜ฆ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต").๐˜ค๐˜ฐ๐˜ฏ๐˜ด๐˜ต๐˜ณ๐˜ถ๐˜ค๐˜ต๐˜ฐ๐˜ณ.๐˜ฏ๐˜ข๐˜ฎ๐˜ฆ
$("๐˜ข๐˜ฏ๐˜ฐ๐˜ต๐˜ฉ๐˜ฆ๐˜ณ๐˜ฆ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต").๐˜ค๐˜ฐ๐˜ฏ๐˜ด๐˜ต๐˜ณ๐˜ถ๐˜ค๐˜ต๐˜ฐ๐˜ณ.๐˜ฏ๐˜ข๐˜ฎ๐˜ฆ

#nojavascript #webcomponents #nomoredivsoup

2 days ago 5 0 1 0
Post image

I showed them HyperLinks, they said it had no Images
Showed them Images, ... couldn't be styled
... CSS, ... wasn't interactive
JavaScript ... different in all browsers
jQuery wasn't native code
Web Components; Apple doesn't support Customized BuiltIns

and now they complain about LLMs

2 days ago 1 0 0 0

30 years ago I said most over 40 would never grasp the power of the WorldWideWeb.

30 years later I say most over 30 will never harness the power of AI

3 days ago 0 0 0 0

AI taught a very old fart new tricks.
AI does have "eyes"
I gave it a screenshot of an SVG Custom Elements/Web Components lifecycle diagram
and ask it "What is missing?"
It gave me 2 additions I missed and 3 suggestions to make the slide better.

3 days ago 0 0 1 0

150 lines. 4 months tuning my Web Component skills file.
Still amazed by AI (and Iโ€™ve been around since 1990).
Feels like those โ€™90s interns I trainedโ€ฆ
...I shouldโ€™ve listened when they showed me FutureSplash

3 days ago 0 0 1 0

6 months ago I would have agreed
6 months ago I was working on Web Components Elearning site
6 months ago I took time to actually learn CoPilot, past the prompts and tab-tab code suggestions
I pivotted, now vibe-code 4 hours a day
The power of AI is you can train it with simple Skills files

3 days ago 1 0 1 0

I worked for the university in Utrecht (Netherlands), so was online since 1990

was fun to attend the Macromedia User Conf. (in San Francisco) in 1994 and see their first "Online" demo fail

Meanwhile I stuck my RJ45 jack into a paywall phone and send reports to the AWARE ListServ (online since '93)

3 days ago 0 0 0 0
Advertisement

Macromedia bought Future Splash in 1996 and renamed it Flash.

will never forget, I was a Macromedia user all through the 90s
Was already using Macromedia ShockWave (in Director and Authorware)
Some interns showed me Future Splash in 1995
And I said "Too small a company, we're not going to use it"

3 days ago 1 0 1 0

Sounds like '80s HyperCard

Toolbok did the same some years later

(Macromedia) AuthorWare added the Flowline for programming,
every serious ELearning app(lication) was built with AW

Eventually we go full circle again, not AI programming with natural language, but dragging Components on a flowline

4 days ago 1 0 0 0

Why the oldskool jQuery style of creating DOM and then querying DOM to activate JS code?
Why not a Web Component?
I tested it, CoPilot AI converts your code into a Web Component with one prompt:
๐˜ค๐˜ฐ๐˜ฏ๐˜ท๐˜ฆ๐˜ณ๐˜ต ๐˜ต๐˜ฐ ๐˜ธ๐˜ฆ๐˜ฃ ๐˜ค๐˜ฐ๐˜ฎ๐˜ฑ๐˜ฐ๐˜ฏ๐˜ฆ๐˜ฏ๐˜ต <๐˜ด๐˜ค๐˜ณ๐˜ฐ๐˜ญ๐˜ญ-๐˜ฏ๐˜ถ๐˜ฎ๐˜ฃ๐˜ฆ๐˜ณ> ๐˜ธ๐˜ช๐˜ต๐˜ฉ ๐˜ด๐˜ฉ๐˜ข๐˜ฅ๐˜ฐ๐˜ธ๐˜‹๐˜–๐˜” ๐˜ข๐˜ฏ๐˜ฅ ๐˜ข๐˜ญ๐˜ญ ๐˜Š๐˜š๐˜š ๐˜ช๐˜ฏ๐˜ด๐˜ช๐˜ฅ๐˜ฆ ๐˜ข <๐˜ด๐˜ต๐˜บ๐˜ญ๐˜ฆ> ๐˜ต๐˜ข๐˜จ ๐˜ช๐˜ฏ ๐˜ด๐˜ฉ๐˜ข๐˜ฅ๐˜ฐ๐˜ธ๐˜‹๐˜–๐˜”

5 days ago 2 0 1 0

As was jQuery, then its functionality was implemented a bit different in Browsers
I'm sticking with native Web Components, stole the good parts from Lit, ditched all html stuff for document.createElement and have 0 dependencies now. No more breaking upgrade changes And AI Skills do most of the work

1 week ago 0 0 0 0

For more inspiration: css-doodle.com
(not mine)

1 week ago 0 0 0 0
Post image

Web Components are nothing but fancy HTMLElements,
No Framework, No build step, No sugar.

Alas every Tom, Dick and Harriet skipped the UNDEFINED phase (no blogs about it), said the whole proces was just too low-level and dumped tools like Lit (and its 70+ alternatives) on NPM... framing DEVs

1 week ago 0 0 1 0

The Web Components idea is simplicity, its NOT a framework.

You got Custom Elements (any HTML <tag-name> WITH a dash) and if you WANT you CAN upgrade them with JavaScript.
That's all Web Components are.

You can put code/files anywhere you want, just like 30+ years ago when we started this journey

1 week ago 1 0 1 0
Advertisement

> Web components force this file layout

Ain't Web Components just POJO (Plain Old JavaScrip Objects) and HTML tags?

You can put that code in separate JS files, inline in it HTML, hell you can even hide it in SVG files. Only CSS doesn't parse script.

So What is the file layout forcing something???

1 week ago 2 0 1 0
Post image

My biggest gripe is it discards UNdefined Custom Elements can be used in the page
unless your mdn- prefix is the marker for DEFINED Custom Elements TO BE

see dashed-html.github.io

Every blog and course dives straight into JavaScript code,
a pity because there is value in UNdefined Custom Elements

1 week ago 1 0 0 0

> need to add another step to detect what custom
> elements are being used

You already did that step, but execute it on the client
Make AI refactor it and you are done in 15 minutes

Its like going to Burning Man
than having to wait 4 weeks for it to be built

then again .. you save maybe 20ms

1 week ago 0 0 1 0

They SSR all, so have a server-side process that scans Markdown and creates HTML

Since they scan the source, might as well record what Web Components are used, and create proper
<script async/defer/import src="" >
tags in the <head>

They complain about SPAs and then introduce a JS load SPA style

1 week ago 0 0 1 0

Note: every DSD Element IS a UNdefined Custom Element
You don't HAVE to define it.

1 week ago 0 0 0 0

MDN want buttons to become interactive. You don't want to be late, you wan't to be on time, not download things too early.

<script defer/async/import> does that

For CSS they DO "use the platform" loading stylesheets with <link>

Their JS load code ignores UNdefined Custom Elements ARE valid to use

1 week ago 0 0 1 0

๐˜›๐˜ฉ๐˜ช๐˜ด ๐˜ณ๐˜ฆ๐˜ด๐˜ถ๐˜ญ๐˜ต๐˜ด ๐˜ช๐˜ฏ ๐˜ญ๐˜ข๐˜ป๐˜บ-๐˜ญ๐˜ฐ๐˜ข๐˜ฅ๐˜ช๐˜ฏ๐˜จ ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ ๐˜ฆ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต๐˜ด ๐˜ฑ๐˜ณ๐˜ฆ๐˜ด๐˜ฆ๐˜ฏ๐˜ต ๐˜ช๐˜ฏ ๐˜ต๐˜ฉ๐˜ฆ ๐˜‹๐˜–๐˜” ๐˜ข๐˜ต ๐˜ญ๐˜ฐ๐˜ข๐˜ฅ ๐˜ต๐˜ช๐˜ฎ๐˜ฆ, ๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ณ๐˜ฆ๐˜ญ๐˜บ ๐˜ข๐˜ด๐˜บ๐˜ฏ๐˜ค ๐˜ข๐˜ฏ๐˜ฅ ๐˜ช๐˜ฏ ๐˜ฑ๐˜ข๐˜ณ๐˜ข๐˜ญ๐˜ญ๐˜ฆ๐˜ญ

Yes lazy, and LATE because it can only run AFTER all DOM is parsed

๐˜ž๐˜ฆ ๐˜ข๐˜ญ๐˜ด๐˜ฐ ๐˜ข๐˜ถ๐˜ต๐˜ฐ๐˜ฎ๐˜ข๐˜ต๐˜ช๐˜ค๐˜ข๐˜ญ๐˜ญ๐˜บ ๐˜ญ๐˜ฐ๐˜ข๐˜ฅ ๐˜ฆ๐˜ท๐˜ฆ๐˜ณ๐˜บ ๐˜ธ๐˜ฆ๐˜ฃ ๐˜ค๐˜ฐ๐˜ฎ๐˜ฑ๐˜ฐ๐˜ฏ๐˜ฆ๐˜ฏ๐˜ต ๐˜ช๐˜ฏ ๐˜ฐ๐˜ถ๐˜ณ ๐˜š๐˜š๐˜™ ๐˜ฃ๐˜ถ๐˜ฏ๐˜ฅ๐˜ญ๐˜ฆ

SSR?! then use the platform! <๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ ๐™™๐™š๐™›๐™š๐™ง/๐™–๐™จ๐™ฎ๐™ฃ๐™˜/๐™ข๐™ค๐™™๐™ช๐™ก๐™š>

1 week ago 0 0 1 0
Post image

So this the AI that is doing our coding now?

1 week ago 0 0 0 0

Creative use of HTMLUnknownElements
Why?
Change <mol_list> to <mol-list>
and you get totally valid HTMLElements
Only when you call customElements.define they become Defined Custom Elements.... but that is not required.
UNdefined Custom Elements are great for layout and styling,
like your UNknowns

1 week ago 0 0 0 0
Advertisement
Claude Code builds the house, GitHub Pilot decorates the house. But its you and me that make it a home.

Claude Code builds the house, GitHub Pilot decorates the house. But its you and me that make it a home.

2 weeks ago 0 0 0 0

Most devs use import or whack on type="module" or defer on their scripts. Which makes the customElement.define execute after all DOM is parsed, thus the connectedCallback (firing on the opening tag of <my-tag>) actually has content in lightDOM.
...most don't know what is happening, let alone discuss

2 weeks ago 1 0 0 0

Its a 404 link
We waited 18 years, can wait a little longer, no worries

3 weeks ago 0 0 3 0

Since 2016/2018 There are:

โ–บ UNdefined Custom Elements - every!! dashed <tag-name>
(what Jeremy Keith called HTML Web Components)

โ–บ Defined Custom Elements - JS defined <tag-name>

I labeled them DUNCE
Declarative UNdefined Custom Elements
in a comment to DCE yesterday:
dev.to/dannyengelma...

3 weeks ago 0 0 0 0
Post image

You are one of those Flemish who refuses to speak french?

3 weeks ago 0 0 1 0

Cool, please explain how you [per screenshot] can write Web Components with Python...

3 weeks ago 0 0 15 0

> I also have brm.us which I use as my URL shortener

Did you choose your nick then registered the domain?
or did the TLD inspire your nick?

3 weeks ago 0 0 1 0