Posts

Migrate from SVN to Git

If you are in process of migrating from SVN to Git you are not alone and many people have already done it time and again. There are many good articles to guide you on that matter, the purpose of this article is to tell you my experience in the process. Migration to git from SVN comprises of few steps:- 1)Getting contributors:-                                     First step is to get the list of contributors from SVN, to do so right click to open git bash on source folder and  execute command below:- svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt This may take a while so don't be disheartened git is doing its job and once done will output the file in command above. If you get error saying SVN is not a known command you may not have SVN command line utility so you would like to install the same, if it

Build/Deployment Automation

Image
Introduction:- •         Many of the problems encountered in software application deployments can be traced to reliance on manual processes to build, test, and package release targets. •         Modern software development practices such as continuous integration (CI) focus on executing integration builds early and often, rather than waiting until the software product is almost ready to deliver. Architecture:- Benefits Of CI:- •         Increased productivity •         Enables shorter feedback cycle when changes are made •         Code is kept in a “releasable” state •         Code gets back into the hands of testers quickly •         Frees the team to do more interesting and valuable work •         Improves morale, making it easier to retain good developers •         Enables more frequent releases with new features •         Improved quality •         Makes it easier to find and remove defects because frequent integration and testing identifies bugs as

ViewState vs Session vs Cache

HTTP is a stateless protocol. This implies that every time a new request is sent from the client to the server the state information of the previous request is lost When it comes to persisting data across PostBack(round trip to application server) which is basis of web application, there are various options available and they all have there own pro/con. Lets have a detailed look at each of them. 1)ViewState:- ViewState is the method that web application uses to preserve page and control values between round trips. When the HTML markup for the page is rendered, the current state of the page and values that must be retained during PostBack are serialized into base64-encoded strings. Since ViewState is serialised and stored on the page back to client, payload increases as ViewState increases , which means if you have more data in ViewState size of page will be more and it will take more time to reach and load on client side.Hence size of page is directly proportional to ViewState

Python vs Rest

By now you must have heard about Python which is being used everywhere right from Web/Windows development to Big Data and AI/ML. There are so many open source libraries already made using Python, and that is the reason you cannot ignore power and influence of Python. Comparing all languages at once would be a difficult task, so below is an attempt to compare lines of code needed to get the same job done in C# and Python, even though below is comparison of C# and Python, same stands true for most of OOP languages like Java,F# and etc. Python is cross platform language and it already has so many libraries available. Python is easy to read/understand and requires less lines of code to get similar job done. Python may not be better in terms of performance but its easy to learn and more expressive. Consider following side by side comparison of what we have to do in C# compared to Python. Feature Python C# Get Data From DB import sqlite3 conne

Characteristics of a leader

When it comes to people management many find it hard,  because there are different set of characteristics possessed by your team member or people you are dealing with. When you are dealing with people you can either be a leader or a manager, though both look the same there is big difference in principle of operation. Lets dig deeper and try to understand difference in character when you are a manager and when you are a leader. Manager Leader Is present every where. Participates where need be. His duty is to get things done His duty is to get things done in right manner Treats team members as set of employee. Treats team members as partner in mission Has a goal Has a mission Assigns individual milestone and keeps track of it. Sets team milestone and leads by example. Takes all the credit for success. Gives credit to the team where it is due. Blames the team for failure. Accepts as his own and tries t