đŸ‡”đŸ‡ž Call for a #CeasefireNOW đŸ‡”đŸ‡ž

Act Now

A Case We Shouldn’t Use Stored Procedure’s In

We are working on this big project at work in which several teams are assigned to different modules. The modules are, naturally, overlapping in certain areas where they they need to interact with each other through API’s. One of these modules is central and crucial to the rest of the modules, the dependency is very high that the team has to provide many API’s. Certain API’s was needed by different modules; our team needed a list of entity X, and another team also wanted a list of entity X, BUT
we had different criteria! ...

June 9, 2009 Â· Emad Alashi

DPack for Visual Studio, Better Navigation

There have been couple of code assistance and refactoring products for the Visual Studio IDE, two of the top listed is CodeRush and Resharper; they provide amazing and rich functionality regarding code refactoring and navigation. But if the built-in refactorings in the Visual Studio itself suffices you (I am comfortable with it), then the only thing you need is DPack for Visual Studio; it’s a simple navigation utility by which you can navigate to the wanted File, Class, Method, or Property as easy as couple of strokes. ...

June 1, 2009 Â· Emad Alashi

Clear jQuery Droppable List

The other day at work I finally had the chance to get my hands on code (see here why I’m so anxious about it 😛 ). We were using the jQuery’s Drag and Drop feature, where the droppable areas (DIV’s) are marked as droppable and registered for the events like the following: 126 function RegisterDroppable(DomID) { 128 $(‘#' + DomID).droppable({ ...

May 19, 2009 Â· Emad Alashi

Technical Team Leader
Who Is Not

When I started this blog my goal was to make it a technical one, in which most posts would have code, samples, screen shots, architecture
etc. This was the primary goal, though it is totally fine with me to talk about software life in general. The issue is that I get the ideas of my posts from my real daily life, which is mostly code challenges at work. I do write code in my leisure time, but for sure it is not as thorough as the thing at work. And since I haven’t posted any technical stuff lately
the simple conclusion is I DON’T SEE CODE ANYMORE! ...

April 24, 2009 Â· Emad Alashi

Fear and Humbleness
Obstacles in The Way of Success

“Oh no, I won’t go into that code; I am not that intelligent!” “oh no, I don’t want to try this software
I don’t know what it will do to my machine!” “Oh no, I can’t write such a unique blog post!” “Oh no, I will not twiply to that celebrity
come on
he is a celebrity!” These phrases kept chasing me for a long while in my life, and sometimes still does. It had the worst effect on my progress, I couldn’t move an inch forward; by a deep feeling I didn’t confront, I was afraid of failure, mixed with a feeling of negative humbleness. But that was it, I couldn’t stay as a prisoner to these chains, and leave these cookies of success to people who might have less resources and powers. ...

March 10, 2009 Â· Emad Alashi

JavaScript Date Object and Code Convention

“is Code Convention important?”, I couldn’t find better time to answer this with a big, decorated, shiny, flashing “YES” more than now! I was doing some coding with JavaScript in which I needed to create a Date object and add to it 30 days, simple job! So I did the following: var x = new Date(); ...

February 26, 2009 Â· Emad Alashi

Beware of Static Constructors

In Bunian we needed to use a static constructor for some reason, it was all going good; we tested the code and it ran smoothly
excellent (Code Coverage anyone?!). But when I came across this situation, it appeared that the static constructor wasn’t invoked!even when “Class.Method();” is called! so lets examine it. I have two simple classes as an Example: public class Parent { public static string DoSomething() { return “Parent: DoSomething() called”; } } public class Child : Parent { ...

February 6, 2009 Â· Emad Alashi

default ASP.NET Membership provider on different database

Every ASP.NET developer should already know about the Membership Provider that ships with ASP.NET 2.0. Configuring it is as easy as opening Visual Studio > select the Web project file > navigate to the Project menu item > and select “ASP.NET Configuration”. Follow the wizard and you are up and running now. But the problem with this approach is that it will build it’s OWN database in the App_Data folder and create the required tables there. Wouldn’t most of us have their own databases to work with? ok then, if you want the defualt ASP.NET Membership Provide (AspNetSqlMembershipProvider) to work on YOUR database do the following: ...

January 25, 2009 Â· Emad Alashi

Get On With It!

When we started gathering requirements from the charity organizations for Bunian, it appeared that there are other kinds of people who benefit from the charity organization; there are “needy families” whose father is still alive but can’t sustain their families, and “students” who can’t afford their study. So Bunian needs to support all these Beneficiaries in smart way; we solved the problem by creating the IBeneficiary interface. But the problem is that in order to get out with the best solution ever (damn perfectionism!), we kept coming up with different solutions, and overriding them with other solutions every once in a while, and this kept going like forever! ...

January 16, 2009 Â· Emad Alashi

Importance of Documentation

 Lately we have decided in Bunian to move on to NHibernate 2.0, and the contributor assigned to the move started out, only to send an email one day after: “THERE IS NO DOCUMENTATION!’. We had errors as a result to the move which couldn’t be fixed without a documentation explaining why this happened. After searching for a while, we found two resources of the new documentation: a wiki help that is hosted on Google Knol: http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21# Not really appealing to be used extensively; no smooth flow between chapters, frames dazzle the eyes, no table of contents, but surely a great step forward for a documentation that is maintained by the community ...

December 26, 2008 Â· Emad Alashi