Skip to content

Organised code is so much easier to read, debug and maintain

License

Notifications You must be signed in to change notification settings

RalphBacon/BB9-Code-Organisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bacon Bytes #BB9 Code Organisation

Organised code is so much easier to read, debug and maintain

Thumbnail
Video Link: https://youtu.be/PWMOb85OGY0

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler (https://en.wikiquote.org/wiki/Martin_Fowler)

► Summary

I was taught early on in my computer programming career that beautiful code indicates a tidy, organised mind too - and probably leads to code that works first time, is easily understood by others and can be maintained in the years to come.

In this video we look at how we turn "prototyping code" into a well-structured, modular program by separating the various components of the program into separate files.

All the code in the video is available right here in the GitHub for you to play around with.


You can support me by buying me a coffee!


#### ► Hardware used in demo project: ![LCD screen (Custom)](https://user-images.githubusercontent.com/20911308/170461608-a9ba65db-a14d-4a0c-ac4f-6949be1da86d.jpg) LCD screen INCL I2C backpack (ships from UK): https://www.banggood.com/custlink/DmmyzUKPAc

PCF8574 Backpack for LCD (Custom)
Separate Backpack (for bare LCD screen): https://www.banggood.com/custlink/KmDyUk3tN5

DS18b20 Temperature Sensor (Custom)
DS18b20 temperature sensor (TEN pieces): https://s.click.aliexpress.com/e/_AYM61d OR
DS18b20 Waterproof version (1m cable, longer available): https://s.click.aliexpress.com/e/_9fiBAb

► Next Steps

The next video #BB10 in this series will cover namespaces - which goes some way towards getting rid of true globals. Grr!

Stay tuned!

► Useful or interesting video? You can support my channel:
Buy Me A Coffee! https://www.buymeacoffee.com/ralphbacon

► List of all my videos (Special thanks to Michael Kurt Vogel for compiling this)
http://bit.ly/YouTubeVideoList-RalphBacon

► If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey

My channel, GitHub and blog are here:
------------------------------------------------------------------
https://www.youtube.com/RalphBacon
https://ralphbacon.blog
https://github.com/RalphBacon
https://buymeacoffee.com/ralphbacon
------------------------------------------------------------------

About

Organised code is so much easier to read, debug and maintain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages