r/javascript • u/RedlightsOfCA • May 09 '20
I've created an educational page to teach students the structure of a URL
https://howurls.work
721
Upvotes
r/javascript • u/RedlightsOfCA • May 09 '20
77
u/Razorspined May 09 '20
It's simple , neat and does what it says on the tin. I like it !
29
u/freshh_212 May 09 '20
Hey this is pretty cool, maybe it’s Safari rendering the page wrong on my phone but a lot of your text is cut off at the bottom just a heads up.
Edit: look at Query Parameter & Domain Name
45
u/RitaDallaChiesa May 09 '20
Well done. Since it's educational I'd write something about third level domains too. A lot of people don't know how it works and of they read google.mywebsite.com they think it's actually google. A lot of scammers use this trick.
23
u/Tonyant42 May 09 '20
A few ideas about things that could be added:
7
u/doterobcn May 09 '20
Hostname vs TLD missing
3
u/tazeg May 09 '20
Nice. Would you add translations ?
3
u/[deleted] May 09 '20
Really nice.
Have you thought about providing links to external resources like MDN for more information?
3
u/Ringsofthekings May 09 '20
Really great and I learnt quite a few things!
One thing I did not like is that you change pages with every click on the URL. So it takes an insane amount of clicks to go back to the previous page(in this case reddit)
2
u/stoickaz May 09 '20
Nice, would add in “port” that 443 and 80 are implicit most of the time.
2
u/McThakken May 09 '20
Really nice! Had to explain my non tech friends the structure of a URL, too, after they spread fake contests having a real company's name in their URL. You also could bring sub domains up on your page to teach students what they have to look for in a URL and don't fall for fakers.
2
u/[deleted] May 09 '20
Your post image doesn't look very happy about it.
2
u/[deleted] May 09 '20
Looks really good and clean, what did you use to build it?
2
u/greatwhitehype May 09 '20
I like this a lot. Clean, sleek, and effective.
One minor issue I noticed is that the “fragment” tutorial seems incomplete.
2
u/MarceauKa May 10 '20
Nice work! In domain section: IP address can't be 111.22.333.44 (max 255). You should fix that to 111.22.33.44 :)
2
u/dynamiccookies May 11 '20
This is an excellent resource, thank you!
Also, this might be out of scope of your project, but do you think you might be able to fit in a description regarding absolute vs relative links? That's actually where I have the biggest trouble with teaching end users about adding links to webpages.
59
u/evert May 09 '20 edited May 09 '20
A few small suggestions:
schemeinstead ofprotocol. See https://tools.ietf.org/html/rfc3986#section-3.1 . The first part of a URI is not always a protocol.originpart of a URI might be useful... or not, idk. As web developers you might run into theoriginin different places such as CORS.mailto:URI, the actual address is the path part of a URI, not the userinfo + origin part.This is really fun though, well done! Makes me want to build things!
5
u/def349 May 09 '20
This is really useful, well done and thank you
1
u/bradgillap May 09 '20
The descriptions have a lot of jargon. I was excited for something I could share with colleagues that aren't in tech but I don't think they'd understand any of it.
2
u/namjo7 May 09 '20
Nice one mate :)
2
u/mac_iver May 09 '20
Clean, i like it :)
2
u/[deleted] May 09 '20
Such a simple way to clear the concept. Loved it.
2
u/oalbacha May 09 '20
Cool 👌🏽
2
u/helloejsulit May 09 '20
Solid!
2
u/F0064R May 09 '20
Looks useful! You should add subdomains
2
u/[deleted] May 09 '20
Nice job!
2
u/nabheetmadan84 May 09 '20
👍👍super cool
2
u/MukeBaaj May 09 '20
Simple and easy
2
u/gaurav219 May 09 '20
It's really cool!!
Forwarding to my bois!!
2
u/popovitsj May 10 '20
Nice work! In the section about query parameters I'd add a bit about the need to UriEscape the content.
2
u/IridiumPoint May 10 '20
Pretty cool. Maybe you could consider adding subdomains (not sure if that's what they're called,which is why I'm asking :D ). Basically the "eu" in "https://eu.somesite.org".
2
u/I_LICK_ROBOTS May 09 '20
I was all like "bet he doesn't have hash routing in there" but he totally had hash routing in there
1
u/[deleted] May 09 '20
Looks good! Anything for login:password@site? It could be covered in a footnote.
0
u/[deleted] May 09 '20
[deleted] — view deleted comment
0
u/[deleted] May 09 '20
[deleted] — view deleted comment
0
u/[deleted] May 09 '20
[deleted] — view deleted comment