This post is unavailable.
Join now Sign in
More Relevant Posts
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐๐๐ซ๐ฉ ๐ฅ๐จ๐ง๐ ๐ฐ๐จ๐ซ๐๐ฌ ๐ข๐ง ๐ฒ๐จ๐ฎ๐ซ ๐ฏ๐ข๐ฌ๐ฎ๐๐ฅ ๐ฌ๐ญ๐ฎ๐๐ข๐จ.When any text runs off the side of the screen, the Toggle Word Warp feature of Visual Studio Code consolidates it within the window and formats it perfectly.To set word wrap preferences1) On the Visual Studio menu bar, selectTools>Options.2) SelectText Editor>All Languages>Generalto set this option globally.Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
15
2 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
Prefer using extension methods over AutoMapper. Here's why: ๐ฆ๐ถ๐บ๐ฝ๐น๐ถ๐ฐ๐ถ๐๐: Write what you need, and only what you need. Extension methods allow for precise mapping without additional configuration overhead. ๐ฃ๐ฒ๐ฟ๐ณ๐ผ๐ฟ๐บ๐ฎ๐ป๐ฐ๐ฒ: No reflection, no hidden costs. Direct mapping ensures optimal runtime performance, saving precious milliseconds. ๐ฅ๐ฒ๐ฎ๐ฑ๐ฎ๐ฏ๐ถ๐น๐ถ๐๐: Code tells a story. When someone else reads your mapping, extension methods can be more explicit, eliminating guesswork about what gets mapped where. ๐๐น๐ฒ๐ ๐ถ๐ฏ๐ถ๐น๐ถ๐๐: It's your code. Tailor mapping logic to specific scenarios without being constrained by a library's limitations. ๐๐ฒ๐ฏ๐๐ด๐ด๐ถ๐ป๐ด: Step directly into your mapping code. No more complex debugging through AutoMapper's internals. While AutoMapper is an incredible library with robust features, sometimes the most straightforward solutions can offer more clarity and efficiency. ๐ฅ๐ฒ๐บ๐ฒ๐บ๐ฏ๐ฒ๐ฟ: Choose the right tool for the right job. And keep it simple!Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
24
4 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
See AlsoVueJS โ Folder StructureSPA Editor Project | Getting Started with the AEM SPA Editor and Angular | Adobe Experience ManagerNouman Baloch ๐ต๐ธ on LinkedIn: Prefer using extension methods over AutoMapper. Here's why:โฆPython: Instance Breaking and Loading PyTorch Weights File for AutoAnnotations- Report this post
๐๐ก๐๐ญ ๐ข๐ฌ ๐ ๐ข๐ญ ๐ฌ๐ญ๐๐ฌ๐ก๐ข๐ง๐ ๐๐ง๐ ๐ฐ๐ก๐๐ญ ๐ข๐ฌ ๐ญ๐ก๐ ๐ฎ๐ฌ๐ ๐๐๐ฌ๐ ๐จ๐ ๐ฌ๐ญ๐๐ฌ๐ก๐ข๐ง๐ .Often, when youโve been working on part of your project, things are in a messy state and you want to switch branches for a bit to work on something else. The problem is, you donโt want to do a commit of half-done work just so you can get back to this point later. The answer to this issue is thegit stashcommand.Stashing takes the dirty state of your working directoryโโโthat is, your modified tracked files and staged changesโโโand saves it on a stack of unfinished changes that you can reapply at any time (even on a different branch).Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
28
7 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐๐ญ๐จ๐ฉ ๐๐๐๐ฎ๐ ๐ ๐ข๐ง๐ ๐๐ง๐ ๐๐ญ๐๐ซ๐ญ ๐๐ฎ๐ง๐ง๐ข๐ง๐ ๐ข๐ง ๐๐ข๐ฌ๐ฎ๐๐ฅ ๐๐ญ๐ฎ๐๐ข๐จWe're all used to pressing F5 to run our solutions in Visual Studio. However, there's a potential gotcha! The default behavior with F5 is actually "๐๐๐๐ฎ๐ ". This means Visual Studio launches the debugger, which can significantly slow down the startup process.The faster alternative is "๐๐ญ๐๐ซ๐ญ ๐ฐ๐ข๐ญ๐ก๐จ๐ฎ๐ญ ๐๐๐๐ฎ๐ ๐ ๐ข๐ง๐ " (known as "Run"). In Visual Studio, you can access this with the hollow Play icon on the toolbar or by using the keyboard shortcut Ctrl+F5.๐๐ก๐ข๐๐ก ๐ฆ๐๐ญ๐ก๐จ๐ ๐๐จ ๐ฒ๐จ๐ฎ ๐ฎ๐ฌ๐ ๐๐ฒ ๐๐๐๐๐ฎ๐ฅ๐ญ?If you're a habitual F5 user, give Ctrl+F5 (hollow Play) a try with your main application. Let me know in the comments if you notice a difference in startup speed!Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
26
4 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
A .gitignore file tells Git which files to ignore (not track). This keeps your project clean by excluding unnecessary files and prevents accidental commits. ๐๐๐ ๐ .๐ ๐ข๐ญ๐ข๐ ๐ง๐จ๐ซ๐ ๐ ๐ข๐ฅ๐:Open your project in Visual Studio.Go to๐๐จ๐จ๐ฅ๐ฌ > ๐๐ฉ๐ญ๐ข๐จ๐ง๐ฌ > ๐๐จ๐ฎ๐ซ๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ > ๐๐ข๐ญ ๐๐๐ฉ๐จ๐ฌ๐ข๐ญ๐จ๐ซ๐ฒ ๐๐๐ญ๐ญ๐ข๐ง๐ ๐ฌ.Under๐๐๐ง๐๐ซ๐๐ฅ, click the๐๐๐button next to๐๐ ๐ง๐จ๐ซ๐ ๐ ๐ข๐ฅ๐.This creates a .gitignore file with some common defaults for .NET projects. You can further customize it by adding patterns for specific files or folders you want to exclude.Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
41
4 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐๐๐ฏ๐ ๐ฒ๐จ๐ฎ ๐๐ฏ๐๐ซ ๐๐๐๐ง ๐จ๐ง ๐ ๐ฐ๐๐๐ฌ๐ข๐ญ๐ ๐ญ๐ก๐๐ญ ๐ญ๐๐ค๐๐ฌ ๐๐จ๐ซ๐๐ฏ๐๐ซ ๐ญ๐จ ๐ฅ๐จ๐๐ ๐ ๐ฉ๐๐ ๐?It can be frustrating for users, and not great for your server either. Cancellation Token is a built-in feature in .NET that lets users cancel requests that are taking too long.๐๐๐ฎ๐ญ๐ข๐จ๐ง:Utilize the CancellationToken for read-only actions that donโt impact data integrity.๐๐ฆ๐๐ฅ๐ฅ ๐๐ข๐ฉ:โThe Roslyn Analyzer and Meziantou.Analyzer contains a rule to detect missing CancellationToken: MA0040 - Use a cancellation token when available.โ๐๐จ๐ข๐ง ๐๐ก๐๐ญ๐ฌ๐๐ฉ๐ฉ ๐๐ซ๐จ๐ฎ๐ฉ ๐จ๐ .๐๐๐ ๐๐๐ฏ๐๐ฅ๐จ๐ฉ๐๐ซ๐ฌhttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
27
4 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐ ๐๐ฎ๐ฅ๐๐ฌ ๐๐จ๐ซ ๐๐๐๐ฌ1) Should not contain logic or behaviour.2) Should not enforce encapsulation. They don't need private/protected members.3) Should use properties not fields.4) Should only use "DTO" or "Dto" in their name as a last resort. Name them for how thy are used.5) These should be modelled as DTOs:- API request/response objects.- MVC viewmodel objects.- Database query result objects.- Messages (Commands, Events, Queries)Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
68
6 Comments
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐๐๐ซ๐'๐ฌ ๐ฆ๐ฒ ๐ญ๐๐ค๐ ๐จ๐ง ๐ฎ๐ฌ๐ข๐ง๐ ๐ ๐ฌ๐ข๐ง๐ ๐ฅ๐ ๐๐๐ญ๐๐๐๐ฌ๐ ๐ฏ๐๐ซ๐ฌ๐ฎ๐ฌ ๐ฌ๐๐ฉ๐๐ซ๐๐ญ๐ ๐๐๐ญ๐๐๐๐ฌ๐๐ฌ ๐๐จ๐ซ ๐๐๐๐ก ๐ญ๐๐ง๐๐ง๐ญ, ๐๐๐ญ๐๐ซ ๐ซ๐๐๐๐ข๐ฏ๐ข๐ง๐ ๐๐๐๐๐๐๐๐ค ๐๐ซ๐จ๐ฆ ๐ฅ๐๐ฌ๐ญ ๐ฉ๐จ๐ฅ๐ฅ:๐๐๐๐๐๐๐We should only create separate databases if isolation of data is requested by a specific client; otherwise, a single database with a tenant_id is more than sufficient. Multiple databases add complexity, and we should only introduce complexity if there is no other option. Don't create multiple databases just to look fancy.Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
6
Like CommentTo view or add a comment, sign in
-
Nouman Baloch ๐ต๐ธ
Senior .NET Developer with skills in (.NET Core, 5, 6, 7, 8 Web API's, MVC, Azure Cloud, SignalR, JavaScript, jQuery, Angular)
- Report this post
๐๐๐ฌ๐ ๐๐๐ฉ๐จ๐ฌ๐ข๐ญ๐จ๐ซ๐ฒ ๐๐ง๐ ๐ข๐ญ๐ฌ ๐๐ฌ๐ ๐๐๐ฌ๐:๐๐ฎ๐ซ๐ฉ๐จ๐ฌ๐: A base repository acts as a foundation for your all repositories. It defines common functionality and context that can be reused across various repositories in your application.๐๐๐ง๐๐๐ข๐ญ:๐๐๐๐ฎ๐๐๐ ๐๐จ๐๐ ๐๐ฎ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง: Base repositories eliminate the need of repetitive private read only properties for dbContext in your all repositories. You can also put common logic inside BaseRepository if you have any.๐๐จ๐ฐ ๐ญ๐จ ๐๐ฌ๐ ๐๐๐ฌ๐ ๐๐๐ฉ๐จ๐ฌ๐ข๐ญ๐จ๐ซ๐ฒ:Just inherit your repository from BaseRepository and that's it now you can access the functionalities of BaseRepository inside your specific repository.Join WhatsApp Group of .NET Developershttps://lnkd.in/dUXf4K_5Like๐ & Repost โป๏ธ
66
10 Comments
Like CommentTo view or add a comment, sign in
8,484 followers
- 528 Posts
View Profile
FollowExplore topics
- Sales
- Marketing
- Business Administration
- HR Management
- Content Management
- Engineering
- Soft Skills
- See All