Autofac is one of my favorites for dependency injection. But what I dislike having to do with Autofac is manually register all of my modules! There has to be a better way, right?! Absolutely. We can dynamically scan for modules in our current assembly or other assemblies that we have access to! That means our extensibility is even greater! Check out the article: https://bgh.st/nfsja6 #csharp #dotnet #programming
Autofac Dependency Injection Simplified with Dynamic Module Scanning
More Relevant Posts
-
Ever needed to parse a binary file format or call a native API that expects raw bytes? What did you reach for: MemoryBlock, Ptr, or something else? #LowLevel #Programming
To view or add a comment, sign in
-
Real talk: Your file uploads fail randomly. Large files, slow networks, timeouts. Fix: - Use chunked uploads - Add retry logic - Validate file size early Uploads should be reliable. #Programming #WebDev #Backend #DevTips
To view or add a comment, sign in
-
-
Shortest distance to reach target in a circular array... Thought process... Circular array means if indices go out of bounds, we wrap around using modulo approach. Not a formula to memorize, Can always derive it with a small example. From startIndex, we move both forward and backward and check all possible positions. Instead of simulating step by step, we directly compute dist in both directions and keep updating the mini. #leetcode #potd #programming #practice
To view or add a comment, sign in
-
-
Why use #If False instead of comments in Xojo? 🤔 Because it lets you keep broken, unfinished code in your files without stopping the compiler, and it makes managing nested comments a breeze. It's a simple directive with major workflow benefits. Learn more: https://lnkd.in/gAmY6fwR #Xojo #Programming #CodeQuality #TipsAndTricks
To view or add a comment, sign in
-
-
Real talk: You spend hours on a bug because you don’t read the error message. You just guess and try random fixes. Fix: - Read the full error - Check the line it points to - Search the exact message The answer is usually there. #Debugging #Programming #DevTips #WebDev
To view or add a comment, sign in
-
-
Excited to speak again at C++Now this year! Ever tried to build your own version of std::vector or std::function for a specific use-case? I'll share how to turn that instinct into a rigorous, scalable approach to library design. My talk explores practical examples from iterating on this approach over the past year, as well as insights from related formal theory that help clarify some of the limitations I encountered along the way. Hope to see you there!
C++Now 2026 SESSION ANNOUNCEMENT: When Abstractions Fix Too Much - Towards Flexible Library Design by Patrick Roberts https://lnkd.in/ez_i7K4V Register now at https://lnkd.in/gFVidn6w #softwaredesign #cpp #cplusplus #programming
To view or add a comment, sign in
-
-
🧩 Jetpack Compose Skills Assessment Jetpack Compose - Comprehensive Quiz Test your Jetpack Compose knowledge with this comprehensive quiz: - 10 carefully crafted questions - 20 minutes to complete - Instant results and feedback This quiz contains 10 multiple-choice questions. Each question has 4 options, but only one correct answer. Read each question carefully and select the best answer. Good luck! Take the challenge: https://lnkd.in/g8wKPTFP #JetpackCompose #Programming #CodingQuiz
To view or add a comment, sign in
-
Binary Tree Zigzag level order Traversal Approach: Do normal level order traversal Keep a boolean leftToRight ( initialize with true ) For each level: If leftToRight - push values normally (from left) Else - push in reverse order (from right) Flip direction after each level ( leftToRight = !leftToRight ) #DSA #programming #coding #problem
To view or add a comment, sign in
-
-
🧩 Jetpack Compose Skills Assessment Jetpack Compose - Comprehensive Quiz Test your Jetpack Compose knowledge with this comprehensive quiz: - 20 carefully crafted questions - 40 minutes to complete - Instant results and feedback This quiz contains 20 multiple-choice questions. Each question has 4 options, but only one correct answer. Read each question carefully and select the best answer. Good luck! Take the challenge: https://lnkd.in/gmNuX8yX #JetpackCompose #Programming #CodingQuiz
To view or add a comment, sign in
-
Thread 1 is waiting for Resource A. Thread 2 is waiting for Resource B. Neither is budging. Welcome to Deadlock Hell. 🧊 We’ve all been there—debugging a production freeze only to find two threads locked in a permanent embrace. It’s easy to create a deadlock, but it's even easier to prevent them if you follow a few core principles: 1️⃣ Always acquire locks in a consistent order. 2️⃣ Use ReentrantLock for more control. 3️⃣ Keep your synchronized blocks as small as possible. Check out the infographic below for a quick refresher! #Programming #JavaDeveloper #TechCommunity #CleanCode #Debugging
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