|Facebook Share||Tweet This||Google+ Share|
So a young web developer said we should abandon old fashioned HTML4 markup and just use HTML5 to paint the text to a canvas.
There is a use-case for that, such as web-based games, and HTML5 Canvas is great for pixel perfection, but you want all sites to do this? I said I prefer my laptop’s battery to last 5 hours instead of 2 while browsing. Also, what about bandwidth caps? Users will need to download a font and rendering logic for every single site visited. What about copy/paste and other nice right-click functionality? An HTML5 canvas is essentially an image. He said that can be handled with additional code. Yay, more code to download for every site.
Every language has its use. I recently rewrote a Python server to pure C sockets so it would run faster. This is because Python makes an inefficient server. More than a handful of connections spiked the processor. However, for a Cron job? I wouldn’t think twice about Python. HTML5 Canvas is inefficient at presenting text. If given that project, assuming the goal is just conveying text, I’d rip it out and re-implement it in HTML4. It may be old and boring, but HTML4 is excellent at transmitting text. Google loves fast sites. Users love fast sites.
Right tool for the job.