<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Osama (Oisee) Ishtiaq on Medium]]></title>
        <description><![CDATA[Stories by Osama (Oisee) Ishtiaq on Medium]]></description>
        <link>https://medium.com/@osamaishtiaq?source=rss-fc2332cf33c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qi1DGKEF108hQWWraFKyRQ.png</url>
            <title>Stories by Osama (Oisee) Ishtiaq on Medium</title>
            <link>https://medium.com/@osamaishtiaq?source=rss-fc2332cf33c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:07:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osamaishtiaq/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Some life advice from your big brother]]></title>
            <link>https://osamaishtiaq.medium.com/some-life-advice-from-your-big-brother-7baaabc9991c?source=rss-fc2332cf33c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7baaabc9991c</guid>
            <category><![CDATA[young-people]]></category>
            <category><![CDATA[real-talk]]></category>
            <category><![CDATA[life-advice]]></category>
            <category><![CDATA[advice-to-my-younger-self]]></category>
            <dc:creator><![CDATA[Osama (Oisee) Ishtiaq]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 17:08:17 GMT</pubDate>
            <atom:updated>2025-07-02T17:08:17.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Alright listen, I know you’re hearing a lot of things online — “be open,” “show your emotions,” “be kind to everyone,” “just be yourself.” That’s fine for safe spaces and close friends. But the real world doesn’t work like that.</p><p>There’s a difference between being good and being naive. You can be a good person, stay true to your values, and still not get stepped on. But to do that, you gotta understand what actually plays out in the real world.</p><p>Here’s what I’ve seen — and what you should keep in mind before life teaches it the hard way.</p><p>First, don’t be out here showing everyone your weaknesses like it’s some personality trait. I’m not saying don’t feel stuff. I’m saying don’t hand people ammo they didn’t even ask for. The world claps for vulnerability on social media but quietly lowers their expectations of you behind the scenes. Be real, but hold your ground. If you’re struggling, talk to people who earned the right to hear it.</p><p>And while we’re on it, stop thinking you have to play small just to seem humble. That “let your work speak for itself” line? Only works if people are actually watching — and they usually aren’t. You have to learn how to speak for yourself, show what you’re about, and not apologize for being competent. You’re not showing off. You’re making sure people know your value before they decide what you’re worth.</p><p>High standards are a good thing, but only if you know where to apply them. You don’t need to be perfect in every little thing. But when it comes to your name, your word, your craft — don’t let it slide. People judge based on what they see, and unfortunately, they rarely see the effort — only the outcome.</p><p>Being kind is great. But if you can’t stand up for yourself or say no without overexplaining, people will walk right over you. And it won’t even be personal — they’ll just assume you’re the type they <em>can</em> walk over. Don’t make being agreeable your personality. Have a spine. Learn to be direct without being disrespectful.</p><p>Also, people talk a lot about treating everyone the same. That’s cool in theory. In reality, people treat you based on where they <em>think</em> you are in the pecking order. You act like a side character, they’ll treat you like one. Learn to carry yourself like someone who belongs, even if you’re still figuring it out.</p><p>You don’t have to give everyone your time and attention. Generosity is good, but blind generosity is how you get drained and taken for granted. Give your energy to people who give back. Not everyone deserves a seat at your table just because they showed up hungry.</p><p>And when it comes to emotions, feel them — but don’t let them lead you. Especially not in public or in moments that matter. People respect composure. Falling apart in front of the wrong audience can cost you opportunities you won’t even know you missed. Hold it down when it counts. You can cry later, in private, after you’ve done what needed to be done.</p><p>Now about being “authentic” — yeah, be real, but don’t be unfiltered. Not everyone gets to see every version of you. That’s not being fake. That’s being smart. Protect your image. People decide if they trust you, hire you, or even listen to you based on their first impression. Make it count.</p><p>And if you’ve worked hard for something, don’t hide it out of fear someone will think you’re bragging. You’re not being arrogant for letting people see what you’ve earned. You’re reminding them that your effort wasn’t for nothing. There’s nothing wrong with visible success — as long as it’s honest.</p><p>Lastly, being nice to everyone all the time? It’s not sustainable. People confuse kindness with weakness real fast. You need space. You need standards. Not everyone gets access just because they smiled. Keep your warmth, but learn how to pull it back when people haven’t earned it.</p><p>I’m telling you all this because I want you to win without losing who you are. You don’t have to become cold or fake. But you do have to become sharp. Being good in a messy world requires more than good intentions — it takes strategy. And no one teaches this part in school.</p><p>So yeah, be thoughtful, be kind, be yourself — but be smart about it. I’ll always have your back, but the world won’t. So move like someone who understands that</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7baaabc9991c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving from C# to TypeScript: Understanding the Key Differences]]></title>
            <link>https://osamaishtiaq.medium.com/moving-from-c-to-typescript-understanding-the-key-differences-57aeb3890672?source=rss-fc2332cf33c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/57aeb3890672</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[dot-net-developers]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Osama (Oisee) Ishtiaq]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 22:24:54 GMT</pubDate>
            <atom:updated>2026-09-10T07:44:08.091Z</atom:updated>
            <content:encoded><![CDATA[<p>TypeScript is often seen as a “safer” version of JavaScript, providing type safety and an object-oriented programming (OOP) structure that looks familiar to C# developers. However, under the hood, TypeScript is just a thin layer over JavaScript, and JavaScript does not behave like C#. This can lead to misconceptions when transitioning from C# to TypeScript.</p><p>This article explores how TypeScript differs from C# and how to shift your mindset to avoid common pitfalls.</p><h3>1. TypeScript Creates an Illusion of Classical OOP</h3><h3>C# Uses True Classes, JavaScript Uses Prototypes</h3><ul><li><strong>C#</strong> uses a classical inheritance model, where classes and objects are distinct.</li><li><strong>TypeScript</strong> introduces class, private, protected, and interfaces, but these features disappear when compiled to JavaScript.</li><li><strong>JavaScript</strong> is prototype-based, meaning objects inherit directly from other objects rather than classes.</li></ul><h3>Example: TypeScript vs. JavaScript Prototype Behavior</h3><h4>TypeScript (Looks Like C#)</h4><pre>class Card {<br>    constructor(public name: string, public attack: number) {}</pre><pre>    display(): void {<br>        console.log(`${this.name}: ${this.attack}`);<br>    }<br>}</pre><h4>JavaScript Output (What Actually Runs)</h4><pre>&quot;use strict&quot;;<br>class Card {<br>    constructor(name, attack) {<br>        this.name = name;<br>        this.attack = attack;<br>    }<br>    display() {<br>        console.log(`${this.name}: ${this.attack}`);<br>    }<br>}</pre><p>Although it looks the same, JavaScript <strong>does not enforce types</strong> or true class-based encapsulation.</p><h3>2. Private and Protected Members Are Not Truly Private</h3><p>TypeScript lets you define private fields using private, but JavaScript does not enforce this.</p><h3>TypeScript (Looks Safe)</h3><pre>class Card {<br>    private id: number;<br>    constructor(public name: string, public attack: number) {<br>        this.id = Math.random();<br>    }<br>}</pre><h3>JavaScript Output (No Privacy)</h3><pre>class Card {<br>    constructor(name, attack) {<br>        this.name = name;<br>        this.attack = attack;<br>        this.id = Math.random();<br>    }<br>}</pre><p>🔴 <strong>Problem</strong>: id is accessible from outside the class.</p><pre>const c = new Card(&quot;Fireball&quot;, 5);<br>console.log(c.id); // Not really private!</pre><p>✅ <strong>Solution</strong>: Use #privateFields</p><pre>class Card {<br>    #id;<br>    constructor(name, attack) {<br>        this.name = name;<br>        this.attack = attack;<br>        this.#id = Math.random();<br>    }<br>}</pre><h3>3. TypeScript’s Static Types Do Not Exist at Runtime</h3><p>TypeScript enforces type safety <strong>at compile-time</strong>, but the JavaScript it compiles to has no type safety at all.</p><h3>TypeScript (Seems Safe)</h3><pre>function double(x: number): number {<br>    return x * 2;<br>}<br>double(&quot;Hello&quot;); // TypeScript error</pre><h3>JavaScript Output (Runs Without Error)</h3><pre>function double(x) {<br>    return x * 2;<br>}<br>double(&quot;Hello&quot;); // Outputs NaN</pre><p>🔴 <strong>Problem</strong>: JavaScript does not enforce type safety at runtime. ✅ <strong>Solution</strong>: Use runtime type validation.</p><pre>function double(x: unknown): number {<br>    if (typeof x !== &quot;number&quot;) throw new Error(&quot;Invalid input&quot;);<br>    return x * 2;<br>}</pre><h3>4. Method Overloading Works Differently</h3><p>C# supports true method overloading, whereas TypeScript fakes it using function signatures.</p><h3>C# (True Overloading)</h3><pre>public int Add(int a, int b) { return a + b; }<br>public string Add(string a, string b) { return a + b; }</pre><h3>TypeScript (Only One Implementation Exists)</h3><pre>function add(a: number, b: number): number;<br>function add(a: string, b: string): string;<br>function add(a: any, b: any): any {<br>    return a + b;<br>}</pre><p>🔴 <strong>Problem</strong>: Only the last function exists in JavaScript; the earlier signatures are ignored. ✅ <strong>Solution</strong>: Use union types and manual type checks.</p><h3>5. TypeScript Makes JavaScript Look More OOP Than It Is</h3><p>If you rely too much on TypeScript’s OOP-like syntax, you might forget that JavaScript:</p><ul><li>Has no true <strong>private</strong> fields (unless using #privateFields).</li><li>Does not enforce <strong>static types</strong>.</li><li>Uses <strong>prototypes</strong>, not real classes.</li><li>Does not have <strong>overloaded methods</strong>.</li></ul><h3>Mindset Shift: Think in JavaScript, Not Just TypeScript</h3><p>- <strong>Remember that TypeScript compiles to JavaScript</strong> → Always check what your code <strong>actually</strong> becomes.</p><p>- <strong>Write JavaScript-first, TypeScript-second</strong> → Use TypeScript for safety, but don’t rely on it at runtime.</p><p>- <strong>Use runtime validation for critical types</strong> → TypeScript won’t save you from null or undefined.</p><p>- <strong>Favor Composition Over Inheritance</strong> → JavaScript is better at object composition than deep inheritance chains.</p><h3>Final Takeaway</h3><p>TypeScript is a great tool for maintainability and development efficiency, but it does <strong>not</strong> change how JavaScript works. If you treat TypeScript like C#, you might run into hidden issues. Instead, think of TypeScript as <strong>JavaScript with extra safety features</strong>, and you’ll have a much smoother experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57aeb3890672" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I am switching from VS Code to Vim]]></title>
            <link>https://osamaishtiaq.medium.com/i-am-switching-from-vs-code-to-vim-for-30-days-dd8fd4ef2499?source=rss-fc2332cf33c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd8fd4ef2499</guid>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Osama (Oisee) Ishtiaq]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 00:50:54 GMT</pubDate>
            <atom:updated>2022-12-14T00:52:13.494Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever since I started programming professionally in 2015, I’ve heard a lot of nice things about VIM. People who use it swear by it’s efficiency and the productivity boost it provides. I too always thought Vim was cool but what prevented me from trying it was the learning curve. Aand with VS Code doing everything and then some for me, it felt like I never will.</p><p>First off, I do not have any doubt that when it comes to the “raw” efficiency and speed of writing/editing code, Vim would make me much faster. However, I believe when it comes to programming, speed of typing is never the bottleneck but the speed of thinking is. Despite my personal opinion, I do want to try it for the next 30 days and see if I was missing out. But before doing that I do want to mention what kind of work I do and what I consider to be crucial for me in an editor.</p><p><strong>What I do?</strong></p><p>Well my work mostly consists of working with backend-services written in TypeScript. I usually have to open and work on multiple projects at once along with opening multiple terminal windows in different paths. There’s also lots of Tests and GraphQL code generation involved.</p><p><strong>What is crucial for me in an editor?</strong></p><p>Some of the things that I really appreciate in an editor are following.</p><ul><li>It should show me linting errors and warnings</li><li>I should be able to easily track what buffers/files are open and switch between them quickly</li><li>It should not get in my way when working so I can focus on the work</li><li>Good integration with git are welcome</li><li>It should support language server for typescript and features like ‘go to defination’, ‘find all references’</li><li>Should support code formatting</li><li>And finally it should be fast so I can keep multiple instances open without slowing down</li></ul><p>Honestly, VS Code checks all these boxes for me. And it also has nice features that can really change one’s way of working like</p><ul><li>It enables you to directly work in docker containers using Dev Container extension or WSL Extension to work in linux environment if you are on windows and Remote Explorer extension for Ssh</li><li>live share for pair programming</li><li>Lots and lots of extension for almost all the languages</li><li>Emmet and support for snippet extensions</li><li>GitHub CoPilot extension</li><li>Extensions that have RestClients</li><li>And much more which I don’t use but I can if I want with minimal setup required.</li></ul><p>I’ve heard that using Vim makes you a better developer because with Vim, you have to work in the command line and you have to tweak the configurations and set it up yourself. You have to read the docs, you have to install plugins and make sure mappings are not conflicting. You get to learn how files and buffers work and how to use command line tools like grep to search your way through thousand of lines of code. Cool stuff for me indeed. So here starts my journey on December 8, 2022.</p><p><strong>Initial Setup:</strong></p><p>So I installed NeoVim, followed some tutorials to enable some basic settings like relative line numbers, installed VimPlug for managing plugins, installed coc for language servers, some other extensions and NERDTree to make it similiar to VSCode. Here’s my init.vim for anyone interested: <a href="https://github.com/osamaishtiaq/dev-settings/blob/main/init.vim">https://github.com/osamaishtiaq/dev-settings/blob/main/init.vim</a></p><p>Below is what my current setup looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6PkeH8ET_kkhCdbrJ19pA.png" /></figure><p>Language server for typescript works nicely, almost as nice as VS code (almost). I’m happy to report that ‘go-to-defination’ and ‘find all references’ work nicely. Linting also appears to work as I can see errors count on bottom right corner of the status bar however it is not perfect because I rarely see information popup message on hover. For that I have to use messages command. I am also using Tmux for working with multiple terminal windows and I installed Iterm terminal because I heard it has better color support than macos default terminal. I’ve deleted VS Code and if all goes well, I might never have to install it again. 🤞🏽</p><p><strong>Update (December 14, 2022):</strong></p><p>I had to reinstall VS Code… Reason being how the buffers work in vim and not being able to find a fix at the moment. NERDTree doesn’t highlight what buffers are currently open and I couldn’t find a nice way to see what files have been modified just by looking at NERDTree or any other place. So instead of fully using Vim, I have now installed Vim extension for VS Code as a backup. I will try to use Vim but in case something just doesn’t work and I don’t have the time to fix it, I will temporarily revert to VS Code with Vim extension. More updates to follow.🤞🏽</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd8fd4ef2499" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to implement request retry mechanism in JavaScript (simple & reusable)]]></title>
            <link>https://osamaishtiaq.medium.com/how-to-implement-request-retry-mechanism-in-javascript-simple-reusable-a484e02b5d9?source=rss-fc2332cf33c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a484e02b5d9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Osama (Oisee) Ishtiaq]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 00:20:28 GMT</pubDate>
            <atom:updated>2022-04-15T08:12:03.661Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi 👋🏼,</p><p>If you are working with 3rd party/external apis that occasionally go down for brief periods of time or just drop your http requests once in a while, it would be a good idea to implement retry mechanism for your requests. To keep it short, below is the JavaScript code for implementing retry and after that, a code example with comments explaining how to use it. :)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22305615183815cebad8bff37d330fd1/href">https://medium.com/media/22305615183815cebad8bff37d330fd1/href</a></iframe><p>And then all you have to do is wrap your requests with this function, provide an error handler and an optional `retryCount` which by default is 3 so by default, your requests will be retried 3 times before it fails and calls the error handler function. In below code snippet, first function is an example of existing code without any retry logic and second function showcases how you can change it to use retry.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53c945131c66882cade9791c21755746/href">https://medium.com/media/53c945131c66882cade9791c21755746/href</a></iframe><p>Note: please do keep in mind that most of the times you don’t want to reinvent the wheel and using the builtin retry mechanism of which ever http library you are using would be sufficient. But this example doesn’t only cover http requests, you can basically use this wrapper function for any piece of code that might potentially fail and needs multiple retries. ;-)</p><p>So, to summarise, for making any request use the retry mechanism, all you have to do is follow 3 steps: <br>1. wrap your code in requestWithRetry method<br>2. copy the code in try block and paste as 1st argument<br>3. copy the code in catch block and paste as 2nd argument <br>And voila!</p><p>Leave a comment if you have any questions or if you find any bugs in the code. Happy Coding! 🧑🏻‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a484e02b5d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to fix (unfreeze) a not responding program without killing it entirely and saving your work]]></title>
            <link>https://osamaishtiaq.medium.com/how-to-fix-unfreeze-a-not-responding-program-without-killing-it-entirely-and-saving-your-work-42d14e6a76ec?source=rss-fc2332cf33c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/42d14e6a76ec</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[tech-tips]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Osama (Oisee) Ishtiaq]]></dc:creator>
            <pubDate>Thu, 04 Feb 2021 11:33:39 GMT</pubDate>
            <atom:updated>2021-02-04T11:33:39.136Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all had a moment working on our Comptuer when a program gets stuck and stops responding to your input. It happens usually when you are trying to do too many things at once on slow hardware but it can also happen due to some bug in the program you might be running. Below is something which I unfortunately encounter on a daily basis when working with Visual studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*DpEpcECbPWNoRKz687_7yw.png" /><figcaption>Visual Studio not responding</figcaption></figure><p>Regardless of what might be the cause, did you know that you don’t have to force close the program and lose all your work? If not, read ahead…</p><h3><strong>For Windows:</strong></h3><p>follow the below steps when the program turns white and says “Not responding” in the titlebar.</p><ol><li>Press Win + R and run the command “resmon” in order to open the Resource Monitor (or open it via Task Manager -&gt; Performance -&gt; Open Resource Monitor).</li><li>Under the CPU tab, find the process that is not responding (its name is in red text); right-click and select “Analyze Wait Chain…”.</li><li>Normally, you’ll see one or two processes in the popup window, with a sub-process underneath each one. The sub-process will have the word “svchost.exe” in its name. Select <em>only</em> the checkbox of the <em>last sub-process</em>, i.e. the sub-process with “svchost.exe” under the process farthest down on the list. Click “end process”.</li><li>I have never encountered that the program closes when performing the last step, but I’ll not promise that it won’t. What will normally happen, though, is that the program will magically unfreeze, and you can interact with it again. What will also happen, though, is that the speakers and microphone will stop working. If you encounter this, right-click the sound tray icon, select “Sounds”, go to the Playback tab, right-click the speakers that you’re using, and click “Test”.</li><li>The sound should now work normally. If it doesn’t, save your progress, close the program, and reboot the computer.</li></ol><h3><strong>For Mac:</strong></h3><ol><li>If you get the spinning beach ball your program, open the Activity Monitor, find the process, and note the number in the PID column.</li><li>Open Terminal, and type in this: kill -SEGV -&lt;PID NUMBER&gt;, where you replace &lt;PID NUMBER&gt; with the actual PID number.</li><li>The program will likely show a popup stating that an error has occurred, and that it will attempt to save the project. You should now be able to save the project.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42d14e6a76ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>