.NET
The High Performance Types You Ignored for Years in .NET (via Nick Chapsas)
- If you have an array, you can use .Skip() and .Take() to slice it, which returns an Enumerable. To turn that into an array, use .ToArray(), but now you have the original array plus the new one.
- In .NET Core 2.1 we got the Span type. .AsSpan() does a cast rather than reallocating. This is two orders of magnitude faster and uses zero extra memory.
- ArraySegment is struct that uses pointers and offsets to make it work like a Span. There’s also StringSegment.
Communication
Use these tips to improve your executive presence (via SWLW)
- Ask a question, then wait.
- Use active voice.
- Use simple words and short sentences.
- Avoid weak adverbs (e.g., likely).
- Practice writing.
- Notice your word intonation.
- Be definitive, but make space for disagreement.
- Record and critique yourself.
- Copy the people around you.
- Ask others to help you improve.
- Don’t do all your thinking in meetings.
- Don’t worry about the umms and ahhs.
- Schedule time to prep for meetings.
- You don’t always have to come up with an answer immediately.
- Be mindful of gender and racial stuff.