Programming technique

?
  • Created by: millard
  • Created on: 26-04-16 13:45
View mindmap
  • Programming language
    • High level
      • Python, is easily understood by the user but not by the computer
    • Low level/ machine code
      • Easily understood by the computer but not by humans
    • Compiler
      • Takes the whole code, translates it and then runs it
      • ADV: Tells you where the error is before running the program
      • DISADV: Can be quite slow
    • Interpreter
      • Takes the code one instruction at a time, translates it and then runs the instruction; before translating the next instruction
      • ADV: Quicker to find bugs which is why it is used in testing
      • DISADV: Program runs slowly
    • Coding languages
      • Machine code:
        • The lowest level of code - it is the most basic written in binary
      • Assembly language:
        • Contains mnemonics and it is the halfway point between HLL and MC. As there is less english it is processed faster
      • High Level Language
        • Python, easier to understand by humans. It has to be converted into MC before the computer can understand it
    • IDE: Integrated Development Environment
      • It is software that allows programmers to code, test and run codes. It also translates the HLL into MC
      • Features:
        • SOURCE CODE EDITOR; allows you to write code
        • INTERPRTER; test code one line at a time
        • AUTOMATION TOOL; indents after : and helps the programmer to write the code faster
        • DEBUGGER; where and what errors have been made
        • COMPILER; compile the code into it's own running program
        • AUTO-DOCUMENTATION; stores lists of variables, modules, functions that can be called
    • Assembler
      • Translates Assembly  language into Machine code
      • ADV: quicker than translating from HLL to MC, as there is less time to convert to binary as it is only one step away from  MC
      • DISADV: Harder to learn to do
    • Testing:
      • Syntax error
        • Grammatical rules of the programming language
          • Misspelling
          • Missing out : or ;
          • Missing ()
      • Logic error
        • Program doesn't run as it was intended to as a result of the way it was written
          • Creating an infinite loop, e.g. x = 1, WHILE x = 1: print("This is a logic error")

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »