tag:blogger.com,1999:blog-1574650067226018822024-03-18T08:37:44.602+03:00Software CaféBlog about software programming and new technologiesMohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-157465006722601882.post-39800549549773612642019-09-04T21:24:00.000+03:002019-09-04T21:24:55.955+03:00Promotional Code for Udemy ServiceNow CIS - HR Practice TestsIf you're planning to become ServiceNow Certified Implementation Specialist - Human Resources (CIS-HR), you can prepare for the exam using my practice tests on Udemy. I have created 10 coupons. You can use the code CISHR19 or you can directly click on this link: ServiceNow CIS - HR Tests 50% off
Best of luck in your exam!Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com2tag:blogger.com,1999:blog-157465006722601882.post-87825872577090464472012-09-19T03:17:00.000+03:002013-01-21T10:33:49.437+03:00Reviewing CLR via C# by Jeffrey Richter
Lately, I finished reading "CLR via C#" by Jeffrey Richter. This 5-star book was very beneficial to me and I thought it would also add value for every .NET developer.
Not only does the book give you a good insight on the features of the framework, but it also digs deep into the inner working of the CLR giving the reader a great knowledge on how to write code that runs under the .NET Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com1tag:blogger.com,1999:blog-157465006722601882.post-36542150202403367602012-06-13T01:53:00.000+03:002013-02-16T12:22:08.134+03:00Difference Between Events And Delegates in C#
It might be the syntax of C# that provides us with shortcuts to write delegates and events that causes this confusion.
In short, a delegate is a class that contains a field that holds a reference to a method and then you can call the method with appropriate parameters. Whereas an event is a variable that you can define and specify one or more delegates to be added to it.
Let's go through theseMohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com47tag:blogger.com,1999:blog-157465006722601882.post-37089578423623736632012-06-08T21:07:00.000+03:002012-06-09T10:06:15.808+03:00Confusion when Passing Reference Type Objects in C#
Everybody knows that when making a method call in C#, reference type objects are passed by reference. In other words, whatever changes you make to your object in the called method will be reflected on the original one.
Let's examine the following code:
class MyClass
{
public int MyInteger;
}
class Program
{
static void Main(string[] args)
{
Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com3tag:blogger.com,1999:blog-157465006722601882.post-1791938053536316852012-04-25T16:52:00.001+03:002012-06-08T21:10:53.152+03:00Reference Type vs. Value Type in C#
Types in .NET Framework are either treated by Reference or by Value. Reference types variables are used by a reference (or a pointer) that points to their data. On the other hand, Value types variables are accessed directly through their values.
There are several differences between these 2 kinds of data types. I'll try here to highlight some of them throughout examples.
Reference Type Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com12tag:blogger.com,1999:blog-157465006722601882.post-49611982623929230062012-03-27T11:26:00.000+02:002012-08-25T11:25:56.365+03:00Custom Validation Controls in ASP.NET
Validation controls in ASP.NET are great tools that reduce the time needed to do such a repetitive task> However, sometimes they don't provide all what we need. We still want to use them but we also want to add more validation that is custom to our business.
Custom Validation controls come to solve this problem. We can use them in conjunction with the normal Validation Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com6tag:blogger.com,1999:blog-157465006722601882.post-79938364394030126342011-08-26T03:53:00.000+03:002012-05-17T16:51:43.839+03:00Reviewing Architecting Applications for the Enterprise
Microsoft® .NET: Architecting Applications for the Enterprise by Dino Esposito
My rating: 4 of 5
Interesting and easy-reading book on software architecture using Microsoft technologies. It also provides some helpful best practices in general regardless of the technology. It covers a wide range of many architecture aspects; from presentation patterns to business and data access layers. Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-69775480150791610972011-08-16T00:08:00.005+03:002012-08-25T11:27:15.492+03:00My First Chrome Theme
Snapshot of the theme in Chrome Web Store
Today, I've published a Google Chrome theme. Creating a theme wasn't difficult at all. I used a website that provides the capability of creating Chrome themes online. You can check the website here: Create Chrome Theme Online
My first Chrome theme features a photo that I took in the Jordanian city of Umm Qais. The city resides in the north-west of Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-7803713319861477022011-05-24T18:51:00.010+03:002013-01-29T18:57:57.843+03:00Abstract vs. Virtual in C#
There are several keywords that can be used for inheritance in object-oriented programming languages. In C#, you can specify a method as abstract or virtual.
In the concrete class, you must override any method marked as abstract. You can override
virtual
methods. In addition, you can provide new implementation for normal methods that are neither
abstract nor virtual. In this case, it's Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com34tag:blogger.com,1999:blog-157465006722601882.post-73313223485305032932010-12-29T17:43:00.010+02:002012-08-25T11:22:47.450+03:00Executing Stored Procedures in Parallel using ADO.NET
In some cases, when every milisecond counts, you might need to execute several stored procedures at the same time. At the same time here means that when calling the first stored procedure, you don't want to wait for its result in order to call the second one.
In other words, if the two stored procedures are independent, it would be a brilliant idea to improve performance by executing them in Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com29tag:blogger.com,1999:blog-157465006722601882.post-3719709569468192502010-11-03T17:31:00.008+02:002012-04-25T17:55:05.331+03:00Adding Days to Dates in Javascript
There's no built-in function in the Javascript Date object that adds days to an existing date. However, there's a way to make it work by using the Date contructor.
var date = Date(year, month, day);
Using this constructor, we can acomplish this task. Let's say that we're having a date variable called today and you want to alert a date that is 15 days after this date. The following should Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-2212189869717765062010-04-11T20:25:00.016+03:002011-05-24T15:50:23.656+03:00AJAX-Like File UploadingIntroduction
Currently, there's no direct way to upload files in a web page without refreshing the page. If you have an interactive page that is AJAX-enabled, you would like to support uploading files in a way similar to AJAX behavior.
Unfortunately, the XMLHttpRequest object doesn't support uploading files; therefore, I am trying to upload files using a workaround.
Background
First of all, Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-51529844977942474602010-04-11T20:24:00.011+03:002011-05-24T18:02:20.904+03:00Iff statement in VB.NETAs a C# developer, I'm accustomed to using the one-line conditional statement; (condition) ? (true condition code) : (false condition code); So when I started to write VB.NET recently, which I abandoned several years ago, I found it nice to use the Iff function.
Any way, I was surprised by its behavior, until I came back to my common sense and realized that Iff is not a keyword in VB.NET but Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-78155842962225596562010-04-11T20:24:00.010+03:002011-05-24T18:00:02.279+03:00Implement Sequence in Sql ServerProblem
In many cases, a database developer would rely on the DBRMS to generate and auto-increment a primary key in a table. In Oracle, for instance, the "Sequence" feature provides an encapsulated functionality to handle incrementing any particular variable. A sequence is not necessarily attached to a particular table, but rather, it's considered an independent entity that can be used amongst Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-70945092219860314832010-04-11T20:23:00.006+03:002011-05-24T12:21:40.009+03:00Creating a Numeric TextBox Control
Introduction
In this article, we'll learn step-by-step how to create a custom textbox control that only accepts numeric characters. The control will allow the client code to specify whether it should work as an integer or decimal textbox.
This custom control will be implemented using Visual Studio 2008. However, the same code can be written using previous versions of Visual Studio. The Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com0tag:blogger.com,1999:blog-157465006722601882.post-43423180733552439612010-04-11T20:21:00.004+03:002011-05-24T12:22:28.477+03:00Implementing a Motor Race Using the Strategy Design PatternIntroduction
In this article, we will learn about the Strategy Pattern by implementing it on a motor racing game. Strategy pattern is one of the many design patterns defined by the Gang of Four (GoF). A design pattern is a definition of a problem that other developers have faced before you, and they found a solution that might help you if you’re facing the same problem or a similar one. To know Mohammad Abualihttp://www.blogger.com/profile/15281784012626215927noreply@blogger.com2