I am a back-end developer, been using
JEE (web services, ESBs, JEE, ...) for ages but just started playing around with HTML 5, CSS 3 and Javascript....
Could someone give me some inside into best practices for architecting html5-javascript web apps.... What's the best high-level architecture?
Say you want to implement a blog but you don't want to go the Wordpress route... You create a DB and offer some Rest services and then you write your index.html file with the general content (header, body, footer, ...). Now, how do you retrieve the blog articles? Do you use javascript web sockets when the page loads and update the DOM accordingly, adding the HTML code through Javascript at runtime? Or do you use AJAX for that? Or is there some other data binding technique?