Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access

Tag: Development Workflow

Visual Studio

Visual Studio Live Share: Real-time Collaborative Coding Like Google Docs

- 05.02.26 - ErcanOPAK comment on Visual Studio Live Share: Real-time Collaborative Coding Like Google Docs

Need to pair program with remote teammates? Live Share turns VS Code into a collaborative editor with shared debugging. # Installation # 1. Install Live Share extension in VS Code # Extensions → Search “Live Share” # Install by Microsoft # 2. Sign in with GitHub/Microsoft account # 3. Start a session # Click Live […]

Read More
Windows

Windows 11 WSL2: Run Linux at Native Speed Without Dual Boot

- 05.02.26 - ErcanOPAK comment on Windows 11 WSL2: Run Linux at Native Speed Without Dual Boot

Still rebooting to switch between Windows and Linux? WSL2 gives you full Linux kernel running at native speed inside Windows 11. Complete WSL2 Setup in 5 Minutes: # 1. Enable WSL feature dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart # 2. Enable Virtual Machine Platform dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart # 3. Download and install […]

Read More
Git

Git Hooks Automation: Pre-commit Checks That Save Hours of Debugging

- 05.02.26 - ErcanOPAK comment on Git Hooks Automation: Pre-commit Checks That Save Hours of Debugging

Tired of catching bugs in code review? Git hooks automatically validate code before it even reaches the repository. #!/bin/bash # .git/hooks/pre-commit # Exit immediately if any command fails set -e echo “🚀 Running pre-commit checks…” # 1. Check for debugging statements echo “🔍 Checking for console.log statements…” if git diff –cached –name-only | xargs grep […]

Read More
AI

AI Coding Assistant: ChatGPT Prompts That Generate Production-Ready Code

- 05.02.26 - ErcanOPAK comment on AI Coding Assistant: ChatGPT Prompts That Generate Production-Ready Code

Tired of AI giving you buggy code snippets? These structured prompts extract perfect, tested code from ChatGPT and Copilot. The Structure for Perfect Code Generation: ROLE: Senior [Language] Developer with 10 years experience TASK: Create [specific feature] CONSTRAINTS: [technical limitations] REQUIREMENTS: [must-have features] OUTPUT FORMAT: [code structure] TEST: [validation criteria] Example: ROLE: Senior C#/.NET Developer […]

Read More
February 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
232425262728  
« Jan    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (934)
  • How to add default value for Entity Framework migrations for DateTime and Bool (830)
  • Get the First and Last Word from a String or Sentence in SQL (822)
  • How to select distinct rows in a datatable in C# (799)
  • How to make theater mode the default for Youtube (708)
  • Add Constraint to SQL Table to ensure email contains @ (571)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (552)
  • Average of all values in a column that are not zero in SQL (517)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (473)
  • Find numbers with more than two decimal places in SQL (436)

Recent Posts

  • SQL: Use COALESCE to Replace NULL Values Inline
  • .NET Core: Use File-Scoped Namespaces to Reduce Indentation
  • .NET Core: Use Top-Level Statements to Skip Program Class Boilerplate
  • Git: Stash Untracked Files with –include-untracked Flag
  • Git: Create Aliases for Common Commands to Save Typing
  • AJAX: Use FormData to Upload Files Without jQuery
  • JavaScript: Use Array.at() to Access Array Elements from End
  • HTML5: Use loading=’lazy’ Attribute to Defer Offscreen Images
  • Windows 11 Snap Layouts: Organize 10+ Windows Without Alt+Tab Hell
  • Kubernetes Ingress: Expose Multiple Services Through One Load Balancer

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (934)
  • How to add default value for Entity Framework migrations for DateTime and Bool (830)
  • Get the First and Last Word from a String or Sentence in SQL (822)
  • How to select distinct rows in a datatable in C# (799)
  • How to make theater mode the default for Youtube (708)

Recent Posts

  • SQL: Use COALESCE to Replace NULL Values Inline
  • .NET Core: Use File-Scoped Namespaces to Reduce Indentation
  • .NET Core: Use Top-Level Statements to Skip Program Class Boilerplate
  • Git: Stash Untracked Files with –include-untracked Flag
  • Git: Create Aliases for Common Commands to Save Typing

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com