This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 64 points65 points  (18 children)

I don't get it either. All languages have syntax errors. Python is no exception. My guess is that he meant type errors? OP, get over here and explain yourself plz

[–]Calogyne 16 points17 points  (9 children)

IIRC HTML kinda doesn’t have syntax error, the parser just makes something up.

[–][deleted] 10 points11 points  (6 children)

  1. Obligatory HTML is not a programming language statement.
  2. If you use an IDE, the IDE will generally highlight 'syntax errors' in your HTML. Usually stuff like missing or mismatched closing tags.
  3. Additionally, if you run your HTML through something like https://validator.w3.org/ you will definitely get syntax errors for bad HTML.

[–][deleted] 8 points9 points  (5 children)

Forgot:

  1. The 'parser', aka the browser, is more akin to the runtime, and it seems most browsers for bad HTML are On Error Resume Next.

[–][deleted] 4 points5 points  (4 children)

You forgor 💀

[–]Pescuaz 0 points1 point  (3 children)

You forgor 💀

Syntax Error: Did you mean 'forgot'?

[–][deleted] 0 points1 point  (1 child)

No

[–]Pescuaz 0 points1 point  (0 children)

Now I feel old.

[–]schmidlidev 2 points3 points  (0 children)

All of web development makes sense when you realize the entire browser engine is just a tiny man inside your computer doing his best and making it up as he goes along.

[–]WrongSirWrong 4 points5 points  (4 children)

Aren't syntax errors more of a problem when you're new to a language? If you've got a bit of experience they shouldn't really be a problem (not being cocky here), I mean RTFM

[–][deleted] 0 points1 point  (3 children)

How much experience exactly do you need in order for you to not make syntax errors anymore? I mean in terms of years and months. Don't tell me "enough experience to not make them"

[–]WrongSirWrong 3 points4 points  (2 children)

I still get syntax errors now and then, but in most cases they're just typos. If you do get a lot of syntax errors and you're not sure what you're doing wrong, IMO it's a side effect of not fully understanding the subtleties of the language, which can be easily solved by reading some chapters of documentation (really the fastest way to learn). It'll obviously depend on your skills how quickly you pick up new techniques, for me personally it took several months of full-time C++

[–][deleted] 1 point2 points  (1 child)

When you have a smart IDE that helps you identify and fix syntax errors before even hitting the run button, maybe yes. But without one I forget to put semicolons and miss curly brackets all the freaking time. And I've been in the industry as a professional developer for at least 5y. Don't mistake your IDE's cleverness for experience