You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Encourage streams because it's harder to use intermediary variables (which can lead to bugs) and forces "one-by-one" approach. It is easier to explain the [`Object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) solution over multiple conditionals when it's a stream.
58
58
- If a student uses an `Object`, point them to `falsy` values.
59
+
- Highlight TypeScript's ability to infer types automatically, reducing the need for explicit type declarations in many cases.
60
+
- For example, TypeScript can infer the types of objects like TRANSCRIPTION without the need for explicit type declarations, making code more concise and readable.
61
+
- However, in more complex applications where types like DnaNucleotide and RnaNucleotide are externally provisioned, explicitly defining types using constructs like Record<X, Y> might be more appropriate.
62
+
- Additionally, if those types exist, one may also expect all the transitions/transcriptions to exist as types.
63
+
- This balance between conciseness and explicitness is crucial for maintaining clarity and robustness in the codebase.
0 commit comments