[Algo] Second Meeting

by Anonymous | 6:34:00 PM in | comments (0)

Hello 1SIMC,

Here is the file for the second meeting.


Read more...

[Algo] Bilangan Prima

by Anonymous | 8:55:00 AM in | comments (2)

Hello 1SIMC,

I've uploaded the file about 'Bilangan Prima', I made it with VB and C# Console Application so you can do a comparison of them. Make sure you guys have installed the Visual Studio 2008 before to open the file.

Please review again the code over there
senyum

Check it out here.


Read more...

Coding Style Guide

by Anonymous | 10:49:00 AM in | comments (0)

Recently I just wondered about my coding style standard, is it a correct standard? Talking less about it ^^ I ever knew and heard about Pascal Casing, Camel Casing, Upper Case and also Hungarian Notation, but I never get to learn deeper into them. So what are those stuffs? Did you ever think that naming a type is a very important task? Yeah I guess so, for easy human-reading, good documentation for further use, and could represent itself in the semantic way.
Sometimes I have to go through and thoroughly to check an old poor coding standard, that's a really bothersome and cumbersome!
People can ignore that, but you, yes.. you can't.. You have to learn and implement a good coding standard..

Below is the explanation of Naming Conventions.
1. Pascal Casing
This convention capitalizes the first character of each word, eg. TestCounter
2. Camel Casing
This convention capitalizes the first character of each word except the first one, eg. testCounter
3. Upper case
Only use all upper case for identifiers if it consists of an abbreviation which is one or two characters long,
identifiers of three or more characters should use Pascal Casing instead. For Example:
public class Math
{
public const PI = ...
public const E = ...
public const feigenBaumNumber = ...
}

Here is the Naming Guidelines.
Generally the use of underscore characters inside names and naming according to the guidelines for Hungarian notation are considered bad practice.
Hungarian notation is a defined set of pre and postfixes which are applied to names to reflect the type of the variable. This style of naming was widely used in early Windows programming, but now is obsolete or at least should be considered deprecated. Using Hungarian notation is not allowed if you follow this guide.
And remember: a good variable name describes the semantic not the type.
An exception to this rule is GUI code. All fields and variable names that contain GUI elements like button should be postfixed with their type name without abbreviations. For example:

System.Windows.Forms.Button cancelButton;
System.Windows.Forms.TextBox nameTextBox;

Although this is just a simple article or perhaps a reminder, I hope it'll help us to implement a good coding standard.

The complete reference can be downloaded at here.


Read more...

Followers

Status

Latest Posts