
Opinions are my own and do not represent my employer. Happy to mentor, DMs open.
Bengaluru, India
Joined July 2022
- Tweets156
- Following1.5K
- Followers19
- Likes451
Gagan retweeted
Another bang I read thru earlier this week: a series of writing on hardware & programming languages memory models + Go's memory model, written by @_rsc (TL at Google for Go)
Gagan retweeted
SWE II on our 1st party engineering systems:
jobs.careers.microsoft.com/g…
Gagan retweeted
Senior SWE on 1st party engineering systems jobs.careers.microsoft.com/g…
Gagan retweeted
How to implement the Undo feature?
You can use the Memento Design Pattern 👇
The Memento pattern is a behavioral design pattern that allows an object to save its state and restore it later.
The main idea is to provide the ability to restore an object to its previous state, which can be very useful in scenarios like undo mechanisms in software.
Here's a simple explanation:
• Memento: This is a class that holds the state of an object. It doesn't perform any operations; its only job is to store data.
• Originator: This is the main object whose state needs to be saved and restored. It creates a memento containing a snapshot of its current internal state and can be used to restore it.
• Caretaker: This class is responsible for the memento's safekeeping. It keeps track of the memento(s) but never modifies or examines the contents of a memento.
Imagine you're writing a text editor in C#. You want to implement an "undo" feature that allows users to revert to previous states of their document.
You can do that as displayed on the slides below.
P.S. I already created a 1st edition ebook "Design Patterns SIMPLIFIED".
Check out it here: stefandjokic.lemonsqueezy.co…
Hurry up and use the promo code: HOLIDAYS for a 30% discount on my new ebook.
#Dotnet
#designpatterns
Gagan retweeted
I am delighted to announce publication of the 4th edition of Linear Algebra Done Right as an Open Access book. The electronic version is legally free to the world at linear.axler.net/.
That website also has links to pre-order the print version of the book.
#linearalgebra
Gagan retweeted
If you need a 32” 4K display in *portrait* mode to read & code, I’m sorry but scrolling ↕️ is not your biggest problem 😁
Gagan retweeted
Computer monitors would all be much better if they had a physical brightness knob right there on the front. But this is high-level 1960s technology that has since been lost.
Gagan retweeted
Install Sysinternals from the Microsoft Store
thomasmaurer.ch/2021/10/inst…
#Sysinternals #Windows #Windows11 #Windows10
Gagan retweeted
A reminder that DMs are always open for graphics related questions or for mentoring people who want to get in the industry as graphics programmers (I can advise on CV, portfolio etc). Don't hesitate to reach out!
Gagan retweeted
And here it is... Only 212 pages if printed 😍
devblogs.microsoft.com/dotne…
Gagan retweeted
An update on the green thread experiment for .NET github.com/dotnet/runtimelab… #dotnet
Gagan retweeted
Been doing a lot of copy paste lately. So I’m going to copy what @rauchg did and donate all my monthly @X earnings to the dev community.
Starting with $500 (if it’s less than this I’ll add the rest).
If you’re a student and/or working on an open source project and you need fund to buy a laptop, a course or a license, send me a dm, I’ll get it for you.
Thanks.
Gagan retweeted
This is a weird feeling as I’ve dedicated my career to sharing others’ achievements but I’m gonna to take a moment to celebrate myself. I’ve been promoted to Vice President of Developer Community at Microsoft!
Gagan retweeted
It's ready! #MicrosoftDevBox GAs today! Over 10K MSFT devs use DevBox as project-specific, ready-to-code, workstations. Excited to see more devs power up with cloud-based DevBoxes for optimized DevEx so they can focus on code that only they can write. aka.ms/AAlhpyp




























