new post
This commit is contained in:
parent
06eee6c688
commit
cc0410e661
2 changed files with 119 additions and 0 deletions
73
posts/everthing-I-know-web.md
Normal file
73
posts/everthing-I-know-web.md
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
---
|
||||||
|
title: "Everything I know about how the web works"
|
||||||
|
|
||||||
|
description: "Writing this out because I suspect posts about my learning/knowledge could help me"
|
||||||
|
|
||||||
|
date: "2025-08-01"
|
||||||
|
|
||||||
|
draft: true
|
||||||
|
|
||||||
|
tags: []
|
||||||
|
---
|
||||||
|
|
||||||
|
I know some things about how some things works.
|
||||||
|
I want to make it easy for other people to know that I know some things.
|
||||||
|
|
||||||
|
So I'm writing this post.
|
||||||
|
|
||||||
|
## HTTP
|
||||||
|
|
||||||
|
HTTP in all it's flavors (0.9, 1.0, 1.1, 2, and 3) is a network protocol which in abstract does the following.
|
||||||
|
|
||||||
|
1. Client sends a request of some method, GET, POST, PUT, HEAD, etc with a path, headers and sometimes a body
|
||||||
|
2. Server responds to the request with a response which has a status code, headers, sometimes a body and sometimes trailers
|
||||||
|
|
||||||
|
### HTTP method
|
||||||
|
|
||||||
|
HTTP methods are used to encode semantics about the operation being performed although whether or not those semantics are followed by the server is another matter.
|
||||||
|
|
||||||
|
- `GET`: Requests something from the server while changing nothing and not sending any data, in theory the response should also be cacheable, this is the request method the browser uses when you visit a webpage and to download files
|
||||||
|
- `POST`: Sends something to the server which will change something.
|
||||||
|
- `PUT`: Sends something to the server which will change something but in theory if you send the same request more than once it'll be the same as if you only sent it once
|
||||||
|
- `HEAD`: Retrieves only the headers of a `GET` request from the server
|
||||||
|
|
||||||
|
There are other methods as well but I currently view their existence as interesting nerd trivia which can occasionally come up in API design but probably won't.
|
||||||
|
|
||||||
|
### HTTP path
|
||||||
|
|
||||||
|
The path is basically everything after the domain name in a URL.
|
||||||
|
For example in `http://example.com/hello/world` the path would be `/hello/world`.
|
||||||
|
|
||||||
|
### HTTP status codes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP headers
|
||||||
|
|
||||||
|
A lot of important information about a given HTTP request or response are located in the headers with things like the [Host header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Host) which specifies the domain/ip which was connected to and [CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) which will only remain a problem for you until you discover what a reverse proxy is.
|
||||||
|
|
||||||
|
They also allow for more cool stuff than even I'm really aware of.
|
||||||
|
Some of the things they allow for which I'm aware of are things like
|
||||||
|
|
||||||
|
- Dumb Caching via [Expires](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Expires)
|
||||||
|
- Clever Caching via [If Modified](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/If-Modified-Since) or [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/ETag) with a [304 status response](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/304) when valid.
|
||||||
|
- Content Negotiation via [A whole lot of stuff](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation) to pick the correct language and file format to retrieve, which isn't used very much for various reasons
|
||||||
|
- Compression via [Accept](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding) and [Content](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Encoding) encoding headers which is technically a part of content negotiation but unlike content negotiation this is used basically everywhere
|
||||||
|
|
||||||
|
Now you may be wondering?
|
||||||
|
|
||||||
|
> Why are HTTP methods, paths and response codes distinct from headers?
|
||||||
|
> I mean all of this is just metadata, shouldn't we have all that metadata in a uniform format?
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
Anyways.
|
||||||
|
|
||||||
|
### HTTP trailers
|
||||||
|
|
||||||
|
HTTP trailers are pretty obscure.
|
||||||
|
If they weren't used for [Server-Timing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Server-Timing) debugging information (based on MDN) and gRPC nobody would use them.
|
||||||
|
|
||||||
|
## HTML
|
||||||
|
|
||||||
|
|
46
posts/tmp.md
Normal file
46
posts/tmp.md
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
---
|
||||||
|
title: ""
|
||||||
|
|
||||||
|
description: "If you see this then I made a mistake and this post will probably be taken down sooner or later"
|
||||||
|
|
||||||
|
date: "20xx-xx-xx"
|
||||||
|
|
||||||
|
draft: true
|
||||||
|
|
||||||
|
tags: []
|
||||||
|
---
|
||||||
|
|
||||||
|
## Tell me about yourself
|
||||||
|
|
||||||
|
I've been interested in programming since later middle school to early high school when I went to a summer camp where we made games and I got deeply into the programming aspect.
|
||||||
|
After that point I got into learning about programming making a few projects over the course of highschool, taking both AP computer science courses and generally learning as much about programming as possible.
|
||||||
|
So when it came time to pick a major for college it was pretty apparent to me that I should pick something programming related and so I picked computer science at Binghamton university.
|
||||||
|
During my time there I worked on some more projects, both school work and stufff on my own time until I graduated bringing us to today.
|
||||||
|
|
||||||
|
## Why did you apply here?
|
||||||
|
|
||||||
|
Well, my aunt works at a company involved in the medical industry which led to me bring reccomended to look into medical device companies.
|
||||||
|
When I came across Boston Scientific I noticed that they had a notable emphasis on working with people just starting their careers and thought it would be worth applying.
|
||||||
|
|
||||||
|
## What have you heard about us?
|
||||||
|
|
||||||
|
I know that you are one of the largest medical device companies in the United states, making a varierty of medical devices for things like cardiovascular treatment and cancer among others.
|
||||||
|
|
||||||
|
## Have you ever worked on a team before?
|
||||||
|
|
||||||
|
Yes, for example in my senior year I took a class where I worked with a partner over the course of a semester to make a project where you could put in a start and end point on google maps to get a route using buses to get between those 2 points using both the county's bus system and the school's bus system, comared to outright google maps which only makes use of the county's bus system.
|
||||||
|
|
||||||
|
### Any problems?
|
||||||
|
|
||||||
|
A couple.
|
||||||
|
First for this project the partner I chose to work with ended up having issues with coming to class and not being especially responsive over messaging so I needed to start setting up weekly meetings to make sure we remained on track.
|
||||||
|
Secondly there was some disagreement over how to have the component I was making and the component the partner was making should communicate requiring some discussion and compromise.
|
||||||
|
|
||||||
|
## What would you describe as a negative of yourself?
|
||||||
|
|
||||||
|
I tend to be overly cautious about various things, using hedging words a lot among other things.
|
||||||
|
|
||||||
|
## Positive?
|
||||||
|
|
||||||
|
I'm good under pressure.
|
||||||
|
For example in my senior year of college an apartment in the building I was living in caught fire partway through the day while I was at university requiring me to make my way back to my apartment to grab some of my stuff and find a hotel to stay the night at.
|
Loading…
Reference in a new issue