Rolling a virtual DOM

posted Feb 27th 2017, 06:00 am

preramble

One of the tools that I often end up rolling myself is a virtual DOM for re-/generating HTML dynamically. One can hope that spreading the word on their utility will help take some of that weight of my shoulders in the future. A virtual DOM may sound daunting; but we’re aiming for utility, not encoding entire standards to the letter. The focus of this post is laying a simple and extensible foundation, with transaction support thrown in as a hint of what’s to come.

virtual DOM

The main reason you may want to consider the virtual DOM approach is that it allows using the full power of your programming language to modularise, generate and update content dynamically. Templates have their uses, but abusing them to implement dynamic content is one of the worst ideas that came out of Rails. Splitting application logic in two parts/languages, one for


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/Qh40l1ZtIZs/virtual_dom.md

Original article

My 2015 MacBook Pro Retina Exploded

One afternoon as I was lying on my bed browsing the internet, my MacBook Pro suddenly turned off. I turned it back on and within a few seconds there was weird hissing sound, followed by white smoke and thin flames coming out of from the back.I got up and ran with the laptop for the bathroom where I could put it on the ceramic tiles. Not more than ten seconds had passed and already the heat from the bottom of the laptop burnt my middle and ring fingers so badly I had to let it drop.Just in time.There was a bang as I backed away causing the back to pop and smoke kept pouring out. It kept sizzling for a few minutes and then finally it stopped.The house had filled up with smoke everywhere, the acidic stench of melted plastic made my eyes water.After I had opened up all the


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/_VBrFsdx05g/my-2015-macbook-pro-retina-exploded-119ea5ea9d1f

Original article

Mozilla Acquires Pocket and Its More Than 10 Million Users

An anonymous reader quotes a report from Recode: Mozilla, the company behind the Firefox web browser, is buying Pocket, the read-it-later service, for an undisclosed amount. Pocket, which is described by Mozilla as its first strategic acquisition, will continue to operate as a Mozilla subsidiary. Founder Nate Weiner will continue to run Pocket, along with his team of about 25 people. Pocket, previously known as Read It Later, lets users bookmark articles, videos and other content to read or view later on the web or a mobile device. It’s great for things like saving offline copies of web articles to read on plane rides or subway commutes, especially where internet access is sparse. Pocket, which was founded in 2007, has more than 10 million monthly active users, according to a rep. That’s not bad, but suggests it’s still a fairly niche service, especially as big firms like Facebook and Apple


Original URL: http://rss.slashdot.org/~r/Slashdot/slashdot/~3/HLhKg91rP3E/mozilla-acquires-pocket-and-its-more-than-10-million-users

Original article

How to setup a Linux server on Amazon AWS

This tutorial shows the creation of an Amazon EC2 Linux instance (virtual server) and how to login to that server with SSH from Windows. AWS (Amazon Web Services) is one of the leading cloud server providers worldwide. You can setup a server within a minute using the AWS platform. To get started, AWS provides a special account called “Free tier” where you can use the AWS technology free for one year with some minor restrictions.


Original URL: https://www.howtoforge.com/tutorial/how-to-setup-linux-server-with-aws/

Original article

Linus on Git and SHA-1

I thought I’d write an update on git and SHA1, since the SHA1 collision attack was so prominently in the news. Quick overview first, with more in-depth explanation below:(1) First off – the sky isn’t falling. There’s a big difference between using a cryptographic hash for things like security signing, and using one for generating a “content identifier” for a content-addressable system like git.(2) Secondly, the nature of this particular SHA1 attack means that it’s actually pretty easy to mitigate against, and there’s already been two sets of patches posted for that mitigation.(3) And finally, there’s actually a reasonably straightforward transition to some other hash that won’t break the world – or even old git repositories.Anyway, that’s the high-level overview, you can stop there unless you are interested in some more details (keyword: “some”. If you want more, you should participate in the git mailing list discussions – I’m posting


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/ghbrvVceyTE/7tp2gYWQugL

Original article

11 Things You Can Do with OnlyOffice, but Can’t with Google Docs or MSW Online

We’re frequently asked the same question: what benefits does ONLYOFFICE have in comparison with other document editors? So, it’s high time we gave all of you detailed answer.
We compared ONLYOFFICE online editors to our main rivals – Google Docs and MS Word Online. And here’s the result of our little research: the list of things you actually can do using ONLYOFFICE, but can’t using Google Docs or MS Word Online:
Open documents without distortion
MS Word Online opens documents perfectly using own Viewer. It is standard MS Word, installed on their server, that shows us this picture. Press “Edit” and you will be asked whether you want to open the doc in MS Word on your PC or in MS Word Online. Choose the 2nd variant, wait for some time and say bye-bye to the original formatting. The image changed its position in the text, all of your formulas turned into sad


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/of6DIxBaJzk/

Original article

The Google Assistant is coming to more Android phones

The Google Assistant will begin rolling out this week to English users in the U.S., followed by English in Australia, Canada and the United Kingdom, as well as German speakers in Germany. We’ll continue to add more languages over the coming year.The Google Assistant will automatically come to eligible Android phones running Nougat and Marshmallow with Google Play Services. You’ll also see the Google Assistant on some newly announced partner devices, including the LG G6.


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/y0wqIsS5AJU/

Original article

Google Assistant is coming to all smartphones with Android 6.0 Marshmallow and up

If you like the idea of Google Assistant but didn’t like the fact that it was tied to the Pixel range, there’s some good news. Google has announced that the handy helper is making its way to all Android 6.0 Marshmallow and Android 7.0 Nougat smartphones. The roll out starts this week, and brings Siri- and Cortana-like voice control to millions of Android users. Earlier today at MWC 2017 in Barcelona, the newly-announced LG G6 became the first non-Pixel device to offer Google Assistant, and Google now says that the feature is coming to “eligible Android phones running Nougat and… [Continue Reading]


Original URL: https://betanews.com/2017/02/26/google-assistant-on-more-android-smartphones/

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: