Why you might want to build your WebApp in Canvas instead of HTML

2 months ago by cm0002 to c/webdev

jaredwhite 16 points 2 months ago

My shorter answer: if you think you need to use canvas,

you don't.

(Unless you're literally building a drawing app.)

99.99% of web applications would be better off virtually ignoring "best practices" introduced by Big Tech.

path: 0 25204974, hotness: undefined, score: 16, children: 1
Feyd 9 points 2 months ago
path: 0 25204974 25204984, hotness: undefined, score: 9, children: 0
trem 12 points 2 months ago

Oh man, I thought "Canvas" was the name of yet another web framework, but no, they mean the actual HTML <canvas/> element.

Back in university, I was tasked to build a calendar view with HTML. It was my first web project, I decided to use a canvas to draw the calendar.
It took me several times as long to complete my implementation compared to other students, because I had to re-implement layouting, click handlers and probably more things I don't remember...

path: 0 25206414, hotness: undefined, score: 12, children: 0
Dumhuvud 8 points 2 months ago

I too hate visually impaired people.

path: 0 25213402, hotness: undefined, score: 8, children: 1
GreenKnight23 0 points 2 months ago

yeah fuck those people!

if they had any sense they'd fix their broken ass eyes.

/s

path: 0 25213402 25213801, hotness: undefined, score: 0, children: 0
somegeek 5 points 2 months ago

No.

What you most probably want to do is to build your next app as simple as possible, with hypermedia driven architecture, using established patterns of rendering server side, sending html to client, client replaces HTML.

HTMX is one tool that complements and fits nicely within this well established paradigm, which is the way I'm doing web development going forward.

path: 0 25205415, hotness: undefined, score: 5, children: 1
jimmy90 0 points 2 months ago

naaaaaaaaaah

path: 0 25205415 25215365, hotness: undefined, score: 0, children: 0
webdev
webdev

@programming.dev

login for more options
5887
905
313

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

  • Follow the programming.dev site rules
  • Keep content related to web development
  • If what you're posting relates to one of the related communities, crosspost it into there to help them grow
  • If youre posting an article older than two years put the year it was made in brackets after the title

Related Communities

Wormhole

Some webdev blogs

Not sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

Credits

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

go to feed...