SPAGHETTI CODE AND HOW TO AVOID IT⠀

SPAGHETTI CODE AND HOW TO AVOID IT⠀


"Life is really simple, but we insist on making it complicated!"⠀
⠀
๐Ÿ‘‰What is SC⠀
Spaghetti Code is a term used to refer to a tangled source code where control within a program jumps all over the place and is difficult to follow.⠀
⠀

๐Ÿ‘‰Characteristics⠀
When spaghetti code is cooked, it turns into a jumble of ideas that work, but are very easy to break while being very hard to read and change.⠀
⠀

๐Ÿ‘‰Typical Causes:⠀
Ineffective code reviews
Developers working in isolation
No design prior to implementation
Inexperience with using technologies
⠀

๐Ÿ‘‰Symptoms:
Bad indentation
Improper identifier names
Big functions that do everything
Unnecessary nested code blocks
Repeated code
Jump or go-to statements
Placing every file in one folder
Unhelpful or outdated comments
⠀

๐Ÿ‘‰Spaghetti code can be reduced by:⠀
Commenting
Formatting properly
Using small functions
Thinking twice, coding once
Keeping your code organized
⠀
Have you cooked Spaghetti Code before?⠀
How unsavory was it?⠀
How do you avoid Spaghetti Code?⠀
⠀
We’d love to hear from you!⠀
⠀
⠀

Comments

Popular posts from this blog

My LHD share experience

USEFUL CHROME EXTENSIONS FOR DEVELOPERS

LIBRARY vs. FRAMEWORK⠀