martijn

Stories kicked by martijn

Exploring C# Boxing (dijksterhuis.org)

submitted by martijnmartijn(445) 3 years, 2 months ago

Boxing in C# has little to do with Saturday night television and quite a bit more however with that part-time job at the warehouse you had as a student. It is an important concept in C# that is related to how the compiler handles different kinds of variables in memory. Knowing how the compiler handles the various types allows you to avoid unexpected side effects in your code. This article explains what boxing is, how it works and how it can negatively effect your code if you don’t pay attention to it. read more...

2 comments |category: |Views: 450

tags: another

10 C# Shorthands that improve productivity(dijksterhuis.org)

submitted by martijnmartijn(445) 3 years, 2 months ago

One of the best things about C# is that as the language and libraries expand thought is put into keeping things readable. Below I have listed 10 shorthands that you can use to make your code tighter and less wordy. No doubt you know one or more already — but do you currently use all ten of them ? read more...

add a comment |category: |Views: 1357

tags: another

C# Coding Guidelines that improve your code (dijksterhuis.org)

submitted by martijnmartijn(445) 3 years, 2 months ago

I am inspired to better myself after reading Dennis Doomen’s freshly released coding guidelines for C# 3.0 . He provides a very nice PDF document that puts the dot to many common C# coding “confusions”. It addresses how to consistently name your variables, namespaces, classes and assemblies. He specifies when to declare a variable as static, as readonly and when to seal a class among others. read more...

add a comment |category: |Views: 40

tags: another

Advanced Regular Expressions in C# (dijksterhuis.org)

submitted by martijnmartijn(445) 3 years, 2 months ago

In this third and for now last post on using regular expressions we look at some advanced topics. When your expressions become more complicated they also become harder to understand so documenting them can help. And isn’t standard string replacement a little bit too basic? We also look at how speeding things up can improve your code’s efficiency. read more...

add a comment |category: |Views: 34

tags: another

Regular Expressions in C# - Practical Usage (dijksterhuis.org)

submitted by martijnmartijn(445) 3 years, 2 months ago

This post touches on four major regular expression subjects: 1. String Comparison - does a string contain a particular sub-string? 2. Splitting a string into segments - we will take an IPv4 address and retrieve its dotted components 3. Replacement - modifying an input string 4. Stricter input validation - how to harden your expressions. read more...

add a comment |category: |Views: 495

tags: another