Understanding Programming Errors

As a programmer, encountering errors is inevitable. Most programmers would be confused if they wrote code on the first try and it worked with no errors πŸ˜‚. Let's talk about it

A threadπŸ§΅πŸ‘‡

#DEVCommunity #100DaysOfCode #javascript #CodeNewbie. Image
1. Syntax Errors.
These are errors that happen when you write something in the wrong way in your code. eg misspelling a keyword/function name or missing a "{}" or ";" where they are required.
This kind of error gets the compiler confused and unable to translate your code into machine code. Hence, code with syntax errors can not be executed. Image
2. Semantic Errors
Very similar to syntax errors, Semantic errors arise from using the correct words in the wrong places. Like in human languages using the words wrongly leads to confusing conversations.
This means semantic errors also leave the program compiler/interpreter confused and so the code will not execute. Image
3. Logical Errors.
These are the errors that keep programmers up at night.🀣🀣 Why? These errors occur when your code runs but does not do what you expected it to do. It happens when you write code that does something different from what you planned. Image
The computer understands the code as you wrote it not as you planned it so no errors will be thrown by the computer.

That's it😊. Hopefully, you have a better understanding of programming errors now which will help you debug when your code is causing you headaches. πŸ˜‰
Also because Logical errors are so difficult and personally drove me crazy, my upcoming articles and threads will be on Building Logic for your Code. If that sounds interesting to you, you can give me a follow @timo__tech so you don't miss them. Thanks for reading!!😊

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Timo Heman

Timo Heman Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(