Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
10 Programming Tips > NetSparsh - Viral Content you Love & Share

10 Programming Tips

(1) Avoid using the same variable again and again for different purposes.

This happens with us that we think that more and more memory will be wasted if we declare seperate variable for each purpose. But, if any debugging is about to be done and program is quite a typical. Then, debugger will get confused and Dry-Run will also not work in such a scenario. So, if your program is small then, you can use the same variable. But, if it is complex, then do not use the same cheap practive.

(2) Use capital letter to variable name for global variables.

You should use capital letters because, there should be distinguishable difference between a local variable and global variable. There should not be any confusion while dry run or debugging.

(3) All the variables should be declared at one place.

This helps the programmer to analyze whether some variable is yet declared or not. If we declare them at different locations, then, a proper manner can not be acheived in your programming. The variables should normally defined just below the function declaration.

(4) There should be proper indenting in whole program.

Indenting helps you understand the program and the logic behind the statements well. This is cheap practice to write the functions, iterations and conditional statements without indenting. It looks like a junk also. There should be a proper demarkation in your mind and the same concept should be followed in all the portions of your program.

(5) Commenting.

Commenting is very much important. Although, there is no relation of them from your logic and programming. But, once you debug your program or new amendments are done, it becomes tedious to understand the logic behind that coding section. That is why, commenting is very neccesary in programming.

(6) Do not use labels.

In some programming languages like BASIC, there is scope of providing labels. Experts say that using such labels produces extra burden in the operating system. So, you should avoid them.

(7) Do not declare unused functions or variables.

This practice is also prohibited. You should not declare such a variable which is not getting used anyewhere. You should check it out when you are going through dry-run also.

(8) Coupling should be avoided cohesion should be increased.

Coupling comes to picture when the output of a function is input to other. This produces a sort of ripple effect and debugging becomes a problem and error-prone programming is found in such state.

(9) Always write the program or check the logic then, come to type.

This is a general practice that people directly sit on system and try to build logic and all the necessary corrections are done. But, such anactivity may produce problems like unused variable (regular declaration and descarding) , unused functions (declare and forget to call or just checking), moving in the wrong direction of logic. So, you should decide things before you come to portray them.

(10) Do not learn programs, try to develop your own logic.

Each person has logic but, there should be flow in that logic. If flow is absent then your ideas can not reach the destination. So, instead of learning an old algorithm, try to your own program based on your logic.

Som Dutt Tripathi is an IT personality. He wants to express many things and want to share his ideas with the world.

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

Xconomy

Quest Analytics Buys Healthcare Compliance Software Firm BetterDoctor
Xconomy
Quest Analytics develops software for health plans and other customers that lets users search for and monitor the healthcare providers with whom they're affiliated. The company's digital tools help clients ensure they're acting in accordance with ...

and more »

Forbes

What It Will Take For The Software Services Industry To Navigate A Digital Future
Forbes
No device exists without software, and the end-to-end software services and solutions for businesses across industries are being developed by the information technology (IT) sector. This underlines the need for the sector to be alert to opportunities.


eWeek

Lakeside Software: Product Overview and Insight
eWeek
eWEEK is building a new IT products and services section that encompasses most of the categories that we cover on our site. In it, we will spotlight the leaders in each sector, which include enterprise software, hardware, security, on-premises-based ...


Investor's Business Daily

Software Stocks Flying High, IPOs Drive Up Valuations, M&A May Suffer
Investor's Business Daily
Both Salesforce.com and Workday acquired firms at historically high prices, says Morgan Stanley. The investment bank notes 52 software acquisitions in 2018 thus far. That includes purchases of private firms. Companies bought 36 and 37 software firms, ...


Clarkson professor gets grant to compare DNA software
WatertownDailyTimes.com
Ms. Matthews, an associate computer science professor at Clarkson University, is leading a team that has been awarded a $75,000 Brown Institute Magic grant for her project, Decoding Difference in DNA Forensic Software. “Simply put, when computers are ...


WPRI 12 Eyewitness News

'Significant' UHIP software upgrade planned for this weekend
WPRI 12 Eyewitness News
PROVIDENCE, R.I. (WPRI) - A major software upgrade for Rhode Island's UHIP computer system is scheduled for this weekend. UHIP - short for Unified Health Infrastructure Project - is Rhode Island's problem-plagued computer system, which launched in ...


The Register

From here on, Red Hat's new GPLv2 software projects will have GPLv3 cure for license violators
The Register
Red Hat on Monday said all of its newly initiated open-source projects that adopt GPLv2 or LGPLv2.1 licenses will be expected to include the GPLv3 "cure" provision. The move follows Red Hat's announcement last November, in conjunction with Facebook, ...

and more »

PYMNTS.com

SMB Software Firm Zetran Jumps Into Accounting
PYMNTS.com
Small business software provider Zetran is adding an accounting solution to its suite of services, the company said on Sunday (June 17). In a press release, Zetran said it saw a gap in the market for affordable automation software for small and medium ...


Network World

Cisco's David Goeckeler talks security, networking, software and SD-WAN outlook
Network World
Responsible for 20,000 engineers and $32 billion worth of the networking giant's business, Goeckeler, executive vice president and general manager, masterminds Cisco's network and security strategy which now features ever more emphasis on software.


TechCrunch

Kaspersky pulls plug on Europol joint venture after EU parliament vote to ban its software
TechCrunch
Fresh political woes for Russian security firm Kaspersky, which has reacted angrily to a vote in the European Union Parliament last week to ban its software — on the grounds that it has been “confirmed as malicious“. Kaspersky denies this ...

and more »
Google News

Microsoft Great Plains Implementation for Large Corporation ? Overview for VP IT

Microsoft Business Solutions Great Plains was historically designed to serve... Read More

Microsoft Great Plains Integration with Microsoft Access ? Overview for Developer

... Read More

What is Preventive Maintenance Software?

Preventive Maintenance (PM) is defined as scheduled work done on... Read More

Do You Want Your Own Fully Programmable ERP? - Part 1

We are in a transition phase in the Managerial Administration... Read More

The Truth about Colossus: Are You Just A Magnetic Image?

What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More

Microsoft Great Plains PM: Payables Management

Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More

C++ Tutorial 2, Input and Variables

This is the tutorial where we really get into programming.... Read More

Does your Company have Documentum?

Are you lost in the mess of documents that get... Read More

Microsoft Great Plains Nationwide Remote Support

ERP Consulting industry is on the way to serve clients... Read More

Free Microsoft Word Online Training Tutorial Resources

Microsoft Word is one of the most popular office applications... Read More

Microsoft Navision Customization Upgrade ? Tips For Programmer/IT Specialist

Currently Microsoft Business Solutions is on the way of creating... Read More

Anti-Virus Software

Anti-virus software is used to find, remove or fix files... Read More

Microsoft CRM: Implementation, Customization, Support ? Consultant Overview

Microsoft Business Solutions CRM is present several years on the... Read More

SQL: Querying Microsoft Great Plains ? Overview for Database Administrator/Developer

Looks like Microsoft Great Plains becomes more... Read More

Great Plains Bill of Materials Setup & Customization for Process Manufacturing ? Overview

Microsoft Great Plains has full-featured Manufacturing suite of modules: Capacity... Read More

Microsoft Great Plains version 8.5: Upgrade, Customization, VBA, Crystal Reports - Highlights

Microsoft Great Plains is one of the Microsoft Business Solutions... Read More

Microsoft CRM Data Conversion FAQ

Microsoft Business Solutions CRM data conversion deserves FAQ type of... Read More

Most Dangerous Types of Spyware are on the Rise: How to Choose the Weapon

Bad News - the Threat is Bigger than it SeemedHow... Read More

Great Plains Dexterity Customization Options ? Overview For Developers

Looks like Microsoft Great Plains becomes more and more popular,... Read More

Chinese Input - Step by Step Instruction on How to Input Chinese Characters in English Windows XP

Enabling Chinese input is quick and easy, there are only... Read More

Microsoft Great Plains: Data Conversion & Migration Scenarios ? Overview for Consultant

Microsoft Business Solutions Great Plains serves multiple industries in the... Read More

Microsoft Great Plains Integration Manager: Using Continuum ? Overview for Developer

Microsoft Business Solutions Great Plains has I'd say end user... Read More

Microsoft Great Plains 8.0 Brazilian Version ? Overview For International Consultant

Microsoft Great Plains has substantial mid-market share in the USA... Read More

Software Companies: Generate New Revenue Streams and Decrease Costs with Custom e-Learning Content

It's no secret that software companies operate in a very... Read More

Partitioning, Formatting and Reinstalling in Windows 98

Formatting and reinstalling windows 98 is very easy if you... Read More