AP Computer Science Programming Conventions. Why coding conventions? 80% of the lifetime cost of a piece of software goes to maintenance. Hardly any.

Slides:



Advertisements
Similar presentations
Picture It Very Basic Game Picture Pepper. Original Game import java.util.Scanner; public class Game { public static void main() { Scanner scan=new Scanner(System.in);
Advertisements

Commenting and Naming Conventions
Computer Science 209 Testing With JUnit. Why Test? I don ’ t have time, I ’ ve got a deadline to meet The more pressure I feel, the fewer tests I will.
1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
1 Java coding conventions Lecture 2. 2 Please read Not only on assignment 1, but always. 80% of the lifetime.
© Chinese University, CSE Dept. Software Engineering / Software Engineering Topic 1: Software Engineering: A Preview Your Name: ____________________.
JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. OBJECTIVES FOR THIS UNIT Upon completion of this unit, you should be able to: Explain the Java virtual machine.
JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. GCOC – A.P. Computer Science A College Board Computer Science A Topics Covered Program Design - Read and understand.
Important concepts in software engineering The tools to make it easy to apply common sense!
1 ICS103 Programming in C Lecture 4: Data Types, Operators & Expressions.
Unit 251 Implementation and Integration Implementation Unit Testing Integration Integration Approaches.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Software Development Software Life Cycle UML Diagrams.
COMP 110 Introduction to Programming Mr. Joshua Stough August 22, 2007 Monday/Wednesday/Friday 3:00-4:15 Gardner Hall 307.
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.
Computer Programming and Problem Solving Ke shuwei.
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
6 Steps of the Programming Process
Software Engineering Chapter 8 Fall Analysis Extension of use cases, use cases are converted into a more formal description of the system.Extension.
GCSE OCR 3 A451 Computing Professional standards
Program Design CMSC 201. Motivation We’ve talked a lot about certain ‘good habits’ we’d like you guys to get in while writing code. There are two main.
CSE 219 Computer Science III Testing. Testing vs. Debugging Testing: Create and use scenarios which reveal incorrect behaviors –Design of test cases:
Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation
JAVA BASICS: Variables and References SYNTAX, ERRORS, AND DEBUGGING.
Objected Oriented Programming & Design JAVA Shishir Gupta (704) (704)
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
PREPARED BY: Hadeel El-Genedy SOFTWARE ARCHITECTURE COURSE PRE-MASTERS STUDIES COMPUTER SCIENCE DEPARTMENT CAIRO UNIVERSITY Software Product Line.
Testing. 2 Overview Testing and debugging are important activities in software development. Techniques and tools are introduced. Material borrowed here.
Java Coding Standards and Best Practices Coding Standards Introduction: After completing this chapter, you will able to keep your code up to standards.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
DEBUGGING. BUG A software bug is an error, flaw, failure, or fault in a computer program or system that causes it to produce an incorrect or unexpected.
Department of Computer Science & Software Engineering Software Engineering Economics (ECON 403)
Building java programs chapter 6
CSci 111 – computer Science I Fall 2014 Cynthia Zickos WRITING A SIMPLE PROGRAM IN JAVA.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
MavHome Software Development Guidelines G. Michael Youngblood Chief Scientist, MavHome The University of Texas at Arlington June 8, 2003.
Course Introduction CEN 5016 Software Engineering Dr. David A. Workman School of EE and Computer Science January 9, 2007.
Code Conventions Tonga Institute of Higher Education.
University of Limerick1 Computer Applications CS 4815 Robocode.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Writing Maintainable code Dr. Susan McKeever DT228/3 GUI Programming.
KUFA UNIVERSITY Department of Computer Science 09/12/2015.
PC204 Lecture 5 Programming Methodologies Copyright 2000 by Conrad Huang and the Regents of the University of California. All rights reserved.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
How to Test Methods Computer Science 3 Gerb Objective: Test methods properly.
Inheritance Examples.
How to Improve Your Grades Are your grades rather low? Maybe it's the beginning of school, and your not getting off to a good start. Well, this easy to.
1 CS 381 Introduction to Discrete Structures Lecture #1 Syllabus Week 1.
1 Introduction to Software Engineering Wen-Yang Lin Dept. of Computer Science and Information Engineering National University of Kaohsiung February, 2007.
CS1010: Programming Methodology Preparing for Practical Exam (PE)
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Compilers and Interpreters
Training proposal University of Macau, Faculty of Science and Technology, Software Engineering, Year 2 Programming Language Architecture I, SFTW241 Class.
© 2011 Pearson Education, publishing as Addison-Wesley Chapter 1: Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science.
1 Programming and problem solving in C, Maxima, and Excel.
© Chinese University, CSE Dept. Software Engineering / Software Engineering Topic 1: Software Engineering: A Preview Your Name: ____________________.
1 Computer Science 1021 Programming in Java Geoff Draper University of Utah.
AP Computer Science. January 5, 2016 PowerPoint – Begin Array’s R7.1 R7.2 R7.6 E7.1 All this homework due Wednesday 1/6. Submit through Aspen pages Read.
Introduction to Object Oriented
ICS103 Programming in C Lecture 4: Data Types, Operators & Expressions
APCS Grading Day A User’s Manual.
3 ring binder and notebook paper
3 ring binder and notebook paper
CS210 Intermediate Programming with Data Structures
Chapter 1: Computer Systems
Unit 6 Assignment 2 Chris Boardley.
Seating “chart” Front Back 4 rows 5 rows 5 rows 4 rows 2 rows 2 rows
Tonga Institute of Higher Education
Office philosophy / AHS+Associates Student Rights Who is Mr. Stilley?
Software Engineering Lecture #28
Presentation transcript:

AP Computer Science Programming Conventions

Why coding conventions? 80% of the lifetime cost of a piece of software goes to maintenance. Hardly any software is maintained for its whole life by the original author. Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly. If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.

No sloppiness allowed!

Project 1 ● Static methods, printlns only ● More syntax practice ● Graded on ○ external correctness -- output looks right ○ internal correctness -- methods capture structure ○ style -- follows coding conventions ● Due next Wednesday 9/30

Reminder: late policy ● 6 " free " late days for the year ● -10% per additional day (ouch) ● Can turn in up to 4 days late, after that 0!!

Academic integrity ● Do talk about concepts ● Take a break before coding ● Copied code is very easy to spot! ● Never talk in Java ● Never show your assignment code (look at exercises together!)