Logo
  • Home
  • Classes
  • Conveying Computing
  • Exams
  • Fractal Gallery
  • Guides
  • Problem Sets
  • Syllabus

Change in Office Hours

Posted by Jonathan Burket on 20 Nov 2011 in Announcements | 1 comment

Hey everyone!

I was originally scheduled to have office hours on Tuesday from 6:30-8:00 pm, but because of a Thanksgiving-related time conflict, I will be instead holding office hours on Monday (November 21) from 5:30-7:30 at the same location as always (Davis Commons). Bring any questions you have about Java, Problem Set 8, or CS in general! I will not, however, be able to answer questions about Exam 2, which should instead be directed to Dave.

Hope to see you Monday evening!

-Jonathan

DrRacket Tips

Posted by Jonathan Burket on 4 Sep 2011 in Announcements | Comments Off

Hey everyone! During my office hours this week, I’ve noticed some people having several common issues with DrRacket. Here are a few tips that might help you out:

Use esc-p in the Interactions window to bring back code you have already run: Reusing code you have previously evaluated can save you lots of extra typing. This is particularly useful if you make a typo (like an extra letter or missing parenthesis) and want to bring back your last command to modify it slightly. (On Windows, alt-p also works for this.)

Press tab to automatically indent your code: Pressing the tab key on any line in the Definitions window (the top one) will automatically indent that line of code based on the code around it. This not only makes programs more legible, but can also help you understand what code is being evaluated in what order. If the automatic indenting looks odd, it is often a sign that you are missing a parenthesis.

Use the Definitions window (the top half of DrRacket) for large amounts of code and the Interactions window (bottom half) for testing and experimentation: The Interactions window is great for seeing how certain procedures behave and for running the code you have written, but it makes working on large pieces of code difficult. Make sure you work on your definitions and procedures in the Definitions window, then use the Interactions window only to run them.

Make sure you click Run every time you change your code: Whenever you run one of your procedures in the Interactions window, DrRacket uses the version of the procedure that you had in the Definitions window the last time you pressed Run. This means that you need to press Run every time you make a new change to your code in order to use that new code in the Interactions window. If you think you fixed a problem but keep getting an error, you may have forgotten to click Run. A keyboard shortcut for Run is ctrl-t.

If you have any additional DrRacket-related questions or discover any useful features, please leave a comment!

-Jonathan


Fall 2011

Register
Login

Help Schedule

(all in Davis Commons, except Dave's office hours in Rice 507)
Sundays, 1-6pm (Valerie/Joseph/Kristina)
Mondays, noon-1:30pm (Kristina)
Mondays, 1:15-2:00pm (Dave, Rice 507)
Tuesdays, 11am-noon (Dave, Rice 507)
Tuesdays, 5-8pm (Valerie/Jonathan)
Wednesdays, 5-6:30pm (Jiamin)
Thursdays, 9:45-11am (Dave, Rice 507)
Thursdays, 1-2:30pm (Joseph)
Thursdays, 4:30-7:30pm (Jonathan/Jiamin)
Fridays, noon-1:30pm (Peter)

Recent Posts

  • Course Wrap-Up
  • Class 41: The Cake of Computing
  • PS8 Submissions
  • Class 40: GuardRails, Big Data, and Secure Computation
  • Exam 2 Solutions

Recent Comments

  • David Evans on Problem Sets
  • jacob777 on Problem Sets
  • Prof. K.R. Chowdhary on Class 41: The Cake of Computing
  • Anon on Exams
  • Anon on Exams

Index

  • Classes
    • Class 1: Computing
    • Class 2: Language
    • Class 3: Rules of Evaluation
    • Class 4: Constructing Procedures
    • Class 5: Procedures Practice
    • Class 6: Programming with Data
    • Class 7: Programming with Lists
    • Class 8: Recursive List Procedures
    • Class 9: Consistent Hashing
  • Conveying Computing
  • Exams
  • Fractal Gallery
  • Guides
    • DrRacket Guide
    • Schemer’s Guide to Python
  • Problem Sets
    • Problem Set 0: Course Registration, Racket
    • Problem Set 1: Making Mosaics
      • PS1 Comments
    • Problem Set 2: Sequence Alignment
      • PS2 Comments
    • Problem Set 3: Limning L-System Fractals
      • PS3 – Comments
    • Problem Set 4: Constructing Colossi
      • PS4 – Comments
    • Problem Set 5: Wahoo! Auctions
      • PS5 Comments
    • Problem Set 6: Adventures in Charlottansville
      • PS6 Comments
    • Problem Set 7: Charming Snakes with Mesmerizing Memoizers
      • PS7 Comments
      • PS7 Responses
    • Problem Set 8 (Part 2): Typed Aazda
    • Problem Set 8: From Aazda to aaZda (Part 1)
      • PS8 Part 1 Comments
  • Syllabus
    • Course Pledge
  • Using These Materials

RSS BA Computer Science

RSS Jefferson’s Wheel

  • Dissecting Distribution Inference
  • Cray Distinguished Speaker: On Leaky Models and Unintended Inferences
  • Attribute Inference attacks are really Imputation
  • Congratulations, Dr. Jayaraman!

RSS Hacker News

  • Russhian Roulette: 1/6 chance of posting your SSH private key on pastebin
  • Diff Models – A New Way to Edit Code
  • Detect ChatGPT Generated Content
  • Kotlin Data Classes 101: Understanding Syntax, Usage and Inheritance
  • 30k lines of SwiftUI in production later

RSS Babbage

  • And it’s goodnight from us
  • Why 10, not 9, is better than 8
  • Future, imperfect and tense
  • The paperless dilemma
  • How to judge a ’bot; why it’s covered
cs1120 | RSS | Comments RSS | Book | Using These Materials | Login | Admin | Powered by Wordpress