11 Matching Annotations
- Sep 2022
-
www.codementor.io www.codementor.io
-
Conventions are good, but they are very limited: enforce them too little and the programmer becomes coupled to the code—no one will ever understand what they meant once they are gone. Enforce too much and you will have hour-long debates about every space and colon (true story.) The “habitable zone” is very narrow and easy to miss.
-
- Aug 2021
-
github.com github.com
-
The above works great. However, the problem comes when I want to use literal types for my legal values. In my code, I want to do that so I can make sure I define a "handler" for every legal value: const legalValues = <const>["a", "b", "c"]; // later on... // Because legalValues entries are literal types, // I get a compiler error if I forget to define any behaviors const behaviors: { [K in typeof legalValues[number]]: any } = { a: something, b: somethingElse, c: anotherThing };
-
- Jun 2021
-
blog.viktoradam.net blog.viktoradam.net
-
We also get a hook to alter commit messages so that they include a common suffix. We can then use this to set up a server-side hook that refuses changes that don’t have this in their messages.
-
- Mar 2021
-
en.wikipedia.org en.wikipedia.org
-
Mutually exclusive categories can be beneficial. If categories appear several places, it's called cross-listing or polyhierarchical. The hierarchy will lose its value if cross-listing appears too often. Cross-listing often appears when working with ambiguous categories that fits more than one place.
-
-
en.wikipedia.org en.wikipedia.orgPyPy1
-
RPython puts some constraints on the Python language such that a variable's type can be inferred at compile time.
-
-
trailblazer.to trailblazer.to
-
Instead of one big code pile, activities will gently enforce a clean, standardized way for organizing code.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
They are an abstraction that will save code and bugs, and introduce strong conventions.
-
-
dev.blake.com.au dev.blake.com.auJobs1
-
The office door is locked at 5pm. We work hard, but at 5 it's time to go home!
-
- Sep 2020
-
github.com github.com
-
On the other hand, we could impose restrictions to the feature in order to avoid these hard paths.
-
-
svelte.dev svelte.dev
-
Instead, my purpose is to illustrate why an alternative approach — based on Single File Components with real CSS — is so damn delightful.
-
-
www.codingwithjesse.com www.codingwithjesse.com
-
By enforcing this practice, Svelte can make some assumptions that simplify your code.
-