- Coding Beauty
- Posts
- 95% of users will never use your app without this JS trick
95% of users will never use your app without this JS trick
šØFruit coloring, powerful JS trick for amazing UX, and more
Senior LatAm Tech Hiring in 24 Hours
CloudDevs is the largest pool of tech talent in LatAm. Our 10,000+ pre-vetted LatAm engineers have a minimum of 7 years of experience and are hand-selected for your project in just 24 hours.
Our talent is rigorously tested for problem-solving, tech stack and communication, and specialize in everything from AI and healthtech to fintech and web3.
GPTE AI: Discover over 5,000 new AI tools for productivity, design, content creation, and more. Check it out
reduce()
can be incredibly tricky.
Can you help put the šfruits into the šØcolor baskets?
Featured content
Thereās a whole lot more to HTML than <div>
, <a>
, and <p>
.
So many more sophisticated and powerful tags that youāve probably never used.
With interesting abilities from interactive images to sophisticated UI components.
So first thereās progress
ā your typical drama-free progress bar.
You set a value and max for gradation ā pretty straightforward.
But then thereās meter
ā also known as progress
on a rampage:
2. dfn
dfn ā for anything weāre gonna define in the page:
And the definition must be inside the dfn
ās parent tag, or elseā¦
Or else nothing ā just a semantic rule you can happily disregard.
3. dialog
New native HTML dialogs!
Stay open from the get-go:
Built-in support for closing:
Without this trick you will waste thousands of dollars and users will hate your app.
First theyāll be irritated by the horrible user experience and probably never return.
So imagine youāve created an amazing AI writing assistant giving helpful suggestions for writing engaging stories:
Youāve got your API all set up for requests in handleChange
:
But unfortunately thereās a serious problem ā can you spot it? š
I just started writing and immediately your AI is telling me nonsense about wrong spelling!
Short story? Where is my breathing space? Canāt you at least allow me to stop typing?
Oh no, Iām done ā You ruined my day and I will NEVER return š .
Thanks for taking the time to read todayās issue.
Donāt let the bugs byte,
Tari Ibaba