Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
import * as rx from 'rxjs'; | |
import { concatMap, onErrorResumeNext, tap } from 'rxjs/operators'; | |
export class WorkQueue<T = unknown> { | |
private queue = new rx.Subject<[rx.Observable<T>, rx.Subscriber<T>]>(); | |
constructor() { | |
this.queue.pipe(concatMap(this.doWork)).subscribe(); | |
} |
declare module 'server-sent-events' { | |
import express = require('express'); | |
interface Middleware extends express.RequestHandler {} | |
function MiddlewareFn(): Middleware; | |
export = MiddlewareFn; | |
} | |
declare namespace Express { | |
export interface ISSEResponse { | |
sse(value: string): void; |
Goes in my tummy |
'use strict'; | |
const http = require('http'); | |
function addGracefulShutdown(server) { | |
const oldClose = server.close; | |
const connections = {}; | |
let shouldDestroy = false; | |
let connectionId = 0; | |
function destroy(socket) { |
query IntrospectionQuery { | |
__schema { | |
queryType { | |
name | |
} | |
mutationType { | |
name | |
} | |
subscriptionType { | |
name |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.
I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.
I'd love comments and suggestions about any of these.
I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.
I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".
I hereby claim:
To claim this, I am signing this object:
using System.Collections.Generic; | |
using System.Linq; | |
using System; | |
using System.Text; | |
public static class ArrayExtensions | |
{ | |
public static Diff<T> Diff<T>(IEnumerable<T> @this, IEnumerable<T> other) | |
where T : IEquatable<T> |
public static class UIApplicationDelegateExtensions | |
{ | |
/// <summary> | |
/// Record the date this application was installed (or the date that we started recording installation date). | |
/// </summary> | |
public static DateTime StampInstallDate(this UIApplicationDelegate @this, string name) | |
{ | |
try | |
{ | |
var query = new SecRecord(SecKind.GenericPassword) { Service = name, Account = "account" }; |