Introduction to Computer Science, IDC Herzliya


  • News
  • Lectures
  • Recitations
    • Week 1, Introduction
    • Week 2, Data and Variables
    • Week 3, Flow Control
    • Weeks 4-5, arrays and classes>
      • Arrays
      • Writing classes
    • Week 6>
      • VIC
      • Exceptions
    • Week 8, Javadoc + TicTacToe
    • Week 9, Algorithms
    • Week 10, collections and text
    • Week 11, Inheritance
    • Week 12, Polymorphism
  • Homework
    • Exercise 1>
      • Exercise 1
      • Solution 1
    • Exercise 2>
      • Exercise 2
      • Solution 2
    • Exercise 3, Flow Control>
      • Exercise 3
      • Solution 3
    • Exercise 4, arrays and writing classes I>
      • Exercise 4
      • Solution 4
    • Exercise 5 (VIC)>
      • Exercise 5
      • Solution 5
    • Exercise 6 (previously 5), arrays and writing classes II>
      • Exercise 6
      • Solution 6
    • Exercise 7 (algorithms)>
      • Exercise 7
      • Solution
    • Exercise 8>
      • Exercise 8
      • Solution 8
    • Exercise 9>
      • Exercise 9
      • Solution
    • Exercise 10>
      • Exercise 10
      • Solution
  • Questions and Answers
    • HowTo
    • Rules
    • Forum
  • Syllabus
  • Grades
  • Team
  • Resources
    • Links and Books
    • Homework Submission Guidelines
    • Individual Work Policy
    • Programming Style Guidelines
    • Soft Landing
    • Java Development Environment

Styling Conventions

10/24/2009

0 Comments

 
Guys,


The styling conventions you must conform with can now be found on Documentation > Styling Conventions. It's taken from Sun's site. 
The parts that are relevant for exercise 1 are:

1 Introduction
4 Indentation
6 Declarations
7 Statements:
   7.1 Simple Statements
   7.2 Compound Statements
   7.6 while Statements
8 White Space
9 Naming Conventions (only the "variables" line). 


Do note, that despite the part about one-character variable names mentioned in the document, what I told you in class is the rule: no single character variable names.
You should study the rest of the document for future exercises. I just gave you what's relevant for exercise 1 to save you time.
Remember that styling conventions is an important part of programming, so points will be taken off for not following the conventions.
Have a great week,

Boaz.


 


Comments




Leave a Reply

    Author

    Intro2CS Staff

    Archives

    May 2010
    February 2010
    January 2010
    December 2009
    November 2009
    October 2009
    September 2009

    Categories

    All

    RSS Feed




Create a free website with Weebly