In today’s section, we will see, how to setup VM with Visual Studio 2015 image in Azure(https://azure.microsoft.com/en-us/). Azure provides no of options while setting up the VM. You just need to select the ideal one which suits you as shown below in the screen shot.
In Today’s discussion, i just like to share one quick solution for the below shown scenario.
Basically, what happened, I was merging couple of applications under one solution and then, while launching the app from IIS, I faced this issue. When, i delved further and inspected the issue, I found that Enable-Browser-Link as shown below was enabled. What this link will do, this will automatically compile your source code and will pick the stuffs and refresh the same in browser. This feature is suggested, if you are running your app from IIS Express. You can find more about this feature here @ http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
Hence, if you open the highlighted link, by default it will be enabled.
This setting was causing the issue. Hence, in order to fix the same. Just Uncheck this link, save and refresh, app will work as Expected.
In Today’s discussion, we will see how to customize the look and feel of your visual studio editor for good readability and visual experience. First you need to install Visual Studio 2013 Color Theme Editor from Tools –> Extension and Updates.
As you can see, below in the screen shot, i have already installed the same.
Once, the same get installed, it will ask you to restart Visual Studio. After restarting, it will provide you following options as shown below in the screen shot.
As you can see that, currently my theme is set to Solarized Dark. You can change theme from here as well. Or you can go to Tools–>Options as shown below in the screen shot and set from there.
This way you can give a change to your Visual Studio Look and Feel.Thanks for joining me
In Build 2015, Scott Hanselman announced one really cool tool Visual Studio Code. I thoroughly enjoyed his presentation. So, as soon as he done with the presentation, i just downloaded the same from http://bit.ly/visual-studio-code and started testing the same. Best thing is that it installed in a minute literally in a minute. So, 1st reaction is fast and amazingly fast. For people like me who love coding and can’t manage to have full suite VS installed on all the machines, Visual Studio Code is a boon for them.
It gives me all the required intellisense what is offered in VS, plus this is platform independent. So, doesn’t matter whether i am running on Windows, MAC or LINUX. I can open the file in Code, get the real time feel of VS; do the changes and bang. Let’s jump to quick demo.
Below is the snippet of my movie review app where in i have added my API with ease from VS Code.
Here, you can see we also get same intellisense support as we get from VS.
Also, if you want to quickly jump between the files and do some changes, you can do the same with CTRL+O option as shown below.
While writing test case also. we get the similar intellisense support. Also, we can go ahead and debug our app and we get call stack, watch and variables as well. For debugging little environment settings needs to be done in project.json file. This is well drafted in VS Code documentation. Thanks for Joining me.
Today, i have started working on one of my app framework projects where in i’m brushing up all required skills to write a good application framework. Basically, application framework i would say one time investment and long term return means if you write good framework initially, then you can smartly focus on business requirements at the later part. So, basically any application framework involves below listed bullet points like
1) General Naming conventions
2) Data Access Design
3) DI Technique say Ninject, Structure Map …etc
4) Error Handling and Logging Events
5) Security Infrastructure
6) UI Design
7) Client/Server Side Validations
8) many more can be listed, but these are basics.
But, the point is for writing these, you need to have good implementation knowledge of below listed points.
SOLID Principles – These principles have helped me a ton. They aren’t just rules to be followed blindly, but I’ve found that reasoning behind them and trying to make code clean, easy to understand, testable in the long run.
Design Patterns – Certain types of problems always come in software development. For these scenarios, we have design patterns. Getting hold on design patterns is something that only comes with practice. You won’t be able to memorize and recognize even the core set of patterns immediately, but over time you will recognize the same easily.
Test Driven Development – Make it habit or in your DNA. It not only helps to test the code, it helps me design my code. That’s a big advantage that a lot of people overlook. It also gives me confidence that the class I’m creating does exactly what it is supposed to do, and nothing more. TDD also makes sure that if you are adding any new feature in your application that is not going to break the existing ones, if all tests ran expectedly.
Resharper – Resharper is essential for doing C# development in my opinion. Out of the box, it will suggest lots of little things that can help improve your code. It helped me learn LINQ by offering to convert tedious long code into elegant LINQ expressions, and it finally convinced me that ‘var’ isn’t always evil.
Lambda expressions – These are essential when working with C# . They’re a bit hard to grasp at first, but they open up very interesting re-use possibilities, and lots of APIs leverage them heavily.
Generics – This is an older C# feature, but still this is one of the most important piece to learn.It opens up new avenues for creating clean, extensible, and reusable classes.
StructureMap – One of the biggest change at the moment. This totally changed how one code. Now when I realize a class I’m working on is going to need some other service to fullfill its responsibilities, I simply create a new service interface and add it to my class’s constructor. This makes my development much easier.
LINQ – Make this habit as well. I am still learning LINQ. Most of the times for complex queries i make use of LINQPAD or refer msdn Linq samples.
Moq – Mocking frameworks allow you to configure stubs or fakes that you can substitute for dependencies while testing your classes. Moq is one of my favorites for its fluent, lambda-based syntax. off-course this piece also i always try to make use of as much as possible.
So, these are the few things in my opinion are must have things for any mature developer.