Posts by cassiozen@hachyderm.io
(DIR) Post #AR17axzOwnuxlTC9tw by cassiozen@hachyderm.io
2022-12-27T01:30:05Z
1 likes, 0 repeats
#Typescript hint: Reuse your types! It’s a simple thing that pays off as your project grows; for example, if you have this type:```type Pokemon = { id: string, name: string, category: 'fire' | 'water' | 'electric', abilities: string[],}```You can access any nested type by using square brackets:```function find(category: Pokemon['category']) {// instead of using `category: string`// or repeating yourself// `category: 'fire'|'water'`…```
(DIR) Post #ASbnR5yFJU6dfF7bs0 by cassiozen@hachyderm.io
2023-02-12T16:15:45Z
0 likes, 0 repeats
@seldo your article is outstanding and to the point!
(DIR) Post #ATsi89S2Zwgr1HKvlg by cassiozen@hachyderm.io
2023-03-22T18:00:49Z
0 likes, 0 repeats
@spolsky They care for the API they’re exposing in their classes/components/packages: from naming to consistency to conciseness.
(DIR) Post #AW5PH15eWHfOQ1vVvk by cassiozen@hachyderm.io
2023-05-27T16:41:41Z
0 likes, 0 repeats
@monorailtimes Sunlu is having a flash sale on their site - I use it with AMS.
(DIR) Post #AWCt1nntWJFgUDuefY by cassiozen@hachyderm.io
2023-05-30T16:34:47Z
1 likes, 1 repeats
The best software development productivity tool: a `todo.diff` file in the project root:@@ Topic @@- Todo+ Done