Wednesday 10 August 2016

The CORRECT notes.


In relation to programming, there are several different data types which include:

  • Text(String)
  • Integer
  • Floating point (real) numbers/ i.e Single or Double
  • Date/Time (Timestamp)
  • Boolean
  • Character
  • Byte
  • Currency
  • Etc.

It is important to consider the structure of your data when choosing a data type as pieces could be lost in the exchange or the information may become unusable/invalid.

For instance, converting a time-stamp into an integer means that numbers after the ':' (i.e minutes/seconds) will be erased in favor of the hours.



When storing text, sound or images, it is important to consider it's resolution which is a measure of how much detail is in:

  • Images (dots per inch when printed or pixels per inch when onscreen and colour depth)
  • Videos(frames per second, frame size and bitrate)
  • Audio(sample rate of frequency, bit depth and number of channels)



This is especially of concern when considering methods of compression, Lossy methods of compression are designed to shrink file sizes but result in a loss of detail.

On the other hand Lossless compression can not reduce file sizes as much as Lossy methods but they do not reduce the quality of the file instead they summarise the data.

Digital systemsare comprised of the hardware and software required to support programming and software use.

They are divided into several groups:

  • Networks exchange data between groups
  • Rules/Protocols that coordinate and standardise communication between devices
  • Software which is present in the form of systems, applications or utilities
  • Hardware as physical equipment for input, output, storage, processing and communication
  • Application architecture, which are principles that provide a framework for resolving recurring errors.
Hardware such as processing hardware and input/output devices are components of digital systems that we can physically interact with

Processing hardware such as CPU and GPU convert data into information while coordinaing all of the other hardware in the system.

There are a few different utitiles that are useful when building programs:

  • Editors are text editors that allow a programmer to write or modify code
  • Compilers converts programmer's code to machine code so it can be executed
  • Linkers are Libraries/Collections of useful modules/small software that can be incorporated into the program

    In programming, functional requirements are things that the program is required to do and non-functional requirements detail the process of how the program meets the functional requirements. 
In order to carry out these functions, the program must receive compiled language that is converted from the interpreted language that the programmer reads, the programmer may also utilize internal documentation to explain the purpose of certain sections of code.

Internal documentation is an important part of programming along with structure diagrams such as IPO charts, Pseudocode and Object descriptions as they reduce the probability of Syntax and Logic errors from the programmer and invalid code, allowing programmers to focus more on debugging Runtime errors


~Bunmi

1 comment:

  1. I see. Just start programming and complaining... brilliant!
    :)

    ReplyDelete