Docsity

Lecture Slides on Uninitialized Variable - Programming Languages | CS 403, Study notes of Programming Languages

Toggle sidebar
bg1
1
Fall 2002 CS 403 Class Notes Page 1
CS 403 -9/17/02
•Today
–Hand back “Uninitialized variable” assignment
–Discuss issues in the assignment
–Next writing assignment
–Chapter 3: ALGOL-60
•Reading Assignment
–Chapter 3.1-3.5
•The Forum is available.
–Other questions and answers are welcome!
Fall 2002 CS 403 Class Notes Page 2
Career Fair, Bryant Ctr.
•9AM to 3PM, Wednesday, Sept 25
•One-third of the companies are “engineering &
CS firms” looking for our students.
•List of companies at www.uacc.ua.edu
•ACT card required to check in.
•Please make an effort to visit there.
–Do yourself a favor.
–Do the College a favor.
Fall 2002 CS 403 Class Notes Page 3
Remember Programming Journal
•Assignment is on the web page.
•Begin by writing your recollections about
programming for the “uninitialized variable”
project.
•Continue writing about any & all programming
experiences you have.
•I will ask for the first installment on Sept. 27th.
pf3
pf4
pf5

Partial preview of the text

Download Lecture Slides on Uninitialized Variable - Programming Languages | CS 403 and more Study notes Programming Languages in PDF only on Docsity!

Fall 2002 CS 403 Class Notes (^) Page 1

CS 403 - 9/17/

  • Today
    • Hand back “Uninitialized variable” assignment
    • Discuss issues in the assignment
    • Next writing assignment
    • Chapter 3: ALGOL-
  • Reading Assignment
    • Chapter 3.1-3.
  • The Forum is available.
    • Other questions and answers are welcome!

Fall 2002 CS 403 Class Notes (^) Page 2

Career Fair, Bryant Ctr.

  • 9AM to 3PM, Wednesday, Sept 25
  • One-third of the companies are “engineering &

CS firms” looking for our students.

  • List of companies at www.uacc.ua.edu
  • ACT card required to check in.
  • Please make an effort to visit there.
    • Do yourself a favor.
    • Do the College a favor.

Fall 2002 CS 403 Class Notes (^) Page 3

Remember Programming Journal

  • Assignment is on the web page.
  • Begin by writing your recollections about

programming for the “uninitialized variable”

project.

  • Continue writing about any & all programming

experiences you have.

  • I will ask for the first installment on Sept. 27th.

Fall 2002 CS 403 Class Notes (^) Page 4

Uninitialized Variable Assgn.

  • Two grades: Content & Writing: X/
  • You will take this assignment and the next

two, edit them carefully, and turn them back in

together in October.

Fall 2002 CS 403 Class Notes (^) Page 5

Uninitialized Variable Assgn.

  • What are the possible ways to deal with this

issue?

  • When are the possible times?
    • Language definition time
    • Compiler writing time (but that’s when you implement the other choices, so we won’t count it.)
    • Compile time
    • Load time
    • Run time

Fall 2002 CS 403 Class Notes (^) Page 6

Uninitialized Variable Assgn.

  • For each of these times, what are the possible

actions we could take?

  • Language definition time
  • Compile time
  • Load time
  • Run time
  • Think (write down at least one option for each

time) – 2 minutes

  • Pair up with table mates & confer – 3 minutes
  • Share with the class

Fall 2002 CS 403 Class Notes (^) Page 10

Major Concepts

  • What is the output of a compiler?
    • Messages?
    • The output of the executable?
    • The executable program itself?
  • Most of the languages we have seen have

types.

  • Some are strongly typed, some weakly.
  • Have you seen any languages that are not typed?
  • For an un-typed language, what should we do with uninitialized variables?

Fall 2002 CS 403 Class Notes (^) Page 11

Uninitialized Variables: Pointers

  • What should we do with pointers?
  • Pointers are often used to implement “type-

less” languages.

  • How should they be initialized?
  • How can they be used to point to any type of variable? (now an integer, now a string, now an object, …)

Fall 2002 CS 403 Class Notes (^) Page 12

Same compilers, different results

  • How could this happen?
  • Could the OS have an impact?
    • When & How?

Fall 2002 CS 403 Class Notes (^) Page 13

Writing!

  • Pay careful attention to grammar & spelling.
    • Let MS Word help!
    • Take advantage of the Writing Center at the CTL.
    • It is absolutely imperative that you write well to pass this course.
    • You have one writing grade. You will have several more. The grades from the 2 papers will dominate the grades on these short papers, so you get a second chance.
  • Please double space, or at least use “space

and a half” between lines. It gives me room to

correct and comment.

Fall 2002 CS 403 Class Notes (^) Page 14

End of class

  • Read all of chapters 0, 1 & 2 if you haven’t

already.

  • Re-read & Review chapter 3 for Thursday.
  • Check web page for Forum notices
  • Remember your personal programming

journal!

  • Check web page for details on next writing

assignment.