• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About

Semantics

Posted on August 16, 2019 by Mel Hawthorne

Semantics is a term that, in computer programming, describes the behaviours that result from the execution of a particular program or piece of software. Not to be confused with syntax, which, in programming, refers to the way a program is expressed or written. Generally speaking, it’s easier to check and troubleshoot syntax than it is semantics, as testing every possible condition a program could be run in is effectively impossible.

 

Technipages Explains Semantics

Programs are tested through the use of test cases – that means that someone determines the possible ways a user could interact with the program, both valid and invalid. These cases are then executed in order to see how the program responds. Where the semantics don’t match the expected or desired behaviour, something needs to be changed prior to release. It would take a huge amount of time and resources to test every possible scenario, which is why usually the most likely cases are written up, along with the ones most likely to cause issues for the program.

That way, as many errors as possible are caught as quickly as possible. Where a syntax error could prevent a program from running or crash it partway, a semantics error can be a lot less dramatic, and something as simple as a button performing not the action it is supposed to, but something else entirely. Both types of error need to be addressed prior to release, of course, but the latter is usually easier to miss and harder to find.

Common Uses of Semantics

  • Semantics describes the processes a computer follows when executing a program in that specific language.
  • Formal semantics helps to better understand what a program is doing.
  • Semantics is the study of the meaning of programming languages and how unintended operations can arise.

Common Misuses of Semantics

  • Semantics, like Syntax, is an term that refers to the code behind a program and the expressions that create it.

Primary Sidebar

Recent Posts

  • How to Group Open Tabs on Chrome
  • Dropbox: How To Review Your Security Settings
  • Teams: Disable All Chat Notifications During Meetings
  • Microsoft Teams: Share to Outlook Not Working
  • Teams: Manage External Access With PowerShell
  • VR Oculus Quest 2: What Is Hand Tracking?
  • Microsoft Teams: How to Enable NDI Streaming
  • Microsoft Teams: Enable Background Effects and Blur

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

© Copyright 2021 Technipages · All Rights Reserved · Privacy