Free Essay

Coding Standards for Vb.Net

In: Computers and Technology

Submitted By malik3435
Words 574
Pages 3
Coding Standards:

Coding Standards are a set of guidelines for a specific programming language that recommend programming style, practices and methods for each aspect of a piece program written in this language.

* Your code will have a consistent look, so that readers can better focus on content, not layout. * Readers understand your code more quickly because they can make assumptions based on previous experience. * You can copy, change, and maintain the code more easily. * You help ensure that your code demonstrates "best practices" for Visual Basic.


1. Naming Conventions * Do not use "My" or "my" as part of a variable name. This practice creates confusion with the My objects. * You do not have to change the names of objects in auto-generated code to make them fit the guidelines.

2. Layout Conventions * Insert tabs as spaces, and use smart indenting with four-space indents. * Use Pretty listing (reformatting) of code to reformat your code in the code editor. * Use only one statement per line. Don't use the Visual Basic line separator character (:). * Avoid using the explicit line continuation character "_" in favor of implicit line continuation wherever the language allows it. * Use only one declaration per line. * Add at least one blank line between method and property definitions.

3. Commenting Conventions * Put comments on a separate line instead of at the end of a line of code. * Start comment text with an uppercase letter, and end comment text with a period. * Insert one space between the comment delimiter (') and the comment text.
' Here is a comment. * Do not surround comments with formatted blocks of asterisks.

4. Program Structure * When you use the Main method, use the default construct for new console applications, and use My for command-line arguments.

* Your code will have a consistent look, so that readers can better focus on content, not layout. * Readers understand your code more quickly because they can make assumptions based on previous experience. * You can copy, change, and maintain the code more easily. * You help ensure that your code demonstrates "best practices" for Visual Basic.

5. Language Guidelines

a) String Data Type * To concatenate strings, use an ampersand (&). * To append strings in loops, use the StringBuilder object.

b) Relaxed Delegates in Event Handlers Do not explicitly qualify the arguments (Object and EventArgs) to event handlers. If you are not using the event arguments that are passed to an event (for example, sender as Object, e as EventArgs), use relaxed delegates, and leave out the event arguments in your code:

c) Unsigned Data Type * Use Integer rather than unsigned types, except where they are necessary.

d) Arrays * Use the short syntax when you initialize arrays on the declaration line.

e) Use the With Keyword
When you make a series of calls to one object, consider using the With keyword:

f) Use the Try...Catch and Using Statements when you use Exception Handling
Do not use On Error Goto.

g) Use the IsNot Keyword
Use the IsNot keyword instead of Not...Is Nothing.

h) Using Shared Members
Call Shared members by using the class name, not from an instance variable

i) Use XML Literals

* Use XML literals to create XML documents and fragments instead of calling XML APIs directly. * Import XML namespaces at the file or project level to take advantage of the performance optimizations for XML literals. * Use the XML axis properties to access elements and attributes in an XML document.

Similar Documents

Free Essay

Barcode License Plate Recognition

...ABSTRACT Barcode License Plate Recognition (BLPR) is a system capable of recognising number plates by scanning their barcodes for various different uses. A sophisticated barcode reader and algorithm converts the barcodes, into identifiable data. This allows the capture of critical information such as the registration of every vehicle entering a site or crossing the red light at traffics. This information can be passed to the police to assist in the pursuit and identification of contraventions. Visual proof of traffic contraventions with the corresponding time and date information can be provided as evidence and to avoid disputes. Using information supplied by the Driver Vehicle Licensing Authority (DVLA), because of our approved operator status, it is possible to identify the registered keeper of a vehicle and process the contravention automatically. The BLPR is to help eradicate road accidents on our roads which has become a headache to the government since all efforts are proving futile. It is been developed with Visual Basic.Net and Structured Query Language(SQL) Server using the Waterfall model. All data gathered by the BLPR system is stored in a database for future analysis and reporting. This project will provide an efficient way of combating crime and making the work of the MTTU easier. ACKNOWLEDGEMENT Our greatest and foremost thanks goes to God the Almighty Father. To Him be the glory for the great things he has done. It is just by His grace and guidance......

Words: 6502 - Pages: 27

Premium Essay

Sem 5 Bca

...University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune Pattern 2008, w.e.f. 2010-11 Semester – V Course No. 501 502 503 504 505 506 Subject Name VB.NET or VB.NET Programming Internet Programming and Cyber Law Principals of Marketing Core Java Project work ( VB ) Computer Laboratory and Practical Work (.NET + Core Java ) Semester – VI Course No. 601 602 603 604 605 606 Subject Names E-Commerce Multimedia Systems Introduction to Syspro And Operating Systems Advance Java Project Work (Banking & Finance, Cost Analysis, Financial Analysis, Payroll, EDP, ERP etc.) Computer Laboratory and Practical Work (Multimedia + Advanced Java) University of Pune, T.Y. B.C.A., Semester V & VI 2 T.Y. B.C.A. Semester V Subject Name -: VB.NET or VB.NET Programming. Course Code -: 501 Sr. No. 1. TOPICS .NET Framework (Introduction to .NET Framework) 1.1 Introduction 1.2 CLR 1.3 CTS 1.4 MSIL 1.5 Garbage Collection 1.6 Assemblies 1.6.1 Assembly content 1.6.2 Assembly types VB.Net Programming 2.1 Windows Forms 2.1.1. Setting Title Bar Text 2.1.2. Seeing the initial position of a form 2.1.3. Minimizing/Maximising a form 2.1.4. Working with multiple forms 2.1.5. Setting the StartUp Form 2.1.6. Adding controls to a form 2.1.7. Setting properties at Design Time...

Words: 3973 - Pages: 16

Premium Essay


...India Community Initiative .NET Tutorial for Beginners Special thanks to the following who have put in sincere efforts to write and bring this tutorial together. Akila Manian (MVP) | Ajay Varghese (MVP) | Amit Kukreja | Anand M (MVP) | Aravind Corera (MVP) | Arvind Rangan | Balachandran | Bipin Joshi (MVP) | C S Rajagopalan | G Gokulraj | G Arun Prakash | Gurneet Singh (MVP) | Kunal Cheda (MVP) | Manish Mehta (MVP) | Narayana Rao Surapaneni (MVP) | Pradeep | Saurabh Nandu (MVP) | Shankar N.S. | Swati Panhale | Reshmi Nair Content 1. Getting Ready .......................................................................................... 4 1.1 Tracing the .NET History..............................................................................4 1.2 Flavors of .NET...........................................................................................5 1.3 Features of .NET....................................................................................... 10 1.4 Installing the .NET Framework SDK............................................................. 12 2. Introduction to the .NET Initiative and the .NET Platform ...................... 15 2.1 Understanding the Existing Development Scenario........................................ 15 2.2 Challenges faced by developers.................................................................. 18 2.3 NET Philosophy / Where does .NET fit in? .................................................... 21 2.4......

Words: 22096 - Pages: 89

Free Essay

Enterprice Architechture

...ASSIGNMENT 1 Technologies which can be used in presentation component * WPF The Windows Presentation Foundation is Microsoft’s next generation UI framework to create applications with a rich user experience. WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework. Its vector based rendering engine uses hardware acceleration of modern graphic cards. This makes the UI faster, scalable and resolution independent. The advantages of WPF applications include, * Resolution Independence * Hardware Acceleration * Rich Composition and Customization * Easy Deployment: As WPF Applications come in all shapes and sizes, and the most appropriate business arrangements for such projects needs to be determined on a case-by-case basis together with the customers. It is essential to get relevant license from the Microsoft in order to use this technology because it is a proprietary technology. * Silverlight Silverlight is a powerful development tool for creating engaging, interactive user experiences for Web and mobile applications. Silverlight is a free plug-in, powered by the .NET framework and compatible with multiple browsers, devices and operating systems, bringing a new level of interactivity wherever the Web works. In Silverlight applications, user interfaces are declared in Extensible Application Markup Language (XAML) and programmed using a subset of the .NET Framework. Advantages of Silverlight include...

Words: 1248 - Pages: 5

Free Essay


...Sockets 1. Introduction It has been a long way since we started our first tutorial. We learned about Visual Studio and many of its powerful features, we can outline a program and gather requirements, we implemented the fundamental programming concepts in the VB.NET and utilised the facilities that have already been provided for us by the .NET Framework. We can design and implement some very complex programs, but there is one thing that we still cannot do. We cannot make our program talk to another program on another computer. That is why in the following tutorial we are going to introduce the concept of sockets, which is one of the building blocks of the World Wide Web as we know it. Although it will not be strictly finance related as previous tutorials I will try and draw some parallel between the programming concepts and the ideas in the finance industry. Due to the volume, there will be no practical implementation after the concepts have been introduced. Nevertheless, a project will be given for the reader to practice what he/she has learned. 2. Sockets A socket is a communications connection point (endpoint) that you can name and address in a network. They allow you to exchange information between processes on the same machine or across a network, distribute work to the most efficient machine, and they easily allow access to centralized data (, 2013). If you imaging that your colleague is computer (computer) and you are also a computer, and......

Words: 4255 - Pages: 18

Free Essay

Counseling Management System

...Company Profile Star Wire (India) Limited, one of the leading Mini Steel Plant is engaged in the manufacturing of Alloy Steels, Stainless Steel and Special Steels for diversified engineering application in shape of castings, forging and rolled products. Plant is fully equipped with modern equipment and testing facilities which have created confidence and ability for manufacturing various sophisticated grades of steel conforming to international and National standards. It has its own research and development center to facilitate the manufacturing activities and also catering to engineering and manufacturing industries for failure analysis and other analytical activities. The plant is situated in Ballabgarh, about 37 KMs from Delhi - Capital of India on Main Mathura Road (NH No. 2). The location is at easy approach by Air, Rail and Road. ABSTRACT The project “Counseling Management system” is to exploit the computer technology with Internet Facility and all its aspects as necessity arises. The proposed project will be a web-based portal to provide support and services to the Students of participating in university counseling. The project will make available the Students care services of member colleges to its Students through the Internet. Through this proposed website the Students can register herself and take Admissions and support accordingly. The project “Counseling management system” is specially associated with online Admission procedure......

Words: 9525 - Pages: 39

Free Essay


...TERM PAPER System Software Topic: Compiler Generator Name: Animesh Poddar Section: K1R04 Roll: A07 Registration no.: 11003532 Course Code: CSE318 Submitted to: Ms. Himanshi Introduction In the field of computer sciences, we define a compiler-compiler or compiler generator as a tool which creates a parser, interpreter, or compiler from some form of formal description of a language and machine. The earliest and still most common form of compiler-compiler is a parser generator, whose input is a grammar (usually in BNF) of a programming language, and whose generated output is the source code of a parser often used as a component of a compiler. Similarly, code generator-generators (such as J Burg) exist, but such tools have not yet reached maturity. The ideal compiler-compiler takes a description of a programming language and a target instruction set architecture, and automatically generates a usable compiler from them. In practice, the state of the art has yet to reach this degree of sophistication and most compiler generators are not capable of handling semantic or target architecture information. History The first compiler-compiler to use that name was written by Tony Brooker in 1960 and was used to create compilers for the Atlas computer at the University of Manchester, including the Atlas Auto code compiler. However it was rather different from...

Words: 2951 - Pages: 12

Premium Essay


...User Interface Design   Coverage: This chapter teaches you to use additional controls to build application forms.  These controls include:  TextBox, MaskedTextBox, RichTextbox, GroupBox, CheckBox, RadioButton, and PictureBox.  You will learn how to lay out a form and set various properties to change the appearance and behavior of controls.  Programming topics include clearing TextBox controls, changing text color, concate   INTRODUCTION Chapter 2 In-Class Project The in-class project for this chapter uses numerous controls.  You will build a project form that is similar to that shown below.  It will include the following new controls:         TextBox         MaskedTextBox         GroupBox         RadioButton         CheckBox         PictureBox GroupBox Control A GroupBox control is used to group or contain other controls.  It is used to organize a form into different sections and this can make the form easier for an application user to use.         Name property – most of the time you will not bother to name a GroupBox control because they are rarely referred to when you write programming code – if you were to name the control, a name such as StudentInformationGroupBox would be appropriate.          Text property – displays the words in the upper left corner of the GroupBox control.  If you leave the Text property blank, the GroupBox looks like a rectangle.   The form above has three GroupBox controls with Text property settings of Student......

Words: 6365 - Pages: 26

Free Essay

Wp7 for Android

...Microsoft6/6/2011Rev 1.0 | | Windows Phone 7 Guide for Android Application Developers | | About this Document 4 Target Audience 4 Conventions Used in this Document 4 Chapter 1: Introducing Windows Phone 7 Platform to Android Application Developers 5 The Developer Tools 5 Windows Phone 7 Architecture 5 Comparing the Programming Stack of Windows Phone 7 with Android 7 Summary 11 Related Resources 11 Chapter 2: User Interface Guidelines 12 Designing the Application Interface 13 Application User Interface Design 14 Comparing Windows Phone 7 and Android Navigation 18 Windows Phone 7 Frame and Page Structure 19 Application Templates 21 Summary 21 Related Resources 21 Chapter 3: The Developer and Designer Tools 23 A Comparison of Android and Windows Phone 7 Tools 23 Development Life Cycle and Windows Phone 7 Developer Tools 24 The UI Design Tools 26 Building Applications 33 Debugging 34 Summary 38 Chapter 4: C# programming 39 Managed Programming 40 A Comparison between C# Features and Java Classes 41 A Comparison of Important Class Libraries 51 The New features of C# 54 Comparing API Documentation Tools 58 NDoc 58 NDocs vs. Javadoc 61 Summary 61 Related Resources 62 Chapter 5: A Comparison of Application Life Cycles in Windows Phone 7 and Android 63 Multitasking in Android and Windows Phone 7 63 Tombstoning of Applications in Windows Phone 7 64 Life Cycle of a Windows Phone 7 Application...

Words: 19181 - Pages: 77

Free Essay

Virtual Classroom

...TABLE OF CONTENTS Sr. Content Page no No 1. INTRODUCTION 6 1.1 Abstract 1.2 Problem Definition 1.3 Scope of Project 2. REVIEW OF LITERATURE 8 3. SOFTWARE REQUIREMENT SPECIFICATION 18 4. EXISTING SYSTEM 22 5. PROPOSED SYSTEM 26 6. TIMELINE CHART OF PROJECT` 32 7. FUTURE SCOPE 33 8. CONCLUSION 34 9. REFERENCES 35 1. INTRODUCTION 1.1 Abstract Virtual Classroom represents an innovative shift in the field of learning, providing rapid access to specific knowledge and information. It represents an interface between the students and a professor and provides personalized learning materials to the users. It offers a possibility to the attendees to share different resources at once and work with them as if they were at the same place where (real) resources are. In the system design, we use agents as entities that work on different tasks in the system. A set of agents of the same type is responsible for handling different users and their requests. The cooperation among agents is established through the act of exchanging messages. A wide variety of classroom techniques are being advocated to increase learning: active learning, collaboration, integration of......

Words: 7999 - Pages: 32

Premium Essay

Immunization Records Mgt System

...BUGANDA ROYAL INSTITUTE OF BUSINESS AND TECHINICAL EDUCATION - MENGO AUTOMATED IMMUNISATION RECORDS MANAGEMENT SYSTEM A CASE STUDY OF NSANGI HEALTN CENTER III A RESEARCH REPORT BY NAMATOVU ANGELLA BR/DCS/8045/11 A RESEARCH REPORT SUBMITTED TO THE DEPARTMENT OF COMMUNICATION AND EDUCATION IN PARTIAL FULFILMENT FOR THE AWARD OF DIPLOMA IN COMPUTER SCIENCE OF BUGANDA ROYAL INSTITUTE OF BUSINESS AND TECHNICAL EDUCATION JULY 2013 DECLARATION I hereby declare that this research which submitted to the department of communication and education of Buganda Royal institute is my original work and it is and it has never been submitted to any other degree/diploma award institute. Students Name: NAMATOVU ANGELLA Reg No:BR/DCS/8045/11 Date:___________________________ Approval I approve that this research report has been under my supervision and it is ready for Submission to the academic council of Buganda Royal Institute. Supervisor’s Name: Mr. SSekuwanda Henry Signature: ____________________________ Date: ___/07/2013 DEDICATION I dedicate this research report firstly my mother who has sacrificed whatever My siblings and my friends at Buganda Royal Institute for both moral and financial support they have provided. May the almighty God Reward them accordingly. ACKNOWLEDGEMENT I would like to acknowledge this piece of work most......

Words: 7325 - Pages: 30

Premium Essay

About Google

...Even Semester 2009/2010 | Erlina Juliani Kalangi | Ida Ayu Kartika | international management | “The nonmarket environment and Issues in the google inc.” | DAFTAR ISI Daftar Isi 02 Executive Summary 04 History of Google 04 Google Timeline 05 The vision, Mission and Focus of Google 19 Google Management 19 Uses of Google 28 Market Share 29 Usage Application of Google 29 Share of Advertiser 30 Google For Education 30 Google and User 31 The Google Culture 31 About Google Office 32 Google Workspace 32 Top 10 Reasons to Work at Google 33 SWOT Analysis 33 * Strengths 33 * Weaknesses 34 * Opportunities 35 * Threats 35 * Recommendations 36 Google Product Development Process 37 Google Ethics 37 Criticism of Google 39 Issues in Google life cycle 39 Another Issues in Google 40 Copyright Issues 40 Privacy Issues 41 Why won’t Google be affected by the crisis? 42 How do Google measure success of a new product? 42 Google deal with the host of privacy issues associated with its application 43 Antitrust 44 Google and Antitrust 44 Some spesific activities have been made for anti trust claims 45 The Issues are associated with the launch of Google Health 45 * The look of Google Health 46 * Screen shot deeper on the application 46 * The Issues of google health 46 * Google Response 47 The issues might arise in Google’s ownership of 47 ...

Words: 12601 - Pages: 51

Premium Essay

B2B Advantages and Disadvantages

...This page intentionally left blank Te n t h E d i t i o n MODERN DATABASE MANAGEMENT Editorial Director: Sally Yagan Editor in Chief: Eric Svendsen Executive Editor: Bob Horan Editorial Project Manager: Kelly Loftus Editorial Assistant: Jason Calcano Director of Marketing: Patrice Lumumba Jones Marketing Manager: Anne Fahlgren Marketing Assistant: Melinda Jensen Senior Managing Editor: Judy Leale Project Manager: Becca Richter Senior Operations Supervisor: Arnold Vila Operations Specialist: Ilene Kahn Senior Art Director: Jayne Conte Cover Designer: Suzanne Behnke Cover Art: Fotolia © vuifah Manager, Visual Research: Karen Sanatar Permissions Project Manager: Shannon Barbe Media Project Manager, Editorial: Denise Vaughn Media Project Manager, Production: Lisa Rinaldi Supplements Editor: Kelly Loftus Full-Service Project Management: PreMediaGlobal Composition: PreMediaGlobal Printer/Binder: Edwards Brothers Cover Printer: Lehigh-Phoenix Color/Hagerstown Text Font: Palatino Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on appropriate page within text. Microsoft® and Windows® are registered trademarks of the Microsoft Corporation in the U.S.A. and other countries. Screen shots and icons reprinted with permission from the Microsoft Corporation. This book is not sponsored or endorsed by or affiliated with the Microsoft Corporation. Copyright © 2011, 2009, 2007, 2005, 2002...

Words: 193467 - Pages: 774

Premium Essay

Dental Clinic

...R. Ramirez Dental Clinic Software for Patient Transaction, Appointment and Transaction Record System A Project Study Presented to the College of Informatics and Computing Sciences Batangas State University Batangas City In Partial Fulfillment of the Requirements for the Course CpE410– Software Engineering By: Cultura, Kristine Dimaano, Jhun Vincent D. Ulep, Joanna Paula B. IT-3205 2015-2016 Acknowledgement First of all, the researchers would like to thank God for giving them strength and knowledge in the development of R. Ramirez Dental Clinic Software for the Patient Transaction, Schedule and Sales Record System, because without Him this project might not be successful and possible. Second, the researchers also acknowledge the love and understanding of their parents which help them believe in themselves, guided and supported the project until the end. Third, we researchers would like to express our deepest appreciation to all the cooperation, initiation and passion of each team member comprises of Joanna Paula Ulep, Jhun Vincent Dimaano and Kristine Cultura and to those who provided them the possibility to complete this project. An appreciation and gratitude we give to our instructor Engr. Jennifer L. Marasigan, who also encourage us do this project and with that the researchers develop a system that would help small businesses to generate database and transactions. To our client Dr. Roldan Ramirez, our genuine gratefulness to him for......

Words: 7365 - Pages: 30

Premium Essay


...------------------------------------------------- Top of Form Bottom of Form CORPORATE HISTORY 1995-1997 1995 * Larry Page and Sergey Brin meet at Stanford. (Larry, 22, a U Michigan grad, is considering the school; Sergey, 21, is assigned to show him around.) According to some accounts, they disagree about almost everything during this first meeting. 1996 * Larry and Sergey, now Stanford computer science grad students, begin collaborating on a search engine called BackRub. * BackRub operates on Stanford servers for more than a year—eventually taking up too much bandwidth to suit the university. 1997 * Larry and Sergey decide that the BackRub search engine needs a new name. After some brainstorming, they go with Google—a play on the word “googol,” a mathematical term for the number represented by the numeral 1 followed by 100 zeros. The use of the term reflects their mission to organize a seemingly infinite amount of information on the web. Back to top 1998 August * Sun co-founder Andy Bechtolsheim writes a check for $100,000 to an entity that doesn’t exist yet: a company called Google Inc. September * Google sets up workspace in Susan Wojcicki’s garage at 232 Santa Margarita, Menlo Park. * Google files for incorporation in California on September 4. Shortly thereafter, Larry and Sergey open a bank account in the newly-established company’s name and deposit Andy Bechtolsheim’s check. * Larry and Sergey hire Craig......

Words: 11054 - Pages: 45