Why Doesn’t My Code Work?

Make the error happen again.

Look at the error message.

Start tracing through the call stack.

Find where you think it’s happening.

Check for syntax errors.

Check for logic errors.

Check for environment errors.

Run your code after any changes you make.

Get up and walk away.

Repeat 4–9 until the code works AND YOU KNOW WHY.

Go get help.

--

--

--

Starting classes soon! | Software/Hardware Engineer | International tech speaker | Random inventor and slightly mad scientist with extra sauce

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[Ebook] Reading Python: Python Programming For Beginners: Learn the Basics of Python Programming…

Generalising Binary Search

If the OS landscape was disrupted, would Ruby have survived until today?!

Windows 10 on Mac with Boot Camp: making Intel HAXM work without crashing the system

What I Learned From Fire Opal…

Quick Tip — How to modify the name of your application ?

Black Magic Computers

What I Expect from a Front-end Architecture

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Milecia

Milecia

Starting classes soon! | Software/Hardware Engineer | International tech speaker | Random inventor and slightly mad scientist with extra sauce

More from Medium

Why Software Development?

How did I start coding?

You don’t need to pull before rebase to an origin branch.

My Journey into Software Engineering

Picture a man standing and viewing the sky