Peter Bahaa's Blog

Business and Technical Articles

Coding Standards and Best Practices : Dealing with strings Part (1)

August 18
by Peter Bahaa 18. August 2010 21:57
Week ago i started a series of blog posts about coding standards and best practices and i will be posting those post between my personal and Integrant blogs, as one of the most things i love about Integrant is that all the developers are concerned about using coding standards and best practices and approaches, As best practices and coding standards works like a contract between the developers to ensure maintainability, readability, performance and usability, for example I’m writing a piece of ... [More]

Tags:

C# | Best Practices | Coding Standards | Tips & Tricks | Technical

Implementing Multithreaded Singleton Class

August 17
by Peter Bahaa 17. August 2010 02:46
You are building an application in C#. You need a class that has only one instance, and you need to provide a global point of access to the instance. You want to be sure that your solution is efficient and that it takes advantage of the Microsoft .NET common language runtime features. You may also want to make sure that your solution is thread safe. Multithreaded Singleton Static initialization is suitable for most situations. When your application must delay the instantiation, use a non-defa... [More]

Tags:

C# | Tips & Tricks | Best Practices

Coding Standards and Best Practices : Avoid using strings in CODE PLEASE!

August 05
by Peter Bahaa 5. August 2010 01:08
I decided to start a series of posts about coding standards and best practices, the point is, why do we need to keep our eyes open on coding standards and best practices approaches, because simply coding is about maintainability, so following up this standers and practices will really add a real value to our code. Year ago i was working DashSoft and our CEO Remon Zakaria and he told me one of the most major thing that makes you judge someone’s code is have strings inside the code, I’m talking a... [More]

Tags:

Tips & Tricks | Coding Standards | Best Practices

Best way to send multiple values in one parameter to database

July 19
by Peter Bahaa 19. July 2010 22:20
Many time i stucked with business requirements which says we need to send multiple parameters to database, so the first thing came to my head is to send a comma separated parameter and send this parameter to a t-sql tabler function and query on the values that come out from this function which was tooooooooooooo slowwwwwwwww while ago i had this conversation with one of my colleges and he proposed X-Path which i tried it, and it was more slow and very pad performance, and another one suggested ... [More]

Tags:

Tips & Tricks | XML | T-SQL

C# Singleton Pattern Code Snippet

October 02
by Peter Bahaa 2. October 2009 02:47
My team-mate Rizk Sobhi was discussing with me how to make a singleton pattern, so he created a c# code snippet to do the job: to download the snippet click here.

Tags:

New Release | Productivity Tools | Tips & Tricks

Telerik OpenAccess WCF Wizard September 2009 CTP

September 14
by Peter Bahaa 14. September 2009 03:27
Telerik released a new CTP that fixes most of the bugs has been issued in the August CTP like 1- there were no way to select property to be Title and Summary for the Atom Feed 2- the application is working only on a specific version of Telerik OpenAccess So what they add new is The Automatic Version Selection for Telerik OpenAccess , through saving different version of Telerik OpenAccess in version store and load them when needed on the fly, and the second feature was adding a property sele... [More]

Tags:

Atom | Astoria | Telerik | Technical | WCF | XML | Tips & Tricks | ADO.Net DataService | REST | REST Collection Service

How To : Use Telerik OpenAccess WCF Wizard to generate REST Collection WCF Service and consume it in Silverlight application

September 07
by Peter Bahaa 7. September 2009 03:02
In this video I'm simply demonstrating how to generate REST Collection WCF service from pre-generated Telerik OpenAccess Entities using Telerik OpenAccess WCF Wizard, I hope you enjoy it, please send me your comments!

Tags:

WCF | Tips & Tricks | Productivity Tools | HDI | New Release | REST | REST Collection Service

How To : Use Telerik OpenAccess WCF Wizard to generate Astoria Service and consume it in Silverlight application

August 26
by Peter Bahaa 26. August 2009 09:03
In this video I'm simply demonstrating how to generate Astoria service from pre-generated Telerik OpenAccess Entities using Telerik OpenAccess WCF Wizard, I hope you enjoy it, please send me your comments!

Tags:

HDI | Tips & Tricks | Technical | Productivity Tools | Astoria | ADO.Net DataService | WCF

How To : Use Telerik OpenAccess WCF Wizard to generate WCF Service and consume it in Silverlight application

August 26
by Peter Bahaa 26. August 2009 00:03
In this video I’m simply demonstrating how to generate WCF services from pre-generated Telerik OpenAccess Entities using Telerik OpenAccess WCF Wizard,   I hope you enjoy it, please send me your comments!

Tags:

HDI | Productivity Tools | Telerik | Tips & Tricks

Disabling Configuration Inheritance For ASP.NET Child Applications

March 27
by Peter Bahaa 27. March 2009 00:54
Configuration inheritance is a very robust feature of ASP.NET that allows you to set configuration settings in the Web.Config of a parent application and have it automatically be applied to all of its child applications. There are certain situations, however, when there are configuration settings that you don't want to apply to a child application. The usual course of action is to override the setting in question in the child application's web.config file, which is ideal if there are only a hand... [More]

Tags:

Tips & Tricks | Tips & Tricks

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar