Few months back, Microsoft acquired GitHub and we expected to see some interesting collaboration following the acquisition. It was not a long wait and we saw a number of announcements made by Microsoft recently which includes its collaboration with GitHub…. Read More ›
C#
SonarQube – Issues with Cyclomatic Complexity Metrics
We have been using SonarQube for inspecting code quality of our applications for a long time now. We have integrated SonarQube with our CI/CD Pipeline and configured Quality Gates — hence with every code check in we perform a static code analysis of the changes. This provides developers an early feedback of their code changes. If the code changes does not meet quality standards, the code check-in is rejected.
Microsoft Build 2018 Day 1 – Top Announcements for .NET Developers
Microsoft Build is one of the biggest developer conference and folks from the technical community all over the globe gather at Seattle, WA to witness the newest technology advancements and get a deeper insight into Microsoft vision. If you are a .NET Developer, here are the biggest announcements from Day 1 of Microsoft Build 2018.
SonarQube – Setting up Quality Gates in your application
Quality Gates are the best way to ensure that standards are met and regulated across all the projects in your organization.Quality Gates can be defined as a set of threshold measures set on your project like Code Coverage, Technical Debt Measure, Number of Blocker/Critical issues, Security Rating/ Unit Test Pass Rate and more.
Keeping your Technical Debt in check with NDepend
During the past month, I have been blogging about SonarQube – an open source static code analysis tool. We recently started using SonarQube in our projects to ensure high code quality, automate our code review process and also manage our technical debt. In this article I will provide an overview on another very popular and powerful Static Code Analysis tool – NDepend.
SonarQube – Rejecting Code Check-in when Quality Gates are not met
SonarQube has a collection of rules to analyze your source code at compile time to identify potential vulnerabilities, bugs, anti-patterns, refactoring and poor coding practices. The earlier we identify issues, the easier and cheaper it is to address them. By leveraging the power of Static Code Analysis, developers can get an early feedback for their code changes.
SonarQube 6.5 – Code Coverage Result is not displayed
If you are trying to install SonarQube in your project or planning to upgrade it to a newer version, you might have bumped into multiple issues during the setup process. In this article, I will show you how you can display the Code Coverage Results in SonarQube and troubleshoot any issues related with the same.
SonarQube SQL Error – String or binary data would be truncated
The SonarQube Scanner for MSBuild – Begin Analysis task contacts the SonarQube server to retrieve the quality profile, and dynamically produces rulesets to be applied during the static analysis. If there are issues in the process, I would recommend to go the Administration section in your SonarQube server, and navigate to the background Tasks tab to find the error log.
SonarQube Error – End of Central Directory record could not be found
I have my SonarQube server up and running. I added a SonarQube Service endpoint and associated it while configuring the SonarQube Begin analysis task.
However when I trigger the build, it failed throwing the below error – ‘Unhandled Exception: System.IO.InvalidDataException: End of Central Directory record could not be found.’
Menace of Trim function usage in Entity Framework
When a column is wrapped around in a function call in the WHERE clause, the query processing speed can be extremely low because of the potential resultant scan operation. We should avoid using functions on columns in predicate. Especially on large tables, it can create a noticeable performance overhead by preventing the Query Optimizer to use available indexes.
SonarQube 6.5 – Issues while configuring SQL Server Database
SonarQube is a great tool for identifying anti-patterns in your code base and help you improve Code Quality. However while installing the tool, you might come across a number of issues. In this article, I have explained issues which I encountered while configuring my SQL Server database instance and the resolution.
Attach to Process in Visual Studio 2017 not working
I started seeing a weird issue while working in Visual Studio 2017 few days back. I was not able to attach to running processes with the Visual Studio debugger. The IDE used to freeze/hung each time I tried to do so. The ‘Attach to Process’ window used to come up but it was blank and all I saw was the spinner – eventually the screen became unresponsive after some time.
Dynamic Toggle Functionality – Knockout and JavaScript
Knockout is a powerful Javascript library which provides a simple two-way data binding mechanism between your data model and UI- which means that any changes to data model is automatically reflected in the UI and similarly any changes to the UI are automatically reflected in the data model.
Microsoft Build 2017 Recap – Day 1 announcements and highlights
The Day 1 of the Microsoft annual developer Build Conference started at the Washington State Conference Center in Seattle. There were over 5000 attendees and the place looked all jam packed by 7AM, as people started to come in for the Keynote. In this blog, I will recap the Top 12 announcements during the Day 1 of the Build Conference.
Microsoft AI Immersion Workshop 2017 Recap
One of the events which I was lot excited to attend was the pre-Build event – ‘Microsoft AI Immersion Workshop’. The event promised to be a great opportunity for developers to learn about building intelligent applications using Microsoft and open source technologies. Now that the event is over, I must say that it did live up to its expectation.
Issues with Lightweight Solution Load in Visual Studio 2017
One of the coolest feature in Visual Studio 2017 is the ‘Lightweight Solution Load’ which greatly reduces the Visual Studio startup time and the overall memory consumption.
However I have bumped into multiple issues working with Lightweight Solution Load feature turned ON in VS2017. In this article, I will list down few of my observations, so that you are aware of these limitations.
Upgrading from Visual Studio 2015 to Visual Studio 2017
Visual Studio 2017 comes with a lot of new capabilities and productivity enhancements. This was good enough reason to start moving from VS 2015 to VS 2017, and leveraging all the new features. In this blog post, I will mention about couple of issues which I bumped into during the migration process and the action items I took to resolve those.
Redgate Data Tools in Visual Studio 2017
Visual Studio 2017 now includes Redgate Tools to increase productivity while doing database development work. I use the VS Enterprise edition at work, so am pretty excited to leverage the productivity benefits of these tools, within Visual Studio IDE itself.
Find all References in Visual Studio 2017
The Find All References feature has been upgraded in Visual Studio 2017 and looks much better now – both visually and from a functionality perspective.
Fixing Build Errors with Database Unit Test Projects in Visual Studio 2017
Database Unit Test project seems to not build in Visual Studio 2017. In this article, I will show how to handle this error, and get your database unit tests back to a running green state.
Automatic Performance monitoring of Extensions in Visual Studio 2017
Are you tired of the sluggish performance, frequent IDE crashes, high memory consumption and slow solution load time of Visual Studio IDE? Read this article to find out how to overcome these pain points with Visual Studio 2017.
Lightweight Solution Load in Visual Studio 2017
When you have a large solution comprising of multiple projects, you must have experienced a delay while loading the solution for the first time. One of the coolest feature in Visual Studio 2017 is the ‘Lightweight Solution Load’ which greatly reduces the Visual Studio startup time and the overall memory consumption. In this article, we will understand all the details around this new feature.
Celebrating 1 year of DotNetVibes
A year back on this very day, I decided to start my own blog and that’s how dotnetvibes.com came into existence. Today on 1st January, 2017 – exactly a year later – I must admit that it has been an eventful journey with lot of excitement, learning, challenges and acquaintances.
Windows Workflow is now an individual component in VS 2017 RC
With the initial release of Visual Studio 2017 RC, there were multiple issues reported related to Windows Workflow Foundation in the VS Developer Community site . The latest update to VS 2017 RC however has a great news for Workflow Foundation users.
New Installation Experience with Visual Studio 2017 RC
In the recently concluded Microsoft Connect 2016 Conference, Microsoft made a number of big announcements. One of them was the availability of the next version of Visual Studio -Visual Studio 2017 Release Candidate. In this article, I will be explaining the new installation experience with Visual Studio 2017.
Atlanta Code Camp 2016
On 15th October, 2016 I attended the Atlanta Code Camp held at the Kennesaw State University, Marietta, GA. I was quite humbled to get an opportunity to be a speaker this year and presented in the Database Development category on ‘Making developers lives easier with SQL Server 2016’.
{DEV = DATA} DAY BIRMINGHAM 2016
Working as a .NET Developer in the Southern City of Birmingham, I feel the last 6 weeks has been pretty awesome for the Birmingham Technology community. There were 3 excellent full day tech events – starting with Sloss Tech held by TechBirmingham, dotNetConf and then devdataDay held by Steel City SQL Group and BHM .NET Meetup.
DOTNETCONF 2016, BIRMINGHAM – DISCOVERING THE NEW .NET WORLD
Birmingham is surely growing fast as a technology hub and the overwhelming response to the dotNetConf event was a testimony to that. On 4th August, 2016 – the Birmingham .NET Meetup group organized a full day local extension event to the virtual dotNetConf conference, which Microsoft holds annually, to promote and educate developers about the .NET framework.
Troubleshooting random failures with Coded UI Tests
Coded UI Automated Tests run fine locally but randomly fails when run on the server. The functionality which you are trying to verify works fine, but the tests does not consistently pass on the test agents. In this article, we will look at a simple way by which we can analyze/debug these randomly failing tests and get more understanding on how to resolve it.
10 Best Practices for Code Commenting
Comments play an integral role in determining an application’s readability.In this article, I will be sharing few of the best practices of writing code comments.
Code Analysis Improvements in Visual Studio 2015 Update 1
Static Code Analysis has been present in Visual Studio IDE since the earlier versions, and has been evolving with each release. In this article, we will look at few usability issues of the Code Analysis in Visual Studio 2013 and how it… Read More ›
Improve Your Code Quality using Live Code Analyzers
The importance of Code Quality has grown multi fold times over the past few years. Gone are the days, when meeting deadlines used to be the sole measure of success. In today’s world, just delivering code is not enough –… Read More ›
Enhance Developer Productivity with CodeLens Code Health Indicator
In this blog, we will look at a very cool Visual Studio 2015 extension called ‘CodeLens Code Health Indicator’ and its features. This extension shows the current value of the Maintainability Index for our code and provides us insight into… Read More ›
Increase your Code Review efficiency with Visual Studio Code Metrics
In this blog, we will try to understand the importance of code reviews, classify types of design flaws and identify the code smells using Visual Studio Code Metrics. Why is Code Review important? In a development life cycle, Code Reviews… Read More ›
Manage your Technical Debt with Visual Studio 2015 and SonarQube
Are you worried about ‘Technical Debt’ in your project? In this blog, we will try to understand what Technical Debt is, what causes it, how to measure it and ultimately bring it down. What is Technical Debt? Everybody wants to write… Read More ›
Increase your Coding Speed using Code Snippets in Visual Studio
Code Snippets are one of the coolest features of Visual Studio, which can help us to increase our coding speed multi-fold times. Good Developers generally use shortcuts and tricks to type less and generate more code in less time. Code… Read More ›
Performance Analysis using PerfTips in Visual Studio 2015
Troubleshooting Performance issues has always been a topic of discussion. As and when a performance problem is highlighted, developers tend to run a profiling tool, at their disposal, to diagnose the issue. Not having access or license for a profiling… Read More ›
Debugging Lambda Expression in Visual Studio 2015
One of my favorite features in Visual Studio 2015 is the support for debugging lambda expressions. This is a big productivity improvement for developers who spend a lot of time writing LINQ queries. Till Visual Studio 2013, if we tried… Read More ›
Deferred Execution vs Immediate Execution in LINQ
LINQ provides two different behaviors of Query Execution – Deferred Execution Immediate Execution Deferred/Lazy Operators Immediate/Greedy Operators Query is not executed at the point of its declaration. Query is executed at the point of its declaration. Projection Operator – Select,… Read More ›
Continuous Integration using SSDT in Visual Studio
What do you mean by Continuous Integration? Continuous Integration is the practice of frequently integrating one’s code changes with the existing code repository. The primary goal of CI is to provide quick feedback, so that if a defect is introduced,… Read More ›