2 top tips

Do you think there will be a push­back to more HTML-coded sites in the next five years, pow­ered by API-based CMSes?

net magazine - - Q&AS - Ben Fur­fie, North-West Eng­land, UK

BS: Yes. Build­ing fron­tends us­ing ex­clu­sively client-side code (HTML, JavaScript and CSS) and hook­ing them to APIs via AJAX has two clear ad­van­tages over the server-ren­dered-HTML model (PHP, ASP, JSP and so on).

Ben­e­fit 1: Ubiq­uity

Client-side code is based on open stan­dards and can run vir­tu­ally any­where. These days, with tech­nolo­gies like Cor­dova, Re­act Na­tive and Elec­tron, ‘any­where’ in­cludes desk­top and mo­bile apps too. This pro­vides an in­cred­i­ble op­por­tu­nity for code re­use across plat­forms. We see many apps tak­ing ad­van­tage of this to­day, in­clud­ing Slack, Twit­ter, Medium and Facebook.

Ben­e­fit 2: Cost

Static host­ing is un­be­liev­ably cheap. Cloud providers like AWS, Azure and Google Cloud let you host static files (JavaScript, HTML, CSS, im­ages and so on) on a global, dis­trib­uted in­fra­struc­ture for next to noth­ing. The re­use en­abled by ben­e­fit 1 also leads to lower costs, as com­pa­nies write things once and use them ev­ery­where.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.