Your are here: Home → Posts Tagged With Programming
Trends To Good Coding Style
1. Name ::
A variable name reflects it’s presence and usage in a program. A variable name thus should be concise, understandable, definitely memorable and if possible pronounceable.
Global :- Use descriptive names for global variables as they can crop up anywhere in a code. Another good method is to include a comment with each global variable. Also begin global variable with a capital...
Tags: Programming
Algorithms
1. Randomized algorithms ::
Randomized algorithms rely on the statistical properties of random numbers. One example of a randomized algorithm is quicksort.
In quicksort we take a set of data, sort it selecting a pivot value, ie; we select a central value(as in having a central tendency) and then sort all the elements before and after it. Then, as the two halves are sorted, we perform the...
Tags: Programming
Blank Frame In Java
A blank frame window ::
import javax.swing.*;
public class swingstart
{
public static void main(String[] args)
{
SimpleFrame frame=new SimpleFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
class SimpleFrame extends JFrame
{
public SimpleFrame()
{
setSize(DEFAULT_WIDTH,DEFAULT_HEIGHT);
}
static final...
A Java IDE I Have Decided To Use
JAVA
JCREATOR
Screenshot ::
Advantages ::
In built templates for on the fly development.
A wizard support to quick project development, helps for large projects.
Fast code edting with fast support for project management.
Aplications can be run as applets.
Auto indent, code completion and word completion.
Can be run from a USB drive.
JCreator :: Homepage
Download JCreator :: Download link
Read More →
The C++ IDE I Use
C++
BLOODSHED DEV c++
Screenshot ::
Advantages ::
Is developed under the GNU general public license, prviding hassle free usage.
Works with the gcc compiler providing a standardized development environment to programmers.
Fast code edting with fast support for project management.
Advanced support for templates and package management.
Easy debugging
DEV C++ homepage :: www.bloodshed.net/devcpp.html
Download...
Tags: C, Programming
Why C Should Be Regarded Low Level
My friends find it pretty hard to believe that C is a low level language. Now even I cannot say with full confidence that C is a low level language but it definitely is not high level. Here are quite a few points in support of the inclination of C to being a low level language rather than a high level language.
1.Firstly C can implement asm applications and codes. No other high level language can...
Tags: C, Programming
Another java IDE I Use
GEL
2. GEL
Screenshot ::
Advantages ::
Is a standard replacement to writig and executing java codes on a CLI.
Individual fnctions from a class can be tested.
Fast code edting with fast support for project management.
The editor, execution, project manager, file explorer all are seperate windows providing a helpful segregation.
code support for many other languages else than java.
GEL homepage ::...
A Java IDE I Use
BlueJ
The BlueJ environment was developed as part of a university research project about teaching object-orientation to beginners of the java programming language. Also it gives a good feeling as the IDE is totally made in Java.
All research and developments on the platform are maintained by a joint research group at Deakin University, Melbourne, Australia, and the University of Kent in Canterbury,...
The Factorial Code in Python
And then there is the very famous Python. Amazingly the factorial program in this case becomes even simpler. It is just a normal factorial code seemingly working fine for abnormally large integers as well!
fact=1
x=input("Enter the no :")
for x in range(1,x+1):
fact*=x
print "Factorial :"
print fact
Read More →
Tags: Programming, Python
The 25 Factorial in Java
In Java, the factorial of large numbers can be easily implemented in SE6 using the bigInteger class. The logic is the same as for finding factorials. The code goes as follows ::
import java.math.BigInteger;
import java.lang.*;
import java.util.Scanner;
class largenumber
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
System.out.println("Enter a number for factorial");
int...
Tags: Java, Programming

