Skip to content

Instantly share code, notes, and snippets.

View ufocoder's full-sized avatar
👽
🛸

Sergey ufocoder

👽
🛸
View GitHub Profile
@krendeleno
krendeleno / links.md
Last active December 11, 2023 16:19
Материалы к докладу "Анимации в браузере для самых маленьких"
@mbforbes
mbforbes / ecs-dirty-aspects.ts
Created January 4, 2022 22:22
TypeScript ECS w/ dirty Component optimization and Aspects
/**
* An entity is just an ID. This is used to look up its associated
* Components.
*/
export type Entity = number
/**
* A Component is a bundle of state. Each instance of a Component is
* associated with a single Entity.
@subzey
subzey / linestat.js
Last active April 23, 2021 15:53
linestat
import { createReadStream } from 'fs';
async function * splitLines(inputStream) {
let carry = '';
for await (const chunk of inputStream) {
const lines = (carry + chunk).split('\n');
carry = lines.pop();
yield * lines;
}

1 Software Design for Flexibility

Новая книга от одного из авторов культовой SICP (Gerald Jay Sussman) и principal author of Scheme (Chris Hanson) - «Software Design for Flexibility. How to Avoid Programming Yourself into a Corner». Авторы задаются «извечным» вопросом о гибкости кода и как ее достичь. Судя по оглавлению речь пойдет о различных техниках и подходах от комбинаторов до DSL и динамического программирования. Звучит очень интересно! https://mitpress.mit.edu/books/software-design-flexibility.

https://t.me/tripovozkiknig/62

2 Domain Modeling Made Functional

Книга про то как делать DDD методами функционального программирования (на F#, но многие аспекты применимы к ЯП без статической типизации)

@threepointone
threepointone / iframe.tsx
Created December 8, 2020 00:16
An iframe loader powered by Suspense
import { Suspense, useLayoutEffect, useRef, useState } from 'react';
type IFrameProps = React.ComponentPropsWithRef<'iframe'> & {
fallback?: JSX.Element;
};
export function IFrame(props: IFrameProps) {
const { fallback, ...rest } = props;
return (
@victor-homyakov
victor-homyakov / links - writing fast code for react and typescript.md
Last active July 11, 2023 00:47
Ссылки для презентации "Код на React и TypeScript, который работает быстро"
@wentout
wentout / isArrowOrFunctionOrClass.js
Last active September 26, 2020 05:51
The answer to the question is something an Arrow or Class or regular Function
'use strict';
const myArrow = () => {};
const myFn = function () {};
class MyClass {};
const isArrowFunction = (fn) => {
if (typeof fn !== 'function') {
return false;
  • A Type of Programming
  • Algorithm Design with Haskell
  • Beginning Haskell: A Project-Based Approach
  • Developing Web Apps with Haskell and Yesod
  • Functional Design and Architecture
  • Get Programming with Haskell
  • Haskell Book
  • Haskell Cookbook
  • Haskell Data Analysis Cookbook
  • Haskell Design Patterns