Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

IDE vs. Notepad for App Development: Importance of Coding Standards, Assignments of Java Programming

This document evaluates the benefits of using an Integrated Development Environment (IDE) like Visual Studio Code versus using a simple text editor like Notepad for application development. It also discusses the importance of coding standards and their benefits to organizations. an evaluation of the debugging process in Visual Studio Code and an analysis of the pros and cons of using Notepad++ and Visual Studio Code.

What you will learn

  • How does Visual Studio Code help in the debugging process?
  • Why is it important for organizations to enforce coding standards?
  • What are the benefits of using an IDE like Visual Studio Code for application development?
  • How do coding standards help in code reuse and error detection?
  • What are the advantages of using Notepad for application development?

Typology: Assignments

2020/2021

Uploaded on 11/17/2021

jun_pham
jun_pham 🇻🇳

4

(1)

31 documents

1 / 28

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PROGRAM TITLE: BTEC-COMPUTING
UNIT TITLE: PROGRAMING
ASSIGNMENT NUMBER: 3
ASSIGNMENT NAME: IDE and DEBUGGING
SUBMISSION DATE: 14/06/2021
DATE RECEIVED: 01/06/2021
TUTORIAL LECTURER: NGUYEN MINH TRANG
WORD COUNT: 2744
STUDENT NAME: NGUYEN PHUONG NAM
STUDENT ID: BKC18316
MOBILE NUMBER: 0388898670
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download IDE vs. Notepad for App Development: Importance of Coding Standards and more Assignments Java Programming in PDF only on Docsity!

PROGRAM TITLE: BTEC-COMPUTING UNIT TITLE: PROGRAMING ASSIGNMENT NUMBER: 3 ASSIGNMENT NAME: IDE and DEBUGGING SUBMISSION DATE: 14/06/ DATE RECEIVED: 01/06/ TUTORIAL LECTURER: NGUYEN MINH TRANG WORD COUNT: 2744 STUDENT NAME: NGUYEN PHUONG NAM STUDENT ID: BKC MOBILE NUMBER: 0388898670

Summative Feedback: Internal verification:

I. Introduction

  • After assignment 1, I have been asked by my manager to develop a working application following my design and program specifications of the ordering system. My aim is to create a fully working, secure application that has been developed using an IDE and adheres to coding standards.
  • My system can help customers choose and order online more easily and conveniently.
  • My document portfolio includes:  Evidence of how the IDE was used to manage the development of your code.  An evaluation of developing applications using an IDE versus developing an application without using an IDE.  An evaluation of the debugging process in the IDE used and how it helped with development.  An evaluation of coding standards and the benefits to organizations of using them.
  • And software development details

II. Main content

1. Evidence of how the IDE was used to manage the development of your code. - I choose Visual Studio Code (VSCode) to develop Order Steak software. VS Code is not an IDE, but I have to choose it because:  Edit, build, and debug with ease  At its heart, Visual Studio Code features a lightning fast source code editor, perfect for day-to-day use. With support for hundreds of languages, VS Code helps you be instantly productive with syntax highlighting, bracket-matching, auto-indentation, box-selection, snippets, and more. Intuitive keyboard shortcuts, easy customization and community-contributed keyboard shortcut mappings let you navigate your code with ease.  For serious coding, you'll often benefit from tools with more code understanding than just blocks of text. Visual Studio Code includes built-in support for IntelliSense code completion, rich semantic code understanding and navigation, and code refactoring.  And when the coding gets tough, the tough get debugging. Debugging is often the one feature that developers miss most in a leaner coding experience, so we made it happen. Visual Studio Code includes an interactive debugger, so you can step through source code, inspect variables, view call stacks, and execute commands in the console.  VS Code also integrates with build and scripting tools to perform common tasks making everyday workflows faster. VS Code has support for Git so you can work with source control without leaving the editor including viewing pending changes diffs.  Make it your own  Customize every feature to your liking and install any number of third-party extensions. While most scenarios work "out of the box" with no configuration, VS Code also grows with you, and we encourage you to optimize your experience to suit your unique needs. VS Code is an open-source project so you can also contribute to the growing and vibrant community on GitHub.  Built with love for the Web  VS Code includes enriched built-in support for Node.js development with JavaScript and TypeScript, powered by the same underlying technologies that drive Visual Studio. VS Code also includes great tooling for web technologies such as JSX/React, HTML, CSS, SCSS, Less, and JSON.

2. An evaluation of developing applications using an IDE versus developing an application without using an IDE.

  • I will compare developing applications using an IDE (VSCode) versus developing an application without using an IDE (Notepad). I will compare the outstanding features that a programming tool needs to have good support for programmers. a. Higglight code Highlight code is a feature of some text editors that display text, especially source code displayed in different colors and fonts according to word categories. This feature reduces the need to write in a markup language to highlight a piece of code. Highlighting doesn't affect the meaning of the original text, it's just for easy-reading code readers, and writing editors. Let's compare one code snippets coded on two tools, VSCode (left) and Notepad (right).  When using VSCode, the code is highlighted so it is easy to read and follow  When using Notepad, code just like a normal piece of text, hard to read, hard to follow

b. Command hints during coding This feature supports code suggestions for programmers to make the coding process faster, reducing the rate of writing code with syntax errors.  VSCode suggests commands in the coding process, so write code is faster, less wrong.  Notepad does not suggest commands during the coding process, so the programmer has to remember the entire command syntax, sometimes leading to syntax errors.

 Notepad does not look for errors when writing code, so if the program fails, it will take a long time to find errors.

  • After comparing some functions, I have the following summary: VSCode Notepad Highlight code YES NO Command hints during coding

YES NO

Program debug support YES NO  We can see that VSCode has many outstanding features compared to Notepad. So, I chose Visual Studio Code to code my order system and I think it's the right choice.

3. An evaluation of the debugging process in the IDE used and how it helped with development. First you need to open a terminal in VS Code you can do this by using Once the terminal is opened enable your virtualenv if you named your virtualenv env then the command will look like $ source env/bin/activate We can now enable debugging in VSCode you can do this by using f5 or by clicking debug from menu tab the start with debugging When activated you should see a debug panel. The python package for VSCode comes with a number of pre-configured debug environments for different python frameworks. We need to set environment variables to debug our application, from the new debug panel

 The second control ignores method calls in that breakpoint and jumps to the next line of code  The third control follows the method calls in that line of code  The fourth control returns to the parent method call  The fifth control restarts the debugging session  The sixth control stops the debugging session.

4. An evaluation of coding standards and the benefits to organizations of using them. Different modules specified in the design document are coded in the Coding phase according to the module specification. The main goal of the coding phase is to code from the design document prepared after the design phase through a high-level language and then to unit test this code. Good software development organizations want their programmers to maintain to some well-defined and standard style of coding called coding standards. They usually make their own coding standards and guidelines depending on what suits their organization best and based on the types of software they develop. It is very important for the programmers to maintain the coding standards otherwise the code will be rejected during code review. Purpose of Having Coding Standards:  A coding standard gives a uniform appearance to the codes written by different engineers.  It improves readability, and maintainability of the code and it reduces complexity also.  It helps in code reuse and helps to detect error easily.  It promotes sound programming practices and increases efficiency of the programmers. Some of the coding standards are given below: Limited use of globals: These rules tell about which types of data that can be declared global and the data that can’t be. Standard headers for different modules: For better understanding and maintenance of the code, the header of different modules should follow some standard format and information. The header format must contain below things that is being used in various companies:  Name of the module  Date of module creation  Author of the module  Modification history  Synopsis of the module about what the module does  Different functions supported in the module along with their input output parameters  Global variables accessed or modified by the module Naming conventions for local variables, global variables, constants and functions:

Some of the naming conventions are given below:  Meaningful and understandable variables name helps anyone to understand the reason of using it.  Local variables should be named using camel case lettering starting with small letter (e.g. localData) whereas Global variables names should start with a capital letter (e.g. GlobalData). Constant names should be formed using capital letters only (e.g. CONSDATA).  It is better to avoid the use of digits in variable names.  The names of the function should be written in camel case starting with small letters.  The name of the function must describe the reason of using the function clearly and briefly. Indentation: Proper indentation is very important to increase the readability of the code. For making the code readable, programmers should use White spaces properly. Some of the spacing conventions are given below:  There must be a space after giving a comma between two function arguments.  Each nested block should be properly indented and spaced.  Proper Indentation should be there at the beginning and at the end of each block in the program.  All braces should start from a new line and the code following the end of braces also start from a new line. Error return values and exception handling conventions: All functions that encountering an error condition should either return a 0 or 1 for simplifying the debugging. On the other hand, Coding guidelines give some general suggestions regarding the coding style that to be followed for the betterment of understandability and readability of the code. Some of the coding guidelines are given below: Avoid using a coding style that is too difficult to understand: Code should be easily understandable. The complex code makes maintenance and debugging difficult and expensive. Avoid using an identifier for multiple purposes: Each variable should be given a descriptive and meaningful name indicating the reason behind using it. This is not possible if an identifier is used for multiple purposes and thus it can lead to confusion to the reader. Moreover, it leads to more difficulty during future enhancements. Code should be well documented: The code should be properly commented for understanding easily. Comments regarding the statements increase the understandability of the code. Length of functions should not be very large: Lengthy functions are very difficult to understand. That’s why functions should be small enough to carry out small work and lengthy functions should be broken into small ones for completing small tasks.

  • Customers fill in the information in the registration form and click “Submit” button. The system will save account information.

b. Login.

  • After registering you will have an account you to use that account to access my order system.
  • If the information you entered is incorrect, my system will notify you to be like: