Emil Petro (@petroemil) header
Emil Petro (@petroemil) profile picture

Senior Software Engineer @Microsoft | .NET Fanatic | UWP Enthusiast | Tech Junkie | Gamer | Extreme Sports Lover | Father | Opinions are my own | 🇺🇸🇬🇧🇭🇺

Seattle, WA
Joined December 2009
Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)Photo by Emil Petro (@petroemil)
That is the start of a good day
What word comes to mind when you see this?
14
No, they don't. They propose giving him shares. Which will worth even more in a year (or five) , but it doesn't matter because very few of them will be sold, so their monetary value is irrelevant.
26
Always
Are many #dotnet devs using the required modifier much?
2
114
Silverlight
fill in the blank: bring back ___________
39
🚀 Exciting times for Windows app developers! The Microsoft Store is now used by over 250 million monthly active users, offering seamless integration, automatic updates, and new opportunities for discovery and user acquisition. #MicrosoftStore #MSBuild Explore what’s new at blogs.windows.com/windowsdev…
5
27
2
163
8,891
Use return value that is VALID, not what's "easy to consume". If an empty array is a valid response in your domain, use that. If you always expect to have one or more values in the collection, return null. Null checks can be enforced via the type system, emptyness checks can not.
I always prefer empty collections over null in C#. You will typically iterate over a collection in a loop. With null, the calling code must handle the null case and check for null before accessing any collection elements. We're introducing more responsibility to the caller. Why not make it easier? I do this instead (pick one): - C# 12 collection expressions → [] - Enumerable.Empty - Array.Empty - a new List() Makes life easier for everyone. P.S. Here are 8 more Clean Code tips: milanjovanovic.tech/blog/8-t…
51
Don't care about range but I want charging stations to be as abundant as gas stations. Range is not the problem. Lack of charger in many regions (even in the US) is.
🔌 Out of curiosity, how many people feel an EV needs 500 miles of range?
27
I wish people would stop over-sensationalizing this $56 billion estimated value. It's completely useless and irrelevant. It's not about money, it's about ownership and voting power in his own company.
NEWS: Tesla and Elon Musk today officially filed their appeal with Delaware’s Supreme Court after a state judge rejected his $56 billion compensation package for the second time. qz.com/tesla-elon-musk-compe…
1
30
While it's an interesting publicity stunt, what I'd love to see is existing gas stations adding EV chargers to a few of their parking spots. Since traditional gas stations are literally everywhere, this would virtually eliminate the "EV range anxiety".
From ⛽️ to 🔌⚡️ Expect to see this a lot more in the coming years
36
A last minute contestant for Worst Advice of 2024?
If you’re a guy in your early 20s, buy a Rolex. Go into debt if you have to
37
Do you remember when you joined X? I do! #MyXAnniversary
23
Today is a bit of a special day, as we can finally announce something I've been planning for and working on for almost two years now: UWP support for .NET 9 and Native AOT! Bringing all Windows UI frameworks to parity on modern .NET at last. Try it out! 🚀 devblogs.microsoft.com/ifdef…
16
64
13
224
26,185
🎶 Starships were meant to fly 🎶
Starship is ready to fly
2
50
Every single day
Does anyone else remember the Microsoft Silverlight? #WebDesignHistory
35
Today I finally realized that LFG nowadays stands for "let's f*ing go" and not "looking for group" 🤦‍♂️
1
1
122
var all the way, no debate Though I do have to confess, I'm a little 🍋 about how var messes with nullability annotations.
My .NET 🌶️ take? We should all stop using the 'var' keyword. Why? 📹below.
1
54
So... where is my FSD Trial?
Reasonable question. Should get solved in the next few days. This affected some vehicles (~12% of total fleet) previously on a base software branch. Cant provide an exact date but should have you on the most updated build this coming week. Sorry for my delay in responding as I didn’t want to provide bad info without confirming with the @teslasi team.
56
I feel like this Reuters article was an IQ test and by looking at that dip in the stock price, a whole lot of people failed it. You can't just blackmail a company to reveal yet to be announced info by making up some FUD and then demanding clarification.
Replying to @zerohedge
Reuters is lying (again)
1
48
Except if you are on a tablet...
The only correct way to use the Start Menu is to: - Press the Windows key - Start typing what you want - Press enter
1
38