Six Rules to keep in mind when you are beginning a software


Six Rules to keep in mind when you are beginning a software
Even after a long and fascinating experience we have had while programming software, there are things we often forget, which usually leads to complicated problems and highly complicated solutions.

So here i am presenting to you a list of some rules i keep in mind while beginning a to work on a project.

1. Develop tests before doing the coding.
It is essentially necessary before you begin to work on a problem. Analyze the use cases, determine the problem, look for other methods to solve it. If you can solve the problem before starting to code, you will definitely write more efficient code.

2. Design before coding.
This is similar to what i mentioned above, but this involves writing an efficient algorithm on the paper, use a pencil or something to write it, then design the flow of it. This way you will be able to solve many problems earlier instead of after the coding or when you are writing it. This takes sometime but saves more.

3. Keep Integration in Mind
If you don't do a system architectural design with well-defined interfaces, integration will be a big mess.
Using the methods i mentioned above, design a good system architecture, again before you write single line of code. Also make a Database ERD (Entity Relationship Diagram) and Application Flow Diagram. So that you and other team members will be easily able to work on different modules and will always be ready to adapt to a change.

4. Design for change/variability.
It is no surprise that software requirements always change. Sometimes a feature is added and sometimes a feature is removed and sometimes there are subtle changes in it. So make sure that each part of your application is not tightly connected/depended on other part, use a modular structure, such as MVC.

5. The average newly hired employee is about as productive as an experienced employee
This is a thing which most people usually outlook, but it is true, at least i have seen it working. An average new employee will work as hard as he can to secure his/her position -- provided that he is a little experienced. Use it to your advantage although don't hire new employees for every new project.

6. Using better and fewer people is more productive than using more less qualified people
It is a common concept (specially in non-technical bosses) that increasing the number of people on a project reduces its development time, which is not true (at least in software development). It is better to select fewer but more productive and experienced people to develop a project than to select a large number of less productive or inexperienced people. Why? simply they will need more supervision and more help.

Upgrade from Joomla 1.0 to 1.5

http://www.siteground.com/tutorials/joomla15/joomla_upgrade.htm
http://joomlacode.org/gf/project/pasamioprojects/frs/?action=FrsReleaseBrowse&frs_package_id=2588 for downlaod migrator

More information about this can be found in our tutorial on how to upgrade Joomla 1.5 to the latest version.
How to upgrade from Joomla 1.0 to 1.5?

In this tutorial we will show you how to upgrade from Joomla 1.0.x to Joomla 1.5.x.

Important Note that it is highly recommended to backup your existing Joomla web site before you proceed with the migration process.



ImportantThe Joomla upgrade to 1.5 will preserve ONLY the content of your Joomla 1.0.x. No components/modules/plugins/templates you have will be available in the upgraded Joomla 1.5.

Step 1: Install the Migrator component

The first step is to install the Migrator component to your existing Joomla 1.0.x web site. You can download the Migrator component here.

More information on how to install a component in Joomla 1.0.x can be found in our Joomla 1.0 tutorial.

Once you have installed the Migrator component, you will be able to access it from the Components menu > Migrator.

The migrator component allows you to migrate your current Joomla 1.0.x data to the Joomla 1.5 database format.

Step 2: Create Migration SQL File

To proceed with the database migration click the Create Migration SQL File button located at the bottom of the Migrator component page:

Joomla 1.5 upgrade - SQL Migration success

The next step is to download the extracted SQL from your 1.0.x Joomla:

Joomla 1.5 upgrade - download the extracted SQL

You can now download your SQL dump by clicking on the Download link available on the right section of the page and upload it into your Joomla! 1.5 installation. Later, when importing this SQL file into your 1.5 installation, make sure to select Load Migration Script and use the prefix '_jos' (by default).

Step 3: Make a clean Joomla 1.5 installation

Next you should perform a manual Joomla 1.5 installation. For the purpose of this tutorial let's install Joomla 1.5 in a folder called dev.

Download the latest Joomla 1.5 package from the official website and extract it in the dev folder.

Open the dev folder by going to http://www.your-website.com/dev. You will see the Joomla start installation screen. Select your language, you should already have a database and user to fill them in.

Step 4. Perform the migration

Proceed with the installation until you reach Step 6: Configuration:

Joomla 1.5 upgrade - Step 6: Configuration

Fill the name of your web site, your admin e-mail and password details.

Important The key part here is to choose the Load Migration Script option:

Joomla 1.5 upgrade - Load Migration Script

Fill the old table prefix _jos and leave the encoding unchanged unless needed and you are familiar with this option.

By clicking on the [Browse] button you should select the Joomla 1.0.x migration dump you downloaded earlier.

Important Make sure to check the This script is a Joomla! 1.0 migration script. check box as well.

Proceed by clicking on the [Upload and execute] button.

Once the data is imported you should see the following screen:

Joomla 1.5 upgrade - Upload and execute

Click on the [Next] button near to the upper right corner.

Important You need to completely remove the installation directory.

Joomla 1.5 upgrade - Remove the installation directory

Now when you open the front end of your newly installed Joomla 1.5 you will see all the articles from the previous Jooml

Basic level Interview Questions - PHP

Difference between session and cookies?

Ans:- 1. session stored at server while cookie get stored at client’s web browser.

2. session are stored as an object on server side on the path specified in the php.in file for session_save path variable while cookies are passed as header and stored on client’s web browser as text file.

3. session variables are exists only when session doesn’t expires while cookies[persistent not session] can be stored for future time also and can be used to handle user’s preference.

what are encryption methods available in php and mysql?Difference between sha1 and md5?

Ans:- some encryption methods available in php are md5,sha1,encrypt,password.Difference between sha1 and md5 encryption is that sha1 take more space than md5 in terms of storing information in the database.Some encryption available in mySql are password,MD5,encrypt.

What is Ajax & how it works?

Ans:- AJAX stands for asynchronous javascript and xml.It’s asynchronous this script doesn’t wait for the response.Regardless of this it can make another request without waiting for the response.Fist of all it creates XMLHttpRequest object by which it makes a request.and when response comes back script handover it to another function which will check for the response readyStatus and returns the response.

Oops principles?

Ans:- Polymorphism [not supported in PHP]

Encapsulation

Abstraction

Dynamic binding

class and Object

for more detail please refer http://in2.php.net/manual/en/language.oop5.php

Mysql Joins?

Ans:- I don’t have idea but know about types.Cross,Left,right,inner and outer join.

Strings and array functions.array_walk,in_array?

Ans:- check function list available on

http://in2.php.net/manual/en/ref.array.php [for array]

http://in2.php.net/manual-lookup.php?pattern=string〈=en [for strings function]

Difference between include,include_once,require,require_once?

Ans:- Unlike include(), require() will always read in the target file, even if the line it’s on never executes. If you want to conditionally include a file, use include(). The conditional statement won’t affect the require(). However, if the line on which the require() occurs is not executed, neither will any of the code in the target file be executed.include() may give warning and proceed further but require() will hault whenever warning/error faced in the script.include_once(),require_once() as name suggest can be used to include a file only one.[useful in case we include a class file]

How can we submit a form without a submit button?

Ans:- you can call a function in javascript onclick event of any form element/link and in the function you amy use document.formName.submit(); to submit the form

What is the difference between mysql_fetch_object, mysql_fetch_rows and mysql_fetch_array?

Ans:- mysql_fetch_object will return an object by which we can access the database fields records while mysql_fetch_aaray and mysql_fetch_rows return array of database records.mysql_fetch_row will not return associative array while mysql_array will return associative array too.

What is the difference between $message and $$message?

$message is used as a variable while $message can be used to assign a value as variable.for eg:

$message=’uttam’;

$message=’kumar’;

in this case $kumar will give you value as ‘uttam’.

What is meant by nl2br()?

Returns string with ‘
’ inserted before all newlines(\n).

$msg=”these are \n interview question”;

$nl2brmsg=nl2br($msg);

$nl2brmsg will return value as “these are
interview question”.