by CodeWriter23 · 2y ago · 0 comments
When I was first learning PHP as a teenager I also had similar problems. I did not know about SQL JOINs for at least a couple of years; which meant database querying was... overcomplicated to say the least.
The other epiphany I had was when I started to realise HTTP was just a request string getting parsed. Given I had used FTP and web servers like Apache previously for HTML and files, I was convinced the directory structure in the URL was the directory structure on disk. It took me a long time to get my head around the fact that you could just grab the request URL from the HTTP headers and not have to have hundreds of physical folders to make URLs like /category/subcategory/page (I'd managed to approximate this with making folder structures that looked like this with index.php files in).
I've never thought of it like this, but I didn't understand for a long time that a webserver was just a function that run with the request as an argument.
Like being able to type "println(x)" to get the value of x.
Took me a quite few years to discover the intricaties of the so-called debugger :D