Skip to content

Finchett.com

A brain dump

  • Home
  • Blog
  • About
  • Kubernetes
  • SQL Server
  • Contact
  • Newsletter
  • Finchett.com Privacy Policy

Category Development

  • Home
  • Archive by category "Development"
2 July 2024

Honouring .gitignore settings

By Stephen in Development Tag git

Overview Earlier today, I added a great feature to my builds whereby I create a new BuildVersion.json file containing the latest commit and the date and time of the build.…

Read More

29 May 2024

Faker.Net: Data Generation for Developers

By Stephen in Development Tag fake, testing

Introduction Data plays a pivotal role in the applications we build. From testing applications to populating databases, the need for realistic, randomised data is incessant. Enter Faker.Net, a powerful library…

Read More

21 May 2024

Exploring MiniExcel: A Lightweight .NET Library for Excel Operations

By Stephen in Development Tag c#, export, reporting

Overview For data handling and reporting, Excel remains one of the most widely used tools. From simple data logging to complex financial modelling, Excel's flexibility and functionality make it indispensable.…

Read More

9 March 2024

File Path Size Does Matter

By Stephen in Development

Introduction Whilst building one of my side projects, I came across a problem in Visual Studio when it builds. The problem was 'GenerateStaticWebAsssetsPropsFile task failed unexpectedly'. I spent a long…

Read More

8 February 2024

How to Install and Use BareTail for Real-Time Log File Monitoring

By Stephen in Development Tag baretail, logging

Introducing BareTail Keeping a close eye on log files is a crucial aspect of system administration, software development, and debugging. This is where a tool like BareTail comes in handy,…

Read More

24 January 2024

Enhancing Kubernetes Experience with Kubecolor

By Stephen in Development Tag kubecolor, kubectl

Introduction Working with Kubernetes command-line tools can sometimes be challenging, especially when sifting through extensive output data. This is where 'kubecolor' comes into the picture, a tool designed to add…

Read More

21 January 2024

SQL Server Object Explorer Microsoft.Data.SqlClient.TdsParser exception

By Stephen in Development

Introduction Over the last month or so, I have used an Apple MacBook Pro M3 Max as my daily driver. As I develop using Visual Studio rather than Code, I…

Read More

17 January 2024

Running SQL Statements

By Stephen in Development

Introduction Earlier today, I wanted to see whether anyone was updating the statistics on one of my databases. Fortunately, there are several was to look for running SQL statements, one…

Read More

13 January 2024

Exploring Playwright’s Trace Viewer

By Stephen in Development Tag playwright, testing

Introduction One of Playwright's most useful features is its Trace Viewer. This blog post explores what Playwright’s Trace Viewer is, how it can be used, and how it can help…

Read More

13 January 2024

The foreach Loop Best Practices and Common Pitfalls

By Stephen in Development Tag c#, foreach

Introduction The foreach loop in .NET is a powerful and commonly used construct that simplifies iterating over collections. While its simplicity and readability are undeniable, there are nuances and potential…

Read More

Posts pagination

1 2 … 26

Search

Table Of Contents
  1. Introduction
  2. Understanding the Foreach Loop
    • Key Benefits
  3. Best Practices in Using Foreach
    • Immutable Iteration
    • Use with Enumerable Types
    • Efficient for Large Collections
  4. What it doesn't do
  5. Common Pitfalls and How to Avoid Them
    • Modifying the Collection
    • Understanding Enumeration State in Foreach
    • Closure Traps
    • Performance Considerations of Foreach
  6. Conclusion

Recent Posts

  • Running Proxmox on a Raspberry Pi
  • Honouring .gitignore settings
  • Faker.Net: Data Generation for Developers
  • Exploring MiniExcel: A Lightweight .NET Library for Excel Operations
  • File Path Size Does Matter

apis (4) async (8) c# (103) devops (4) dotnet (5) esp32 (11) git (11) hardware (6) joins (6) kubectl (4) kubernetes (13) logging (4) nanoframework (6) network (8) NFS shares (5) nunit (8) patterns (34) performance (7) pi (8) playwright (7) plugins (8) proxmox (13) serilog (4) setup (16) sql (46) testing (9) tools (6) tslint (4) typescript (23) unit-testing (9) webapi (4)

Archives

Get the Newsletter

Categories

  • Development
  • Infrastructure
  • Other
  • Plugins
  • Raspberry Pi
  • wordpress

Recent Posts

  • Running Proxmox on a Raspberry Pi
  • Honouring .gitignore settings
  • Faker.Net: Data Generation for Developers
  • Exploring MiniExcel: A Lightweight .NET Library for Excel Operations
  • File Path Size Does Matter

Proudly powered by WordPress| Theme: SpicePress Dark by SpiceThemes

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Finchett.com
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.