Monday, November 4, 2024

Enterprise Architectural Patterns

 An architectural pattern is a common standard for an architecture and solution to a problem. Unlike Design Patterns, an architectural pattern has a broader scope and can address big problems.  The architectural pattern address various issues of software engineering, such as computer hardware performance limitations, high availability and minimizing business risk. 

Software Patterns & Practices

The article describes how to deal with Design patterns and practices while developing your application. This article is basically a pointer to all the design patterns associated with the series. Please bookmark this to get links updated for all other articles that are added to the series. Click on a link below to read a pattern. 

Introduction

Software patterns are there and widely followed in the industry for a long time. In Software engineering, a pattern is a generalized solution to a common problem, a software design or an architecture for a given problem. This is the widely used solution to a problem specific to an industry, a person or a goal. A Software pattern can never be identified as a silver bullet to a problem but rather it is widely accepted a solution to a problem. There could be always a notion of adjustment to a pattern to adjust the specific need of the project that is worked on by the developers. 

Patterns are essentially formalisms and naming of nice idioms of coding. It is a way to give experience to programmers. It is a nice way to know that both the developers are talking about the same thing while discussing a problem. 

Software patterns are first introduced in 1995 by "gang of four": Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. In this book, it is first discussed capabilities and pitfalls of Object oriented programming, and later on, it discusses the classic Design Patterns on OOPS. They introduced the first requirement of a software pattern while developing a piece of software in the industry. Better organizing a code is a lifelong learning experience for every developer and it is hard to follow when some functionality is needed to be implemented by a programmer. A software pattern just gives a sense of guidance to a developer while implementing a code or functionality for a problem. 

Wednesday, March 11, 2015

C# 6.0: Language features and its internals Part 2

As discussed in my last article on C# 6.0 features we have discussed some of the interesting features like : Auto property initialization, Expression bodied functions, Static class uses and string interpolation method. In this post, we will take the discussion ahead with more language features introduced with the new language.

The features will be covered with basic introduction to internals are :

5. Null Conditional operators
6. Exception filters
7. nameof operator
8. Dictionary initializers
9. await in try / finally.
10. Parameterless constructor for struct


Sunday, March 8, 2015

C# 6.0: Language features and its internals Part 1

C# have been one of the most evolving language in recent times. It was not more than a couple of years when some of the coolest features were introduced with C# 5.0 and today we have announced the next version of C#. In this post we will try to look deep into these features and try to see what exactly is coming in the new version. I would go deeper than just demonstrating the feature so that you are well acquainted on what exactly you would be getting from these features.

1. Auto Property Initializer
2. Expression bodied Function
3. Static Class Uses
4. String Interpolation

More in Part 2 of the post.

Sunday, November 9, 2014

.NET Book : Visual Studio 2013 Expert Development Cookbook

Friends, It gives me immense pleasure to tell you that my new book "Visual Studio 2013 and .NET 4.5 Expert Development Cookbook" has been released few days back. It is the continuation to my previous book "Visual Studio 2012 and .NET 4.5 Expert Development Cookbook" which has released last year. In this post, I will discuss some of the interesting parts of the book and help you understand what exactly you are expected to learn from this book. It has been tremendous effort for last 1 year which let me release this book for you. I hope this book will stand out to your expectation.

After tremendous success on my first book, presenting the next version of the book. Visual Studio 2013 enables you to develop and manage consumer-focused and business-oriented apps. It provides best-in-class tools that propel developers to create new apps or evolve existing ones. In conjunction, .NET 4.5 provides expansive capabilities for developers to work on all forms of apps and services, from client to mobile and from web to cloud, enabling them to focus solely on business logic rather than architecture.

This practical guide teaches you how to work with new changes in technology under the arena of .NET. It provides in-depth analysis and expert advice on various elements of .NET, applying them in code using detailed practical examples, and helping you understand the entire technology in easy, small steps. This book provides solutions to common development problems that you as a developer often face, thereby helping you to adapt the latest technologies as well as get grips on modern app development using .NET 4.5.


Visual Studio 2013 Expert Development Cookbook

What you will learn from this book

  • Get to grips with Visual Studio 2013 IDE and its various components utilizing its tools to debug your code better
  • Get to grips with Visual Studio 2013 IDE and its various components utilizing its tools to debug your code better
  • Understand the Windows Phone 8 development environment and gain practical experience on app development on the platform
  • Create service-oriented applications using WCF and study advanced use cases on implementing a RESTful service with WCF
  • Test your application inside Visual Studio 2013 IDE and advanced use case scenarios to handle testing issues
  • Effectively utilize the various components of Team Foundation Server for better management of code
  • Extend Visual Studio 2013 IDE to add your own custom changes enhancing your experience
  • Discover the advanced usage of cloud computing with Windows Azure and its various components

Tuesday, July 9, 2013

Advanced Usage of Grouping in CollectionView with ItemsPresenter

CollectionView is an object that we generally use while dealing with a collection in WPF. It is an object structure that supports a collection as well some of the inherent features which a user might always need while dealing with a collection. Some of the features like Sorting, Grouping, Filtering are automatically implemented in a CollectionView.  I have written one article on how to deal with CollectionView way back in Aug 2010 which explains almost everything you need to do while dealing with collection in WPF. But it does not give the entire story.

Controls that can show a Collection in WPF is somehow derived from ItemsPresenter. The ItemsPresenter has a property called ItemsSource which takes an object of ICollectionView, and hence it is one of the important interfaces considered so far.

There are some advanced scenarios where the general Grouping or sorting does not makes sense. Here in this article I am going to deal with such advanced scenarios which might be worth mentioning.

Monday, June 24, 2013

Windows Phone 7.5 and F# - A book in the market

Hi Friends,

I am excited to announce that one of my friend cum MVP (Lohith) has written a pretty nice book on Windows Phone 7.5 using F# recently. I have given an honor to read the book from PacktPub and wanted to write a review of the same today.

Monday, May 6, 2013

Want a copy of Visual Studio 2012 and .NET 4.5 Expert Cookbook for free in simple steps?


Visual Studio 2012 and .NET 4.5 Expert Development cookbook is your ready-made reference to all the problems we face while working with Visual Studio and .NET 4.5. It gives you explicit references to some of the interesting topics that as a developer you always wanted to master or want to collect and store securely so that it is available to you just the time when needed. It has been my honor to put up such important things into one book and make you understand development better. 

To give you some instances : 

  • Internals of .NET Memory Management and Garbage Collection Techniques.
  • Solution to 10 common mistakes made by developers while writing code
  • Securing code from reverse engineering using Obfuscation
  • Writing Multi-threaded application more quickly and easily.
  • Working with Performance boosters in ASP.NET Web Applications. 
  • HTML5 and CSS3 
  • Write enhanced application in MVVM model.
  • Building Applications using WinJS and XAML in Windows 8
  • Enable Push notification to update Tiles, Toast, Batch notifications of your Windows 8 Applications
  • And many more like this ... 
I am overwhelmed to receive great responses for my articles on "Internals of .NET"  on my blog but I wrote this book in such a way so that you can take most out of the under the hood items of Language and CLR and use those skills while writing or architecting your own application.  This is reference book only for developers and experts with more emphasis given on practicals rather than the theory.  To know more about the book you can go to the publisher site using this link . Moreover, I remember of putting up a draft about the book as well on my blog  which you can try for more knowledge.  


I want to win a free copy!

As you know I am very much active in the community and love to share my knowledge with the .NET community, it is my pleasure to announce that you can win a copy of this book for free. There are 3 copies of the book to be won from here. All you have to do is : 
  1. Leave a comment down below with the reason why you should be the lucky winner. Write on the topic "why you would like to win this book".
  2. Share this post on Facebook and Twitter with a mention to @abhi2434  (my twitter handle) so that I can have a count on them, the more is the count, the more will be your chances.
  3. Like us on Facebook  to get more updates on the book.
The best motivation wins and the winner will be notified through email. So be sure to leave any reference of your contact (like facebook url, twitter or anything you feel safe, so that we can contact you). 
Thats it ... Good Luck to you all !!!.
The Contest ends on 1st June 2013 ( 6 AM PST) and winners will be contacted and published within 3 days from that. 
So hurry up!! Don't miss the opportunity.
Visual Studio 2012 and .NET 4.5 Expert Development Cookbook

What else to win from the same contest? 

Well, as a matter of fact, we have decided to give away some additional things with the Book. Here is some of the additional gifts that we are going to provide to the winners. 
  1. One T-Shirt for every winner
  2. One USB Flash drive.
  3. One big poster with .NET architecture printed for reference.
  4. One Pen + Pad which suits your desktop.
  5. 1 free license to either .NET Reflector, SmartAssembly or ANTS Memory Profiler from 

So Hurry !!! Don't miss this opportunity. 

Who is this book for ? 

This book is aimed at Visual Studio 2012 and .Net developers who want to gain advanced understanding and sharpen their existing skill sets and adapt to new .NET technologies. Basic understanding of .NET and C# is assumed. The purpose of this book is to give under the hood expertise in .NET and help you to face common problems on latest technologies.
Visual Studio 2012 and .NET 4.5 Expert Development Cookbook  is a step-by-step tutorial providing Visual Studio 2012 and .Net developers with useful techniques to develop the latest .NET technologies using Visual Studio 2012.
This book covers all the essential areas of Visual Studio 2012 IDE and delves into step-by-step instructions that highlights various techniques to build, design, asynchronous better multithreaded applications using recent updates on .NET 4.5 and learn better ways to create secure ASP.NET web based applications in .NET 4.5 using JQuery and HTML5.

I can't wait and want to buy a copy now !

Well, thank you so much for your support. Below are the links that would help you buy this book.
You can also try Ebook version in PDF, Mobi, EPub formats.  Thank you. 

Sunday, April 21, 2013

.NET Book : Visual Studio 2012 and .NET 4.5 Expert Development Cookbook (Must Read)

Friends,

It is my great honor to tell you that my book has finally been released this week. If you have ever liked any of my blogs or internals, you would like this book for sure. There are lot of things to learn from the book and I can assure you that you wont be upset with this book if you buy it.

The "Visual Studio 2012 and .NET 4.5 Expert Development Cookbook" is a book that guides you through steps to ensure you enrich the best experience with the latest technology in the best amount of time possible. The book focusses to give you under the hood expertise in .NET technologies it tends to cover and adapts you the best to face common problems of these technologies. The book is divided in forms of recipes. Each of these recipes gives you clear insight of the problem and step by step process to solve the issue practically. It also addresses the advanced features associated with each of those recipes that gives you additional advantage on getting precise knowledge about the problem and its associated issues.

What you will learn from this book



  • Basic usage of Visual Studio 2012 IDE and its various components and better utilization of the tool while writing code
  • Understand memory management techniques to build better applications
  • Understand the .NET infrastructure with in-depth analysis of its internals
  • Architect solutions that leverage the full power of .NET language gems, understanding when to use what
  • Implement multithreaded / asynchronous applications using recent updates on .NET 4.5 and compare the past approaches
  • Create secure ASP.NET web based applications in .NET 4.5 with use of JQuery and HTML5 for rapid application development
  • Architect advanced .NET client applications using MVVM with WPF 4.5
  • Understand touch sensitive devices and leverage skills to develop multi-touch applications inside Windows 8

Sunday, February 17, 2013

A new book on Kinect by Abhijit Jana - A must read

Kinect is one of the revolutionary device that were introduced lately in Microsoft ecosystem. The use of Kinect devices has increased in great extend in recent times and people are using it more and more in their day to day life. The use of Kinect is not only limited only with the gaming world, but its use is now widely spread over commercial applications too. Microsoft has released the Kinect SDK that can interact with the hardware and program on them. It is a kind of Fun working with Kinect and also writing small applications for it.

Recently I have read a book on "Kinect for Windows SDK Programming Guide" by Abhijit Jana. It is a book with great details about Kinect SDK and the Hardware. I enjoyed reading this book and thought of sharing my experiences with you such that if you are new in Kinect and want to write code on it, you might find this review helpful.

Thursday, August 23, 2012

NotifyIcon with WPF applications

NotifyIcon is an utility form System.Windows.Forms which can be used by any application to invoke the default notification from the system tray. As per my latest requirement, I have to create an application that runs on system tray and occationally shows notification using the system tray default notifications. While working with it, I have wasted a considerable amount of time, and thought it would be worth mentioning the same in a blog.

Sunday, March 18, 2012

Microsoft TechEd 2012 on the Go.. Are you attending?

Well,  Microsoft is going Big with their event TechEd 2012 which will be held just in 2 days from now. Everyone is excited to visit Bangaluru for this awesome event and learn lot of technology. I am going to visit Bangalore soon. If you are going, just text me at contact@abhisheksur.com and come and say hi to me during the event.

Visit the link below to know more about the event
Microsoft TechEd India 2012 -> Go Big


Now if you cannot join us in Bangaluru for this event, you can still see the event live. Register yourself immediately.


Catch TechEd Online for FREE!!!

Register for TechEd Live!
Click to Read Details!


I hope to see you all around.

Monday, February 27, 2012

Inter-Process Communication using MemoryMappingFile

In an operating system, a Memory Mapping file are virtual storage place which has direct byte to byte correlation between the Virtual Address Space and the corresponding physical storage. So when we access the Virtual Address space via a memory mapping file we are directly communicating with the kernel space where the file is actually loaded. The portion of calculation between the physical storage and logical storage is hence avoided.

Memory Mapping files allows application to access files in the same way as memory. Generally as address between the physical storage and virtual memory address space, we cannot access the physical address directly. But using Memory Mapping Files, the process loads a specific range of address within the process address space with which the storage of memory into the file can be done by just assigning value to a dereferenced pointers. The IO operation on a MemoryMapping file is so fast that from the programmers point of view it seems to be like accessing the memory rather than actual physical storage. To increase performance memory mapping files are not actually stored to the disk file as well, but rather it will be stored automatically in background when FlushViewOfFile is executed or paging file is written. To Read more about memory mapping files, read here.

Memory Mapping file inside .NET Framework

.NET introduces a separate namespace to handle Memory Mapping files. Previously, we needed to do this using unmanaged Api's but with the introduction of managed API into the .NET framework library, it becomes very easy to handle MemoryMapping file directly from .NET library.

As memory mapping files are loaded into memory on a separate range of address space, two process can easily share the same page file instance and thus interprocess communication can be made with fast access to memory. It is recommended to back data with an actual disk file when large data is loaded into memory, so that there is no memory leak on the system when there is large memory pressure.

Saturday, February 4, 2012

Optimizing INPC Objects against memory leaks using WeakEvents

Working with WPF has always been a fun. Dealing with animation and richness in UI to its optimum level often gives you an edge to present something to your client and to ensure that your client shouts with a "WOW!". The Wow factor of applications can give you high rank in the first place, but increases expectation from the software. It is practically very hard to maintain with this expectation as time progresses. The survival of the fittest chooses one which best suits to the problem.

One of the major problems that developers face today is the memory leaks in an applications. Often the software that is built looks great but does not follow basic guidelines to ensure that the application is not memory hungry or even there are no existing memory leaks.

Note : By memory leak we mean, some portion of memory is not reclaimed by the garbage collector even though the object is not in use. 

By this way, the memory usage of the application increases at a certain extent and finally crashes with the OutOfMemoryException. To detect a memory leak there exists a large number of tools of which some are free while others are used as commercial purposes. Most of these problems can be fixed by either using Disposable pattern ( IDisposable interface) or manually de - referencing each and every object that are not in use. Sometimes, this can be also done in destructor / finalizers in .net too (but remember using destructors lose GC cycle).

Wednesday, January 4, 2012

I am reviewing Microsoft's 70-515 C# exam PrepKit from UCertify





I have got a offer from uCertify to review their PrepKit and I have accepted that challenge and now I am reviewing   70-515 Exam .NET 4.0 PrepKit from uCertify. Initially it looks like a simple tool that has a number of practice sets listed on the initial screen to try out few tests. The home screen also contains few links that points to Study Materials related to the exam that you are registered for. Lets take a look how the initial screen looks like :  






The menu contains different links to Tests, Quiz, Notes, Articles, Reports etc for easy navigation. 




As soon as I am done with the full review I will post it for you all.


If you are looking for a Certification, you can buy it from them : 
http://www.ucertify.com/

Thanks and stay tune.

Monday, January 2, 2012

Awarded Microsoft MVP in a row

Its new years eve. I was struck in traffic to join a Birthday party of one of my friend. Its all of a sudden I realized that it is my MVP renewal date too. I forgot it totally.






I opened my Mobile, browsed to my account and saw, I have got a mail from MVP Award Team.

"Dear Abhishek Sur,


Congratulations! We are pleased to present you with the 2012 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Client App Dev technical communities during the past year.


The Microsoft MVP Award provides us the unique opportunity to celebrate and honor your significant contributions and say "Thank you for your technical leadership."


Nestor Portillo
Director 
Community & Online Support"


I am really passionate about this award and I am really happy to receive this award for yet another time in Client App Dev category. This came to me as a New Years Gift. Thank you so much Microsoft for considering my activities and I want to personally thank Mr. Abhishek Kant, as my MVP Lead,  Abhijit Jana, Kunal Chowdhury, Amit Bansal, Dhananjay Kumar, Pinal Dave, Anoop Madhusudanan and last but not the least my own Community KolkataGeeks all of whom inspired me so much on my community activities. I would also like to thank the whole Microsoft Team for providing us such an opportunity to be in touch with this elite group.

And finally thank you to all my blog readers. I feel truly honored to receive such an award.


Happy New Year to all of you. Its time to party..... .

:)

Tuesday, December 27, 2011

Daily DotNet Tips 1 year and onwards

Friends,

We are excited to celebrate 1st Anniversary of our site DailyDotnetTips today. It aims to share useful programming tips for .net developers.This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.

Here is some of the statistics : 


  1. Founded : 27th December 2010
  2. No of Posts : 250
  3. No facebook likes : 502
  4. No of participants : 7
  5. No of Twitter followers : 348



We are still a long way to go. Follow us and be a part of it. 


Thursday, November 10, 2011

DEVCON – Kolkata, A New Beginning on 12th November, 2011


November 12th , we are getting together for a big event Developer Conference 2011 Organized by Microsoft User Group Kolkata (KolkataGeeks) .  Developer Conference is the premier technical event for technology professionals at Kolkata interested in learning, connecting and exploring latest Microsoft technologies.  This is also going to be community Launch event for Office 365. So be there and enjoy the flavor of cutting edge Microsoft technologies.
This is a full day event and you can attend this  event in person at Bharatiya Bhasha Parisad 36A, Shakespeare Sarani, 4th Floor  Kolkata – 700017.  Overall there are 7 different sessions which primarily focused on latest Microsoft Technologies.  .  Check the Dev Con Web Site for more information.
I’ll be presenting on “Windows 8 Metro Style Application“.  In this session I will talk about latest Windows release and how you can get best out of it through your Metro Style applications. There will be lots of demo in this session. 
Check out session details and agenda from here http://kolkatageeks.com/DevCon2011.aspx .  You can register for this event over here  http://kolkatageeks.com/DevCon2011/Register.aspx
See you there !

Monday, October 31, 2011

Layout adjustments Snapping and OrientationChanges in Metro Applications

If you have read my first article on Windows 8 metro styled application, you might already know about the working principle of it. I have talked about the capabilities for an application and settings which end user can configure for an application. In this post I will take a look at the basic layout structure that one needs to follow while creating an application in WinRT Metro styles so that it is best suited to perform well.

Layout is the most important part of any application. The best design for an application gets more credit and love from the users than applications that are designed bad. Metro style applications runs in full screen. Your application does not include a  Title Bar, status bar or anything. Microsoft gave us some of the basic layout guidelines that one needs to follow. Lets talk about them here to make you understand how you should layout your application in Metro Applications to utilize maximum flexibility of it.

Sunday, October 30, 2011

Understanding basic WinRT Metro Applications and Application Capabilities

Just about a month ago, WinRT was introduced with all new style of application development that can work better with Multi Touch Enabled devices. We call it as Metro Applications. In this post, I will discuss how to develop your first metro applications and how to work with its layout changes.

How to Start

Before we start talking directly about Metro Style application, let us see how to install it first. I refer to use OracleVM which you can find for free from this link, and install.  This will install a Virtual Machine in which you can install the Developer Preview of Windows 8.

Author's new book

Abhishek authored one of the best selling book of .NET. It covers ASP.NET, WPF, Windows 8, Threading, Memory Management, Internals, Visual Studio, HTML5, JQuery and many more...
Grab it now !!!