# 149 - Sugar that syntax

> Episode of [How To Code Well](https://podistic.com/podcast/how-to-code-well.md) · Published March 3, 2022 · Duration 33:22 · Episode 149, season 4

- **Listen on Podistic:** https://podistic.com/episode/149-sugar-that-syntax
- **Audio:** https://anchor.fm/s/2d0cded8/podcast/play/48513964/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2022-2-3%2Fee304475-a9ed-c8ce-942b-fe247c5822dc.mp3 (audio/mpeg)

## About this episode

How to support Ukraine [https://supportukrainenow.org/  ](<https://supportukrainenow.org/ >)

**Change log** 

*   I’m working back in the land of legacy.  PHP 5.6 
*   Goose (My 2nd English Springer Spaniel) is now 9 weeks old and has razor teeth.  
*   I’ve been working on using Vagrant, Docker, Parallels and Ansible to create a test lab for HTCW 
*   We reviewed the documentation for tutorial 5 and 6 of the PHP login course  on Tuesdays live coding stream 
*   I am talking at [PHP North West Drupal User Group NWDUG](https://www.meetup.com/nwdrupal/events/283808251) next Tuesday at 7PM so I won’t be streaming on YouTube on Tuesday

**What is Syntax Sugar** 

This is a term used to describe code that is meant to be more readable and helpful to humans.  

*   It’s sometimes called Candygramming
*   Can shorten code to one liners which can be helpful and easier to read 
*   Can be difficult to change and maintain in the future 
*   Can lead to hidden magic features that are used in the language eg \_get and \_set 
*   Is sometime perceived as a lazy way to write code 
*   Reduces the syntax needed to perform an operation 
*   If done badly then it can lead to over complication, bad abstraction and even worse code readability then before
