Regular Expressions For Beginners: Lesson 1

A regular expression defines a search pattern for strings. This pattern may match one or several times or not at all for a given string. The abbreviation for regular expression is regex.

Regular expressions can helps in

  • Searching and pattern matching
  • Text replacement
  • Collecting information ( word count, no. of spaces, no. of lines)
  • Available in almost all languages (Perl, PHP, Java, .Net, JavaScript)
  • Many default operating system programs support regex ( grep, windows search). Some other programs like syntax highlighters and Eclipse Search also use regex power.

Continue reading Regular Expressions For Beginners: Lesson 1

How To Deploy Java Web Application/WAR File On Amazon Beanstalk?

This tutorial will show you a step by step procedure to deploy your java web application on Amazon EC2 Server. You must have a access to a valid Amazon AWS Server.
  1. First go to this URL https://aws.amazon.com/
  2. Go to My Account/Console on top right and select My Account and login with your email and password. Continue reading How To Deploy Java Web Application/WAR File On Amazon Beanstalk?

What Is Dependency Injection/ Inversion of Control And How Does It Helps In Loose Coupling?

Spring framework contributes in loose coupling with the help of Dependency Injection(DI) or Inversion of Control(IOC). DI allows you to inject objects into a class, rather than relying on the class to create the object itself. So the process of creating an object is inverted.

In a software system, objects collaborate with each other to make the system work. These collaborations are generally in the form of one object depending on another object, in other words, declaring an object with “new” operator in the other class.

The discussed example in this article can be downloaded as eclipse project from here
Continue reading What Is Dependency Injection/ Inversion of Control And How Does It Helps In Loose Coupling?