How 2 TypeScript: Get the last item type from a tuple of types
https://dev.to/miracleblue/how-2-typescript-get-the-last-item-type-from-a-tuple-of-types-3fh3 [dev.to]
2019-06-18 02:50
tags:
javascript
programming
type-system
Kinda like a normal array lookup!
But what if you don’t know the length of the tuple? Hmm... how do we get TypeScript to tell us the length and then let us use that length to pick out the last item, all at compile time?
Websites that Keep Loading, and Loading and Loading….
https://dev.to/dougsillars/websites-that-keep-loading-and-loading-and-loading-4a2p [dev.to]
2019-03-27 09:37
tags:
android
development
investigation
networking
web
Websites (or 3rd party content) that continually pings a server will not allow the cellular radio to turn off, and can lead to battery drain. In this post, I have shown 4 different scenarios where my Android device continues to download content for 5 minutes after the page has been minimized on the phone.
source: L
A JavaScript-Free Frontend
https://dev.to/winduptoy/a-javascript-free-frontend-2d3e [dev.to]
2019-03-12 23:31
tags:
development
html
programming
ux
web
I built the first version of Slimvoice on Angular 1 with a Node.js backend and MongoDB in 2014 (those were all the rage back then). In 2015 I decided to completely revamp the UI and redesigned and rebuilt it in React. In hindsight, all of that was crap. With the new version I wanted to prove that it was possible to deliver an amazing user experience with a great design while drastically reducing the complexity of the code, maximizing reliability, and minimizing the cost to the end user. I’ve got the frontend to a state that I’m really proud of. Here I’ll break down the decisions I made on the frontend and share some JavaScript-free UI tricks I learned along the way.
source: L
The Case for Automatic Updates
https://dev.to/paragonie/the-case-for-automatic-updates-477a [dev.to]
2018-02-05 07:15
tags:
admin
development
security
By making updates manual rather than automatic, you’re forcing your customers to take all the responsibility for making sure that your mistakes don’t hurt their business. Only a very small minority of your customers might prefer the responsibility of verifying and applying each update themselves.
From a vendor perspective, but relevant all around.
The Balanced Ternary Machines of Soviet Russia
https://dev.to/buntine/the-balanced-ternary-machines-of-soviet-russia [dev.to]
2016-11-22 05:14
tags:
cpu
hardware
math
retro