Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write up instructions for "HTTP request field day" exercise based on existing notes #616

Closed
judytuna opened this issue Mar 2, 2019 · 25 comments
Assignees
Labels
HARD Large or complex task priority get this done first if possible

Comments

@judytuna
Copy link
Contributor

judytuna commented Mar 2, 2019

Write a topic outline here based on the following notes:

Do the same two requests over and over again six different ways! Why? Compare and contrast: how are they different? How are they similar?

  1. Postman (a Mac app that’s a GUI for curl) (this should be trivial as they've been using it all week. start with something easy on purpose.)
  • at the end of the exercise, have them discover in the Postman GUI that there's a menu option to grab the request in curl syntax. what do we learn about Postman? it's probably a GUI for curl!
  1. curl on the command line, in their terminal
  2. XMLHttpRequest in raw javascript in a javascript console in a browser
  1. window.fetch in that javascript console (just to see that it returns a promise)
  • explain that this is newer javascript
  1. http.request in node (it comes with node), in the node repl
  2. node-fetch in node, again in the node repl but after npm install --save node-fetch in the client project they're about to work on

Apprentices will look up the syntax (so this is also an exercise in searching for resources and separating signal from noise), with some hints, like "we told you this is an NPM module. where should the very first place you look for it be? answer: docs on npm, which will link to its github repo. example: https://www.npmjs.com/package/node-fetch and https://github.com/bitinn/node-fetch "

More discussion questions:

  • What affordances to higher-level libraries give us? What does "higher-level library" mean?

A few "Additional Resources" that compare ways to make requests:

img_4573 smaller

For FAQs on how to contribute, see: https://github.com/Techtonica/curriculum#volunteering

@judytuna judytuna self-assigned this Mar 2, 2019
@alodahl
Copy link
Collaborator

alodahl commented Mar 2, 2019

Will this be it’s own topic outline, @judytuna? Want me to make this issue volunteer-ready?

@alodahl alodahl added due-3-29-19 MEDIUM Intermediate length or difficulty labels Mar 24, 2019
@alodahl alodahl added due-4-12-19 HARD Large or complex task and removed due-04-05-19 MEDIUM Intermediate length or difficulty labels Apr 4, 2019
@pydevsg
Copy link
Contributor

pydevsg commented Apr 9, 2019

I would like to work on this issue @alodahl , after my PR gets merged.
Please do assign it to me.

@alodahl alodahl assigned antislice and pydevsg and unassigned antislice Apr 11, 2019
@antislice
Copy link

antislice commented Apr 11, 2019 via email

@pydevsg
Copy link
Contributor

pydevsg commented Apr 19, 2019

I have a doubt before making a PR , do I need to make a table comparision of the HTTP request or write just the code for the 6 different methods mentioned above?

@alodahl
Copy link
Collaborator

alodahl commented Apr 20, 2019

@pydevsg, write the directions for working on the different methods above.

A table to replace the image would be awesome! Have you ever made one with markdown?
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables

@pydevsg
Copy link
Contributor

pydevsg commented Apr 20, 2019

@alodahl I will write down the directions for different methods, make the table and come up with a PR, thanks for the guidance.

@saberprashant
Copy link

Hi @pydevsg , how are you doing on this one? Are you facing any difficulty? Please ask any mentor if you have any doubt.

@pydevsg
Copy link
Contributor

pydevsg commented Apr 29, 2019

@saberprashant , I will come up with the PR very soon. Thanks for the helping hands, if I face any issues I will surely tell you.

@alodahl
Copy link
Collaborator

alodahl commented May 18, 2019

@pydevsg are you still able to complete this issue?

@pydevsg
Copy link
Contributor

pydevsg commented May 18, 2019

Yes,I am in the midst trying to wrap it up as early as possible.

@pydevsg
Copy link
Contributor

pydevsg commented May 27, 2019

Yes, I will due to semester exam I am unable to provide a PR, the content is ready.
Will grab up as early as possible.

@alodahl
Copy link
Collaborator

alodahl commented Jun 7, 2019

Hi Sudipto, is this something you would be willing to finish soon?

@pydevsg
Copy link
Contributor

pydevsg commented Jun 7, 2019

Yes, I will surely complete this very soon.
Sorry for the delay , I couldn't make this my semester exam is still going.
Please wait for few more time.
I will resolve and finish this issue.

@alodahl
Copy link
Collaborator

alodahl commented Jun 7, 2019

That's fine! When would you expect to be done?

@pydevsg
Copy link
Contributor

pydevsg commented Jun 11, 2019

It would be expected by next 2 days, sorry for the delay.

@alodahl
Copy link
Collaborator

alodahl commented Jun 23, 2019

Hi @pydevsg , how is the HTTP exercise coming?

@alodahl
Copy link
Collaborator

alodahl commented Jul 5, 2019

Hi @pydevsg , should I make this issue available to another volunteer? I haven't heard from you in a while.

@pydevsg
Copy link
Contributor

pydevsg commented Jul 5, 2019

Extremely sorry for the delay Mam, I gave taken the issue and will solve it .
Will soon do the PR.

@alodahl
Copy link
Collaborator

alodahl commented Aug 29, 2019

Hi @pydevsg , should I put this back in todo?

@alodahl alodahl added priority get this done first if possible Hacktoberfest and removed due-5-03-19 labels Sep 14, 2019
@alodahl alodahl changed the title Write up instructions for "HTTP request field day" exercise Write up instructions for "HTTP request field day" exercise based on existing notes Oct 6, 2019
@vegetabill
Copy link
Collaborator

@alodahl I'm happy to work on this. Just making sure from the long comment thread that no one else is working on this or has WIP work?

@alodahl
Copy link
Collaborator

alodahl commented Nov 19, 2019

Thanks @vegetabill please do! Someone picked this up in the summer but never made a PR.

@vegetabill
Copy link
Collaborator

vegetabill commented Nov 19, 2019

@alodahl sorry one more question. What separates this from api/apis-and-json.md or ajax/ajax.md? In there are the basics and fetch is covered. Is this additional background practice? Is it worked on before or after that one?

I'm mainly asking because this lesson appears under the API folder but I was trying to see if the apprentice knows HTTP basics at this point or I should link in more background. Note to self: see if b0rk would offer edu discounted copies of her zines. They are so awesome.

@alodahl
Copy link
Collaborator

alodahl commented Nov 22, 2019

Sorry for the delay, Bill. Yes, it is supposed to be an additional practice outline after Ajax and API s. The intention is to show the variety of ways apprentices might see requests in the wild and compare different syntaxes that do the exact same thing.

@vegetabill
Copy link
Collaborator

Done & Done & I mean Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HARD Large or complex task priority get this done first if possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants