I found some websites that make it easier to learn about Blazor and Entity Framework Core. I would like to share them you (and me ;^)). Here they are. I hope you like them.
Category: Uncategorized
C# coding standards
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.
Solved cannot access network shares Windows 10
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.
The Lava flow anti-pattern
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.
Note to myself: No shared locks and exclusive locks are given in MS Sql Server when the isolation level is Read Uncommitted
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.
Note to myself: supported features in browsers website
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.
Actucal
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.
Using web.config Transformation Syntax for app.config
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.
- http://vishaljoshi.blogspot.com/2010/05/applying-xdt-magic-to-appconfig.html,
- http://msdn.microsoft.com/en-us/library/dd465326(VS.100).aspx,
- http://stackoverflow.com/questions/2905151/msbuild-script-and-vs2010-publish-apply-web-config-transform,
- http://geekswithblogs.net/EltonStoneman/archive/2010/08/20/using-msbuild-4.0-web.config-transformation-to-generate-any-config-file.aspx.
I hope this information will help you with your projects. Happy programming.
New site, using mojoportal
Because I want to do more with my site than blogging alone, I decide top switch from BlogEngine to mojoPortal. MojoPortal has many possibilities. So I think mojoPortal will be fine for me.
MEF webcasts on Channel 9
Managed Extensibility Framework (MEF) is an interesting technology. On Channel 9 you can find webcasts about MEF here.