It is important to have coding standards for the software you write because it makes it easier for other programmers and yourself to read the code. I write most of my code with C#. The coding standards for C# can be found here.
I just solved a problem with Windows 10 network access. I keep getting that I could not access the network (error 0x80004005). How did I solve it? By chance I stumbled on this article. It suggest installing ‘SMB 1.0/CIFS File Sharing Support’ which cannot be found here: Control Panel -> Programs -> Programs an Features -> Turn Windows Features on or off. In the screen that appears you can install it. Also see the screenshot below for details.
Luckily this solved the problem. I wanted to share this with you and I hope this helps.
For the last few weeks I am thinking writing some blog posts about anti-patterns in software engineering but I did not get around to it. Then last Tuesday our software architect mentioned an anti-pattern called Lava flow. He said that lava flow means the constant search and implementation of developers for new solutions to a problem and not using and/or improving existing solutions. This is of course not Lava flow but Not-Invented-Here-syndrome. Maybe he meant Not-Invented-Here-syndrome. I do not know.
What is Lava flow? Lava flow is lava pouring out of a volcano. It runs down a hill and when it stops it becomes ugly and very hard. It cannot be removed any more. In software engineering it means that the code is a relic of earlier stage of a software design. Ancient code, usually dead code and forgotten design information, which nobody dares to touch. It has been solidified into the architecture. Almost immovable. New solutions are built upon it. Making it hard to remove.
Possible problems with Lava flows are:
- They are hard to analyze,
- They are hard to test,
- They are hard to maintain,
- They can have a negative influence on performance and resource usage.
What are a few the symptoms?
- There are a lot of TODO’s in the code,
- No documentation of the code,
- Lots of code that has been commented out without explanation,
- Important looking methods or classes,
- Complex methods or classes,
- Long methods or classes.
The benefit of Read Uncommitted is that it offers maximum concurrency; transactions don’t have to wait or be blocked because no shared locks or exclusive locks are given. Under the Read Uncommitted isolation level, a second process can see data before the transaction that changes the data is complete. This is called a dirty read. Another possible con is the lost update: a change made by a first process is changed by a second one.
This morning I was reading an article about HTML 5 and file drag and drop. In this article a site was mentioned that lists the supported features of the major browsers. This site is http://caniuse.com/. I didn’t know this site existed eventhough I have worked with web technologies for years now. Well, you are never too old to learn.
Yesterday I put Actucal on Codeplex. Actucal is an calculation model tool and engine. It allows you to define a insurance model and have that model calculate the parameters of the insurance, such as the premium.
Web projects in Visual Studio 2010 have the ability to define web.config transformations. That way a developer can create web.config files for each solution configuration based on a base web.config. Sadly this functionality is only available for web.config files. Other configuration files, like the aap.config, are not supported. So it seems anyway. The following links show how to make it work for every config file.
I hope this information will help you with your projects. Happy programming.
On Channel 9 you can find the videofeeds for DevDay 2010 Netherlands.