this content has moved! link coming soon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(three). | |
-export([main/1]). | |
main(FileName) -> | |
{ok, Device} = file:open(FileName, [read]), | |
Cnt = device_counts(Device, maps:new()), | |
io:format("~p", [Cnt]). | |
device_counts(Device, Map) -> | |
case io:get_line(Device, "") of |
It may be easier to have back and forth if this is converted into a temporary PR. That way we can do line comments.
- why error when private identifiers are used in JSX tag names? The following is allowed today, I don't see why private identifiers wouldn't be allowed as well.
class A {
Summary: I describe why and how we built "Autobang", a tool that automatically converts JS projects to strict TypeScript. This is an unusual solution to a problem that previously seemed intractable for large projects.
We built a tool to automatically convert a JS codebase to strict TypeScript with some interesting trade-offs. This is a hard and interesting problem I've never heard discussed
Entity Component Systems notes from someone who doesn't write games and didn't know what ECS was.
- State shape is more explicit, so much more likely to make good sense as an app grows
- ECS encourages much less plumbing for data flow between parts of an app, since systems can just read whatever they want.
- For big stateful apps, OO seems to encourage an 8-to-1 ratio of data plumbing compared to biz logic
- easier to safely share behavior
- Supports state serialization for record/replay debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const main = () => { | |
const x = 2 | |
const y = 3 | |
;[1, 2, 3].forEach(v => { | |
console.log(v, y) | |
}) | |
console.log(x, y) | |
} |