Passionate Web Developer. Tech Appreciator. Mac Enthusiast. 🏒 Fan. Currently doing org-design. Opinions are mine. On Mastodon: https://xitter.cf/t.co/i34jLj5pZT

Zurich, Switzerland
Joined June 2008
TypeScript: .map() only works for Arrays, not for tuples. Solution: function mapPair<S, T>(pair: readonly [S, S], mapFunc: (value: S, index: number) => T): [T, T] { return [ mapFunc(pair[0], 0), mapFunc(pair[1], 1), ]; } typescriptlang.org/play?ssl=…
7
7
29
Dominik Brack retweeted
Thank you, “unlock with Watch when facemask is on” engineers and designers. – at San Francisco, CA
6
19
2
300
Dominik Brack retweeted
Fixing memory leaks in web applications: bit.ly/fixing-memory ~ a guide to common causes of JavaScript memory leaks, how to identify and fix them 🌊🔧
8
479
14
1,499
How to update and extract data from large immutable data structures in TypeScript using the lens pattern. 📄 The Lens Pattern in TypeScript ✍️ by Simon Vie 🏷 #TypeScript #JavaScript functional.christmas/2019/6
16
40
Dominik Brack retweeted
TypeScript 3.7 is finally here! ✔ Optional Chaining & Coalescing ✔ Assertion Functions ✔ .d.ts Emit From .js Files ✔ Smarter Control Flow Analysis ✔ Flatter Error Messages and more! Check out the blog post today! devblogs.microsoft.com/types…
70
2,094
295
4,974
This is huge: nominal types are coming to TypeScript🥳 🙋‍♂️ Motivation: github.com/microsoft/TypeScr… 👨‍🏭 Pull request: github.com/microsoft/TypeScr…
11
198
19
620
ES proposal: optional chaining 2ality.com/2019/07/optional-…
2
20
2
50
Dominik Brack retweeted
Interruptible animations are awesome. I can't stop playing with this.
53
639
66
4,992
Dominik Brack retweeted
Now that @CreditSuisse is going to support Apple Pay as the first of the big financial institutions in Switzerland, it's time to reconsider. What are you going to do @zkb_ch, @UBS, @PostFinance?
1
5
1
12
Cheat sheet: creating Arrays 2ality.com/2018/12/creating-…
33
729
32
2,441
Dominik Brack retweeted
The United States Partitioned by Closest National Park redd.it/a5pkwm #MapPorn
5
96
25
219
JSON hijacking allows an attacker to extract data from a JSON API you serve. The solution? Start the JSON response with a for loop (!). #security dev.to/antogarand/why-facebo…
87
4
268
How about a declarative API for Animated via hooks 🤔
8
19
142
Love how the side-effects of global window listeners can be totally encapsulated with hooks. For example, this is used like: const {x, y} = useCoordinates(); The consumer doesn't have to care or worry about the details of window event listening. 😍
3
13
76
Dominik Brack retweeted
We wrote about how we collaborate using physical Kanban boards, have a look! blog.interactivethings.com/p…
2
1
Variadic functions are coming to #TypeScript! ”Took us four years to get expressive enough to fix this one!” — @ahejlsberg github.com/Microsoft/TypeScr…
1
5
13
Dominik Brack retweeted
After using TypeScript on this app, I never want to go back to either JS or Flow
5
2
1
21
Dominik Brack retweeted
37
814
116
1,986
Dominik Brack retweeted
Jest 23.5 now supports .each statements: lay out multiple scenarios in a tabular format! Much more concise and readable than copy/pasting tests for each scenario. Example with 4 scenarios: Before: 68 lines, copy/pasted 👎 After: 12 lines 👍 More info: buff.ly/2ODRnJk
11
189
21
545