TL; DR:
It’s my birthday 🙂
Inheritance vs Composition: one reigns champion
Rockstars need feedback
Branding isn’t just for marketing people
I’ll be hosting a live Ask Me Anything stream on Monday, April 15th at 9:30 PM PST
This newsletter issue is now archived on my website. You can read it here with a paid subscription:
https://www.devleader.ca/2024/04/13/5-things-ive-changed-my-mind-about-dev-leader-weekly-39/
What’s In This Issue
Join me and other software engineers in the private Discord community!
All of my weekly vlogs are now on YouTube which are accessible via membership!
Remember to check out my courses, including this awesome discounted bundle for C# developers:
Weekly Recap
Unfortunately, I am *extremely* behind on my normal content creation this week… I will be trying to write articles this weekend to backdate some of the days I missed this week, but overall this was quite a miss for me with respect to normal publishing.
UNEXPECTED 87% Performance Boost! – C# Collection Initializers
In C#, we have multiple ways that we can create collections. We have collection initializers in C# as well as collection expressions in C# – both of which create new collections with items in them.
But have you ever wondered about the performance of these two? Let’s use BenchmarkDotNet to performance profile our C# code and see if collection expressions have different behavior!
Starting Your New Software Engineering Role – Engineering Manager AMA
This AMA was based on the topics discussed in my newsletter:
– Sorry, LeetCode won’t save you now
– The best answers for career progress: your manager
– You’re in the driver’s seat of your career
– Non-tech skills are more important than you imagine
C# Regex On EASY Mode – 3 Beginner Examples
Have you used regular expressions in C#? If not, no worries! This is the perfect beginner primer to get you started using regex in C#!
Regular expressions allow us to do more complex string pattern matching. This means that we’re able to do more advanced variations of the basic C# string checks like StartsWith and EndsWith! Check out these beginner regex examples in CSharp!
Software Engineers Need… BRANDING?! – Interview With Anna Miller
I bet you never thought as a software engineer you were going to hear that branding was important, right?! After all, isn’t that what the marketing team is for? Isn’t that kind of a “salesy” thing?
And you’re exactly right — as a software engineer, your brand and the branding that you create can be immensely valuable for the relationships you form inside AND outside of work. In this video, I speak with Anna Miller and we get to hear all of her awesome perspectives on branding for software engineers.
OVER 800x IMPROVEMENT?! Benchmarking Regular Expressions in C#
NOTE: there was a critical flaw pointed out in these benchmarks and I’ll have a follow up article posted on Sunday and a video to YouTube on Monday explaining the situation.
Look, it’s not clickbait. If you check out these benchmarks, you’ll see a scenario that you might be doing in your very own code and you could be getting an 800x performance boost. And if you think there’s no way you have a Regex in C# that will speed up by 800x, then you might see another benchmark where you could get a 100x gain!
In this video, I walk through the various ways that you can construct a regular expression in C# and the different performance characteristics of each. While this isn’t an exhaustive benchmarking collection over a wide variety of C# regexes, hopefully, this serves as some inspiration to benchmark your code!
C# Regex Performance: How To Squeeze Out Performance
Regular expressions are powerful for pattern matching, but what about performance? Check out this article for details on C# regex performance from benchmarks. NOTE: as mentioned above for the YouTube video, there will be follow-up content for the inaccuracies in this article.
As always, thanks so much for your support! I hope you enjoyed this issue, and I’ll see you next week.
Nick “Dev Leader” Cosentino
social@devleader.ca
Socials:
– Blog
– Dev Leader YouTube
– Follow on LinkedIn
– Dev Leader Instagram