Monday, February 4, 2013

Subversion Demo #2 error fixed

There was an error in the Subversion Demo #2 section of the notes.  I forgot to include a "svn add" command.  If you followed it and were wondering why Hello.java did not get committed to the repository when you typed "svn commit", that's why.  Subversion did not know it was supposed to be tracking Hello.java and needed to be told to.  The notes have been updated.

Code Conventions for Java

Checkstyle complains about all sorts of details in your code.  But, where is it getting all of these rules?  Most of them are from Code Conventions for the Java Programming Language.  The full set of available tests can be found on the Checkstyle web page, but many of them don't apply to this class and have been disabled.

New to Vim?

If you decided to try out Vim/vi and want a good introduction, I recommend Vi For Smarties.  So that Vim works well with Java's indentation style, I recommend putting the following in the ".vimrc" (Mac) or "_vimrc" (Windows) file in your home directory:

set expandtab shiftwidth=4 tabstop=4 autoindent

Editing, propedit, and commit

A few people have gotten confused by this.  When you edit a temporary file as part of "svn propedit" or "svn commit", you have to quit the editor when you're done.  Saving and closing the file isn't enough.

Sunday, February 3, 2013

Bonus office hours this Monday, 9–9:30am

Javac not working?  Confused by Subversion?  If you want to come to office hours Monday but can't because you have class at 11am, I'll be hanging around the lecture hall starting around 9am before class.

Subversion server outage (Update: back up!)

A file server at CIMS that the Subversion server depends on is down.  Connections to subversive.cims.nyu.edu on both the web interface and with the command line client are hanging for everyone.

UPDATE: As of 1:40 PM EST 2013–02–03, it's back up.

Friday, February 1, 2013

To-do list for week one

I asked you to do a lot of things this week.  Here they are, collected:
  1. Read the first three chapters of Version Control by Example (VCBE).
  2. Obtain the required textbook and, optionally, the optional textbook.  See the course notes for details.
  3. Set up the JDK and Subversion on your computer.  Add the JDK to your path if you're using Windows.  See sections 2.2–2.4 in the lecture notes for details.
  4. Set up a text editor suitable for editing source code.  Set the EDITOR (Mac) or SVN_EDITOR (Windows) environment variables so that the editor opens automatically when it is necessary.  See sections 2.5–2.7 in the lecture notes for details.
  5. Make sure all of the above worked by completing homework 1.
If you're confused about any of this, and reading the lecture notes, reading the assigned chapters of Version Control by Example, and watching the video of the demo in the first lecture does not help, email me, and I'll try to help.  I also have office hours after lecture on Monday.