The “with” keyword is a crucial part of a functional programmer’s toolbox, but is sadly lacking in C#. In this blog post, I document the development of a template that will automatically generate a With() method for C# classes.
Category: <span>Programming</span>
Not my invention, and not that new, but I’m surprised at how many developers haven’t come across these.
Read about the disappearing Heisenbug, the reliable Bohrbug, the complex Mandelbug, the frustrating Schrödinbug, the disastrous Hindenbug and the elusive Higgs-bugson!
Forget all you ever learnt about enterprise design, I’ll reveal the truth, and it’s not pleasant (but quite funny!)
I just came across an, erm interesting issue when exporting some data to a CSV file. When I tried to open the file in Excel, I got the rather helpful error message “The file format and extension of ‘filename.csv’ don’t match. The file could be corrupted or unsafe. Unless you trust its source, don’t open it. Do you want to open it anyway?” If you click the Yes button, then you get the even more helpful error message “Excel has detected that ‘filename.csv’ is a SYLK file, but cannot load it. Either the file has errors or it is not a SYLK file format. Click OK to try to open the file in a different format.” At this point, you go and look to see if there are any jobs going on the cashiers at Tesco! Turns out that the fix is very simple. If you export an ID field…
Leave a Comment