Skip to content

Instantly share code, notes, and snippets.

Why I hate TypeScript

Warning: These views are highly oppinated and might have some slightly incorrect facts. My experience with typescript was about 2 weeks in Node and a week in angular2.

Not Standard

TypeScript is implementing their own take on JavaScript. Some of the things they are writing will likely never make it in an official ES* spec either.

Technologies that have competing spec / community driven development have a history of failing; take: Flash, SilverLight, CoffeeScript, the list goes on. If you have a large code base, picking TypeScript is something your going to be living with for a long time. I can take a bet in 3 years JavaScript will still be around without a doubt.

Its also worth noting that they have built some things like module system and as soon as the spec came out they ditched it and started using that. Have fun updating!

@bripc
bripc / offline.interceptor.js
Created June 20, 2017 22:05
Workaround for OfflineJS and AngularJS offline compatibility. Interceptor that handles creating a queue of requests to resend upon connection being reestablished.
(function () {
'use strict';
angular
.module('app')
.factory('OfflineInterceptor', ["$q", function ($q) {
// queue for saving requests to be sent to the server when connection is down
var queue = [];
return {