Understanding Integrated Development Environments (IDEs) - Prof. Akerman, Slides of Computer Science

An overview of integrated development environments (ides) and their features, focusing on how they aid programmers in software development. It covers essential ide functionalities such as syntax highlighting, line numbers, error diagnostics, debugging tools (breakpoints, stepping, variable watching), and run-time environments. Examples and tasks to illustrate these features, making it a practical guide for understanding and utilizing ides effectively. It is designed to help students and novice programmers grasp the importance of ides in streamlining the coding process and improving code quality. The material is presented in a clear, structured manner, suitable for educational purposes, with a focus on hands-on learning through worksheets and partner exercises. The document also touches on commonly used ides like visual studio, eclipse, and idle, providing context for real-world application.

Typology: Slides

2024/2025

Uploaded on 05/24/2025

bananana-apple
bananana-apple 🇬🇧

4

(1)

25 documents

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Understanding Integrated Development Environments (IDEs) - Prof. Akerman and more Slides Computer Science in PDF only on Docsity!

End Of Topic Assessment Section 8: Logic and Languages Tuesday 11 th February L1 – Logic diagrams and truth tables L2 – Defensive design L3 – Errors and testing L4 – Translators and facilities of languages L5 – The integrated Development Environment

Starter

  • (^) The simplest way to edit the source code to programs is to use a text editor such as Notepad - (^) What problems are there with using such a simple text editor?

IDEs IDEs are Integrated Development Environments

  • (^) They have a number of tools and features that help programmers when they are programming Commonly used IDEs include Visual Studio (for C#, VB and other languages), Eclipse (for Java and many more) and IDLE (for Python)
  • (^) What features do IDEs provide?

IDEs The following screenshot shows some of the features of an IDE

  • (^) Explain what each of these features mean Syntax highlighting Line numbers Code folding Breakpoints Variable watching

Syntax highlighting Syntax highlighting is where the colour of the text changes to show different parts of the program What do each of the colours mean below?

Syntax highlighting Booleans (false, true), Keywords (while, not, if, else) Type conversions (str, int) Strings – e.g. "Are you higher or lower in age? " All other operators, variables and functions names

Error diagnostics Error diagnostics help a programmer to find where they have made a mistake

  • (^) Errors are identified along with the line number that they occur on
  • (^) The code may be underlined or highlighted to show the error This program is written C#
  • (^) With the help of the error diagnostics fix the two errors shown

Error diagnostics

  • (^) The errors show that:
    • (^) A bracket needs to be added to the end of line 16
    • (^) The variable oldstAge in line 13 doesn’t exist. The programmer should use oldestAge which they created in line 11

Variables

  • (^) ageGuessed = false
  • (^) oldestAge = 120
  • (^) youngestAge = 0
  • (^) currentGuess = 60
  • (^) correct = null (it hasn’t yet been assigned a value)
  • (^) args = {string[0]} These are arguments sent to the program when it is called

Run-time environment The run-time environment allows a programmer to test their program while it is running

  • (^) If the program crashes the run-time environment can see what happened and give useful information to the programmer The run-time environment also means the libraries that come with the programming language and will be available to the programmer to use

Plenary With a partner, take it in turns to explain each of the following terms related to IDEs:

  • (^) Editors
  • (^) Line numbers
  • (^) Syntax highlighting
  • (^) Breakpoints, stepping and watching variables
  • (^) Error diagnostics
  • (^) Run-time environment

Plenary Editors – Use to write and edit programming code Line numbers – Give a number to each line of code, this is useful when the IDE refers to lines of code Syntax highlighting – Different colours for code that has different meanings, such as keywords, strings or variables Breakpoints, stepping and watching variables – The ability to pause code when running and then run each line of code separately whilst watching the values stored in variables as they change Error diagnostics – Comments from the IDE that help in finding the cause of syntax errors Run-time environment – The facility of the IDE that allows programs to be run