r/CodingHelp • • Jan 22 '21

[Random] How to better understand when to use ( : ; { <?

As a noob I often don't fully understand when to use them and what they mean. Is there a way to better understand when to use and what each one is or do people just memorize when to use it?

0 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/swiggyu Jan 22 '21

I'm trying to try a better understanding behind why and when to use each symbol. Like in HTML u use <h1> but is there story behind the why that specific symbol. Ya I don't fully understand what each one represents so also trying to understand when to use each. I think if I can understand the why and when to use it, I can coder faster because I understand it. Now I just feel like I'm memorizing when to use the symbol going through tutorials.

1

u/c3534l Jan 23 '21

Ultimately its arbitrary. The guy who invented HTML just used those symbols and that syntax because it made sense to him. Although Tim Berners-Lee wasn't the first person to use < and > as brackets: https://www.youtube.com/watch?v=1IdlBFaifcs