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
  • Privacy Policy

Author: ErcanOPAK

CSS

CSS Animations Cause Jank on Mobile

- 16.01.26 - ErcanOPAK comment on CSS Animations Cause Jank on Mobile

Smooth on desktop, choppy on phone. WhyLayout-triggering properties used. TipAnimate only transform and opacity. .element { transform: translateZ(0); }  

Read More
Windows

Windows 11 File Explorer Feels Laggy

- 16.01.26 - ErcanOPAK comment on Windows 11 File Explorer Feels Laggy

Folders open slowly. WhyPreview handlers scanning files. TipDisable unnecessary previews.

Read More
Windows

Windows 11 Laptop Battery Drains Faster After Updates

- 16.01.26 - ErcanOPAK comment on Windows 11 Laptop Battery Drains Faster After Updates

No hardware change. WhyBackground permissions reset. TipReview startup and background apps after updates.

Read More
AI

AI Prompt — Home Repair Planning

- 16.01.26 - ErcanOPAK comment on AI Prompt — Home Repair Planning

Prompt: Help me plan a small home repair. Focus on: – Tools needed – Common beginner mistakes – Safety precautions Task: <DESCRIBE>  

Read More
AI

AI Prompt — Generate Edge Cases

- 16.01.26 - ErcanOPAK comment on AI Prompt — Generate Edge Cases

Prompt: Given this feature description, list edge cases developers usually miss. Be practical, not theoretical. Feature: <DESCRIBE>  

Read More
AI

AI Prompt — Refactor Without Changing Behavior

- 16.01.26 - ErcanOPAK comment on AI Prompt — Refactor Without Changing Behavior

Prompt: Refactor this code to improve readability without changing behavior or performance. Explain each refactor briefly. Code: <PASTE CODE>  

Read More
Docker

Docker Images Suddenly Grow Huge

- 16.01.26 - ErcanOPAK comment on Docker Images Suddenly Grow Huge

Same app, bigger image. WhyUnoptimized layer ordering. TipPlace rarely changed steps first in Dockerfile.

Read More
Kubernetes

Kubernetes Services Work Internally but Fail Externally

- 16.01.26 - ErcanOPAK comment on Kubernetes Services Work Internally but Fail Externally

Pods communicate, users cannot. WhyService type mismatch (ClusterIP vs LoadBalancer). TipExplicitly define service exposure strategy.

Read More
Wordpress

WordPress Pages Randomly Lose Formatting

- 16.01.26 - ErcanOPAK comment on WordPress Pages Randomly Lose Formatting

Refresh fixes it sometimes. WhyConflicting cache layers (plugin + server). TipUse a single authoritative caching layer.

Read More
Wordpress

WordPress Admin Feels Slow but Frontend Is Fast

- 16.01.26 - ErcanOPAK comment on WordPress Admin Feels Slow but Frontend Is Fast

Visitors fine, editor painful. WhyToo many admin-side hooks and plugins. TipAudit plugins that affect admin only.

Read More
Photoshop

Photoshop Uses Too Much RAM Over Time

- 16.01.26 - ErcanOPAK comment on Photoshop Uses Too Much RAM Over Time

Even idle, memory keeps growing. WhySmart objects and history states accumulate. TipLimit history states and rasterize unused smart objects.

Read More
Photoshop

Photoshop Exports Correct Colors but Looks Wrong Online

- 16.01.26 - ErcanOPAK comment on Photoshop Exports Correct Colors but Looks Wrong Online

Image looks fine locally, off on web. WhyColor profile mismatch (CMYK vs sRGB). TipAlways convert to sRGB before exporting for web.

Read More
Visual Studio

Visual Studio Builds Succeed but Output Is Wrong

- 16.01.26 - ErcanOPAK comment on Visual Studio Builds Succeed but Output Is Wrong

No errors, wrong behavior. WhyMultiple startup projects or wrong build profile selected silently. TipAlways verify the active configuration and startup project before debugging.

Read More
C#

C# Collections Resize Too Often

- 15.01.26 - ErcanOPAK comment on C# Collections Resize Too Often

No errors, wasted cycles. WhyDefault capacity assumptions. TipInitialize collections with expected size. var list = new List<int>(capacity);  

Read More
C#

C# Exceptions Used for Control Flow

- 15.01.26 - ErcanOPAK comment on C# Exceptions Used for Control Flow

Works, but costs performance. WhyExceptions are expensive. TipUse conditionals for expected paths.

Read More
C#

C# Async Code Causes Thread Pool Pressure

- 15.01.26 - ErcanOPAK comment on C# Async Code Causes Thread Pool Pressure

Async everywhere, still bottlenecks. WhyCPU-bound work mixed with async I/O. TipIsolate CPU-heavy tasks.

Read More
SQL

SQL Queries Return Correct Data Too Slowly

- 15.01.26 - ErcanOPAK comment on SQL Queries Return Correct Data Too Slowly

Logic fine, execution heavy. WhyMissing covering indexes. TipInclude frequently selected columns.

Read More
SQL

SQL Performance Drops After Adding “Helpful” Indexes

- 15.01.26 - ErcanOPAK comment on SQL Performance Drops After Adding “Helpful” Indexes

Index count rises, speed drops. WhyWrite amplification. TipIndex only what queries actually use.

Read More
Asp.Net Core

.NET Core Memory Grows Without Leaks

- 15.01.26 - ErcanOPAK comment on .NET Core Memory Grows Without Leaks

GC runs, memory stays high. WhyPinned objects block compaction. TipAvoid pinning unless absolutely required.

Read More
Asp.Net Core

ASP.NET Core APIs Return Inconsistent Results

- 15.01.26 - ErcanOPAK comment on ASP.NET Core APIs Return Inconsistent Results

Same request, different responses. WhyMutable singleton services. TipKeep singletons stateless.

Read More
Git

Git Conflicts Repeat in the Same Areas

- 15.01.26 - ErcanOPAK comment on Git Conflicts Repeat in the Same Areas

Same files, same pain. WhyUnclear ownership boundaries. TipDefine ownership per directory.

Read More
Git

Git Repositories Become Hard to Clone

- 15.01.26 - ErcanOPAK comment on Git Repositories Become Hard to Clone

Clone times increase. WhyLarge binary history. TipMigrate binaries to Git LFS early.

Read More
Ajax / JavaScript

Ajax Calls Succeed but UI Feels Delayed

- 15.01.26 - ErcanOPAK comment on Ajax Calls Succeed but UI Feels Delayed

Data arrives, UI lags. WhyDOM updates are too frequent. TipBatch DOM updates after Ajax responses.

Read More
JavaScript

JavaScript Functions Accidentally Reallocate Memory

- 15.01.26 - ErcanOPAK comment on JavaScript Functions Accidentally Reallocate Memory

Same logic, rising memory. WhyInline object creation inside loops. TipMove static objects outside loops. const config = {}; for (…) { use(config); }  

Read More
HTML

HTML Pages Load Slower Due to Metadata

- 15.01.26 - ErcanOPAK comment on HTML Pages Load Slower Due to Metadata

Invisible but costly. WhyExcessive meta and preload tags. TipOnly preload critical assets.

Read More
CSS

CSS Flex Layouts Break with Dynamic Content

- 15.01.26 - ErcanOPAK comment on CSS Flex Layouts Break with Dynamic Content

Static demos work, real data fails. WhyFlex items grow beyond assumptions. TipUse min-width: 0 on flex children. .flex-item { min-width: 0; }  

Read More
Windows

Windows 11 Apps Start Slower After Updates

- 15.01.26 - ErcanOPAK comment on Windows 11 Apps Start Slower After Updates

Not broken, just delayed. WhyBackground app permissions reset. TipReview background permissions post-update.

Read More
Windows

Windows 11 Network Feels Slower After Sleep

- 15.01.26 - ErcanOPAK comment on Windows 11 Network Feels Slower After Sleep

Wi-Fi connects, speed suffers. WhyPower-saving resets network adapters. TipDisable aggressive power management on adapters.

Read More
AI

AI Prompt — Personal Decision Repair

- 15.01.26 - ErcanOPAK comment on AI Prompt — Personal Decision Repair

Prompt: Help me repair a past decision. Focus on: – What can still be improved – What to stop worrying about – Practical next steps Context: <DESCRIBE>  

Read More
AI

AI Prompt — Identify Hidden Technical Debt

- 15.01.26 - ErcanOPAK comment on AI Prompt — Identify Hidden Technical Debt

Prompt: Analyze this code and identify: – Hidden technical debt – Long-term risks – Preventive improvements Code: <PASTE CODE>  

Read More
Page 36 of 69
« Previous 1 … 31 32 33 34 35 36 37 38 39 40 41 … 69 Next »

Posts navigation

Older posts
Newer posts
April 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Mar    

Most Viewed Posts

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

Recent Posts

  • C#: Use Init-Only Setters for Immutable Objects After Construction
  • C#: Use Expression-Bodied Members for Concise Single-Line Methods
  • C#: Enable Nullable Reference Types to Eliminate Null Reference Exceptions
  • C#: Use Record Types for Immutable Data Objects
  • SQL: Use CTEs for Readable Complex Queries
  • SQL: Use Window Functions for Advanced Analytical Queries
  • .NET Core: Use Background Services for Long-Running Tasks
  • .NET Core: Use Minimal APIs for Lightweight HTTP Services
  • Git: Use Cherry-Pick to Apply Specific Commits Across Branches
  • Git: Use Interactive Rebase to Clean Up Commit History Before Merge

Most Viewed Posts

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

Recent Posts

  • C#: Use Init-Only Setters for Immutable Objects After Construction
  • C#: Use Expression-Bodied Members for Concise Single-Line Methods
  • C#: Enable Nullable Reference Types to Eliminate Null Reference Exceptions
  • C#: Use Record Types for Immutable Data Objects
  • SQL: Use CTEs for Readable Complex Queries

Social

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