Dependency Injection in C# .NET

Friday, January 20th, 2012  »  Posted By  »  Total 8 Comments

Dependency injection basically allows us to create loosely coupled, reusable, and testable objects in your software designs by removing dependencies. We will take a look into the Object dependencies before digging in more. Consider a scenario of fetching an employee details and show display in UI. Let us say create a Business logic layer class […]

Delegate and Events in C# .NET

ClassDiagram of Logger Application Sunday, January 15th, 2012  »  Posted By  »  Total 0 Comment

Delegates A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which […]

Mobile Information Device Profile (MIDP 2.0) in J2ME

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

MIDP in general is one of the J2ME profile, a profile consists of Java classes. MIDP provides high-level API’s using which J2ME developer can easily develop applications, which is easy to use, highly graphical, with optimized for small computing devices such as Mobile phone. Also provides low-level user interface API’s giving the developers a control […]

Best Practices for Small computing devices

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

Keep your application Simple and Small. Limit the use of memory Avoid using object types. Always use minimum data type for storing data. Clean up the resources held by our program manually because even though garbage collector takes care of that we don’t know when it cleans up. Allocate an object immediately before the object […]

Java APIs for Bluetooth Wireless Technology (JABWT)

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

The JABWT specification defines an optional J2ME package for Bluetooth wireless technology. What is it? The JABWT operates on top of the CLDC and is intended to extend the capabilities of profiles like the MIDP. JABWT use the Generic Connection Framework (GCF) defined in the CLDC specification for Bluetooth communication. What does it provide? JABWT […]

Midlet in J2ME

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

A MIDlet is a Java program for embedded devices, more specifically the Java ME virtual machine. Generally, these are games and applications that run on a cell phone A MIDlet requires a device that implements Java ME, MIDP to run. Like other Java programs, MIDlets have a “compile once, run anywhere” potential. MIDlet distributions also consist […]

Record management in J2ME MIDP

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

MIDP doesn’t use filesystem to save application data; in turn it uses a non-volatile memory using a system called Record Management System The MIDP Record Management System (RMS) provides a means to store application data that persists across invocations of a MIDlet. You can visualize the RMS record store as a very simple database, where each […]

J2ME Core Concepts

Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

J2ME Core Concepts: Configurations, Profile and Optional packages are 3 major concepts. Configurations: A configuration is a complete Java runtime environment, consisting of three things: A Java virtual machine (VM) to execute Java byte code. Native code to interface to the underlying system. A set of core Java runtime classes. To use a configuration, a device […]

Association , Aggregation and Composition

Association , Aggregation and Composition Saturday, January 14th, 2012  »  Posted By  »  Total 0 Comment

Association “Association represents the static relationship shared among the objects of two classes. “So any relationship between object of two classes is called association. An association says there is some kind of dependency between the objects. It can either be a weak or Strong dependency. Consider an example of Teacher and Student classes. Multiple students […]

Introduction to Automapper

Monday, January 2nd, 2012  »  Posted By  »  Total 0 Comment

Introduction AutoMapper is an object-object mapper. Object-object mapping works by transforming an input object of one type into an output object of a different type. When to use Automapper? Here is one Sample scenario. Assume we have a domain model say a Customer entity and we are planning to show a list of Customers in […]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: