There are 10 things you MUST know as a programmer: 1) How to handle exceptions and error cases 10) How to understand binary For 10, this isn't the post for you. But for 1), I got you covered. I've put together a series of videos that should help you when working with errors in C#. While many of these examples are C# specific, you may find the explanations valuable if you work in other languages and tech stacks. Check them out here: - Understanding Try/Catch/Finally: https://lnkd.in/gr3Ad9zD - Exploring Result Types: https://lnkd.in/ghbkrYhc - How to NOT Throw Exceptions: https://lnkd.in/gr8xMuGz - Fail Fast or Be Defensive: https://lnkd.in/gh_xMbRW - Global Exception Handlers: https://lnkd.in/gmvnzRyr - Error Middleware in ASP NET Core: https://lnkd.in/g5Hm_6_4 If you want to stay up to date, you can make sure you bookmark this playlist: https://lnkd.in/gvKWe9Ds After this, the only error you should have to worry about is how to stop using JavaScript. Enjoy! ---- 📨 Sign up for my email newsletter! 🗣️ Share with your network! #csharp #dotnet #coding #programming
Mastering C# Error Handling with Try/Catch/Finally
More Relevant Posts
-
Day 1 of 30, starting with the line every developer writes first. 👨💻 Today I wrote my first C# Hello World as part of my 30-day .NET learning challenge. It looks simple, one line, one output, but there's actually a lot happening under the hood. "The C# compiler compiles your C# code into something called IL (Intermediate Language), which is then compiled into machine code and executed under the control of the CLR (Common Language Runtime)". Most beginners skip this part and just move on. I didn't want to. For the next 30 days, I'll be posting one .NET topic daily, starting from C# basics and going all the way to building full apps with ASP.NET Core and Blazor. Follow along if you're on the same path. #CSharp #dotNET #BuildingInPublic #30DayChallenge #dotNETCore
To view or add a comment, sign in
-
-
💡 Ever got tired of adding #include <vector> again and again in C++? I’ve always loved how JavaScript/TypeScript handles auto-imports in VS Code. But while coding in C++, I noticed I was constantly scrolling to the top of the file just to add missing STL headers. So I built a small tool to solve that problem. 🧩 Introducing C++ Auto Include — a VS Code extension that automatically detects STL symbols and inserts the correct #include header while you code. 🔍 Example Using vector, unordered_map, or sort → the extension automatically adds the correct header. ⚡ Key Features ✔ Instant Auto-Add – Headers inserted as you type ✔ Smart Placement – Inserts before using namespace std; but after existing headers ✔ CP-Friendly – Skips adding headers if #include <bits/stdc++.h> is present ✔ Quick Fix Support – Use the VS Code lightbulb to add includes manually 🎉 It’s now live on the VS Code Marketplace! If you’re a C++ developer or competitive programmer, I’d love your feedback! 🔗 Try it here: https://lnkd.in/g_qTqktm #cpp #cplusplus #vscode #opensource #softwaredevelopment #programming
To view or add a comment, sign in
-
-
💡 𝗝𝗘𝗣 𝟱𝟬𝟰: 𝗧𝗵𝗲 𝗘𝗻𝗱 𝗼𝗳 𝗮𝗻 𝗘𝗿𝗮 – 𝗚𝗼𝗼𝗱𝗯𝘆𝗲 𝗔𝗽𝗽𝗹𝗲𝘁 𝗔𝗣𝗜 If you started your journey with Java, this one hits a little differently. With JEP 504, Java is officially removing the Applet API, a technology that once brought life to the web. I still remember the joy of writing my first Applet program in my CDAC Days… That little ball bouncing inside a box, changing direction on collision — it felt like magic. No frameworks. No heavy setup. Just pure logic, graphics, and curiosity. Back then: → We learned animation through paint() → We understood threads by making things move → We debugged by watching objects behave on screen Applets weren't just a feature — they were a gateway into programming for an entire generation of developers. But times changed. Security vulnerabilities, browser evolution, and modern web frameworks made Applets obsolete. And now, Java is officially closing that chapter. 📌 𝗪𝗵𝗮𝘁 𝗝𝗘𝗣 𝟱𝟬𝟰 𝗿𝗲𝗮𝗹𝗹𝘆 𝘀𝗶𝗴𝗻𝗮𝗹𝘀: ✅ Cleaner, leaner core APIs ✅ A stronger focus on modern, secure architectures ✅ Java's commitment to evolving without carrying dead weight It's the right call. But it doesn't make it any less bittersweet. From bouncing balls to distributed systems — that tiny Applet window is where many of our developer journeys quietly began. 👋 Goodbye, Applets. You were never just code. You were our first "Hello World" that actually moved. #Java #Java26 #JEP504 #AppletAPI #Programming #Developers #TechHistory #JavaDeveloper #CDAC Amol Bhagwat RIA Advisory
To view or add a comment, sign in
-
-
💥 NullReferenceException in C#? Don’t ignore this 👇 👉 “Object reference not set to an instance of an object” One of the most common (and annoying) errors I’ve faced as a developer 😅 🔍 The Problem: Trying to access an object that is NULL Example: string billno = result[0].billno.ToString(); If result or billno is NULL → 💥 Exception ✅ The Fix: ✔️ Always check for NULL: string billno = result?[0]?.billno?.ToString(); OR if(result != null && result.Count > 0 && result[0].billno != null) { string billno = result[0].billno.ToString(); } ⚡ Pro Tip: Use null-conditional operator (?.) to avoid crashes 💬 Have you ever spent hours stuck on this error? Let’s share experiences 👇 🔖 Save this post—you’ll definitely need it again! #csharp #dotnet #developer #coding #debugging
To view or add a comment, sign in
-
As many of you offen asks me about C++ project ideas and just stuck at basic c/c++ coding projects. you learn the syntax of C++ loops, pointers, and classes. But you feel stuck in the "Black Box" of the terminal. And even most of the YouTube channels doesn't build projects on C++. The world seems to move toward JavaScript and Python and use their frameworks for development. C++ isn't just for competitive programming or operating systems. It is a powerhouse for backend development. Why Build Web Projects with C++? Memory Management: Understand how data travels through a server at Low level. Performance: C++ frameworks often outperform Node.js or Python in requests per second. Architectural Clarity: You learn exactly how HTTP requests, routing, and JSON parsing works. Increase your core understanding about website backend architectures Powerful C++ Frameworks for Your Next Project: Beginner Level: Build a Personal Portfolio Server Use Crow Framework - Serve a static HTML/CSS profile page from your C++ backend. Docs : [https://lnkd.in/gv8V3xw6] Medium Level: Build a Real-time Task Manager Use Drogon Framework - Create an API where you can Create, Read, Update, and Delete (CRUD) tasks. Docs : [https://drogon.org/] Advance Level: Build a Local File Share Tool Use Crow/Drogon - Build a tool that lets devices on your Wi-Fi upload/download files to your PC via a browser. #CSE #CodingForBeginners #Backend #WebFrameworks #Drogon #CrowCpp #RESTAPI #BUBT
To view or add a comment, sign in
-
-
Master C# and .NET Fundamentals Like a Pro If you want to become strong in C#… master the fundamentals first. This quick reference covers everything a serious developer should know: Data types and memory sizes Arrays and array operations String methods like Compare, Replace, Split, Substring StringBuilder for performance DateTime and TimeSpan usage Numeric and Date formatting Regular Expressions with Regex C# compiler commands (csc options) Control flow – if, switch, loops Classes, constructors, methods ref and out parameters Properties and access modifiers Delegates and Events Struct vs Class differences Enums and enum operations Advanced developers are not advanced because they memorize frameworks. They are advanced because their fundamentals are strong. When you understand the core language: You debug faster. You write cleaner code. You design better systems. Frameworks change. C# fundamentals don’t. Are your basics strong enough? If this feels like your journey, you’re not alone. If you want to grow on LinkedIn, follow ❤️ me Narendra Kushwaha. and DM me. I’ll guide you on the right path for 2026, based on my journey of building a 5K+ LinkedIn family in 7–8 months. #CSharp #DotNet #Programming #SoftwareDevelopment #BackendDeveloper #LearnToCode #DeveloperGrowth
To view or add a comment, sign in
-
I thought I understood strings in C#… until a simple task proved me wrong. I was building a feature and needed to concatenate text multiple times. Simple… right? That’s what I thought. I used a normal string and kept adding values in a loop. Everything worked — but something felt off. Later, I discovered something important: 👉 Every time you modify a string in C#, a new object is created in memory. Which means: • More memory usage • Slower performance • Hidden inefficiency That’s when I learned about StringBuilder. Instead of creating new objects every time, StringBuilder modifies the same object efficiently. Same result… But completely different performance mindset. 💡 Lesson learned: Sometimes, the problem isn’t your logic — it’s how the language works under the hood. Since then, I’ve started paying more attention to: ✔ Performance ✔ Memory management ✔ Writing cleaner, more efficient code And honestly… this small concept changed how I think as a developer. 🧠 Skills: C#, .NET, OOP, Performance Optimization 🔑 Focus: Clean Code, Memory Management, Efficient Programming ❓ What’s a small concept that completely changed the way you write code? #CSharp #DotNet #SoftwareEngineering #CleanCode #PerformanceOptimization #Programming #Developers #CodingJourney #TechLearning #BackendDevelopment
To view or add a comment, sign in
-
-
🚀 Async vs Await in C# – Simple Explanation (Interview Ready 💯) Many developers get confused between Async and Await, but trust me, it's super simple 👇 🔹 Async Keyword Used to define a method as asynchronous It allows the method to run without blocking the main thread Basically, it tells the compiler: "This method will run in the background" 🔹 Await Keyword Used inside an async method It waits for a task to complete before moving forward It does NOT block the thread, it just pauses the execution of that method 🔥 In Short: 👉 async = declares the method 👉 await = waits for the result 💡 Example Use Case: API calls, database operations, file reading — anything that takes time ⏳ 💬 Mastering Async/Await = Better performance + Smooth user experience #CSharp #DotNet #AsyncAwait #Programming #WebDevelopment #BackendDevelopment #SoftwareDeveloper #Coding #TechInterview #Developers #LearnCoding #DotNetCore #API #Multithreading
To view or add a comment, sign in
-
-
Developers can have their cake and eat it! 🎂 Just like objects, arrays also have an entries() method. But unlike object's entries() method which provides the key and value, array's entries() method provides the index and value. This means you can have the readability and functionality of the for...of loop whilst still easily accessing the index! #develop #object #array #method #function #index #value #key #readability #functionality #easy #access #javascript #typescript #oop #objectorientedprogramming #programming #code https://lnkd.in/dgCJg6Hf
To view or add a comment, sign in
-
-
Hi everyone 👋 Over the past few weeks, I’ve been strengthening my foundation in C# and Object-Oriented Programming, as part of my transition into the .NET ecosystem. Here’s what I’ve covered so far: ✔ C# Fundamentals ✔ OOP (Classes, Objects, Constructors) ✔ Inheritance & Polymorphism ✔ Collections & LINQ ✔ Exception Handling ✔ Interfaces (core understanding) One key takeaway from this phase is how concepts like polymorphism and interfaces enable writing flexible and scalable code, especially when working with real-world systems. With these fundamentals in place, I’m now starting the next phase: 🚀 ASP.NET Web API Looking forward to building real-world backend applications, working with APIs, and understanding how systems communicate at scale. I’ll continue sharing my progress as I move forward. #DotNet #CSharp #WebAPI #BackendDevelopment #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development