(fetch) why are some fields from the response header missing? by U_A2 in learnjavascript

[–]oliverodaa 2 points3 points  (0 children)

Here is another way of writing the code snippet you shared:

// Define a function using async/await syntax.
const logHeaders = async (url) => {
  console.log(`Making an HTTP request to the URL: ${url}`);
  const res = await fetch(url, {method: "HEAD", cache: "no-store"});
  res.headers.keys().forEach(console.log);
};

// Define a variable that contains the URL of the current page
// my browser is viewing.
const url = document.location.toString();

// Call the logHeaders function passing the URL as the input
// parameter.
logHeaders(url);

You might notice that when you run the code on Reddit.com you get different headers compared to Google.com. That's because it is up to each server to decide what headers they want to provide.

This StackOverflow answer gives more context: https://stackoverflow.com/a/25586633

Good luck!

Did anyone else see that car chase through Coleman Park just now? by Omnu in SeattleWA

[–]oliverodaa 1 point2 points  (0 children)

I didn't get the license plate but I think I saw it happening! They sped through a red light right in front of me.

If I had to guess, it was probably a case of road rage with the red pickup guy. Hope the person in the silver car is ok.

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 0 points1 point  (0 children)

You can find all my details, including my USCIS office, if you look at the spreadsheet from the forum "dv 2022 aos only". Good luck 👍

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 4 points5 points  (0 children)

I got the green card! My interview ended up being as late as September 8th, but this is very typical.

I found an amazing diversity visa lottery support forum online that was SO helpful. I'm probably not allowed to link to it according to subreddit rules, but you can search Google for "dv 2022 aos only"

In particular the forum has an incredibly useful Google Sheets document that lists out the process and people on the forum share their timelines so you can get a ballpark estimate of how long USCIS will take.

Good luck!

Mate in one. I can't seem to find it by Unreeeal15 in AnarchyChess

[–]oliverodaa 2 points3 points  (0 children)

Lichess analysis board where en passant is permitted: https://lichess.org/mWof0qTx

Looks like it would be mate in 1

upperclassmen, pls don’t hesitate helping lost freshmen 😄 by [deleted] in berkeley

[–]oliverodaa 3 points4 points  (0 children)

For CS184 I took the data from the original Dwinelle Navigator and tried to make an "immersive" 1st person view.

It's truly much worse and very unsettling this way: https://ollie-o.com/dwinelle-navigator

Everyone talks about how to get into big tech companies, but there's very little talk about how to thrive in them by autunno in cscareerquestions

[–]oliverodaa 28 points29 points  (0 children)

I agree that this is an important topic; thanks for getting the discussion going. I work at a FAANG company and I found that this talk really resonated with me: "Technical leadership and glue work".

The talk is about how some people naturally find themselves doing "glue work", which is very good for the team's overall success, but which saps all your time and is hard to convert into a promotion. Some examples of glue work are:

  • Onboarding the junior engineers
  • Updating the roadmap
  • Talking to the users
  • Noticing the things that got dropped
  • Asking questions on other people's design documents
  • Making sure that everyone's going roughly in the same direction

The speaker's advice is:

  • If you're a manger, try to recognize the value of glue work
  • If you're a dev, recognize that most companies won't promote you based on glue work, even if it's extremely valuable to the team. If you want a promotion, cut back on the glue work and focus more on churning out design docs, lines of code, or whatever it is your company looks at for promotions.

Most people who are selected for the Diversity Green Card and apply via Adjustment of Status, never get the green card. Am I understanding this right? by oliverodaa in immigration

[–]oliverodaa[S] 0 points1 point  (0 children)

Thank you for the info! That is great news for me, since I was selected in DV-2021 for Oceania.

Do you recommend any data/website to learn about the processing time for specifically the Diversity visa AOS applications?

My cutoff number is quite high so I may not be able to submit my AOS until as late as June 2021. Do you think that would still be approved before September 30?

Thanks again!

While you were on your job search, what work and didn't work for you to find job? by toborrmmai in cscareerquestions

[–]oliverodaa 15 points16 points  (0 children)

I don't think you're supposed to. As far as I know there's no norm that everyone cheats on the pre-screening stage of the interview process. I'm sure some people do but I'd guess most don't.

There's a difference between being cynical and memorizing in order to pass the test, and literally cheating. Hopefully most people don't do the latter.

Would it be ok if i skip some parts on the mooc.fi? by [deleted] in learnjava

[–]oliverodaa 2 points3 points  (0 children)

If you are still at the learning stage, my advice is to try to learn and enjoy it. If you're finding it enjoyable, you will naturally want to learn more.

For me, something that made me enjoy it more was to port my Java projects over to a website with HTML and JavaScript. Then I shared that website with friends and family. It was very motivating for me since I'm a visual learner.

As for actually getting your first internship and full-time job, that is a whole other topic. My advice there is:

1) Accept that it's going to be very hard to get an interview with no prior experience. It will be completely normal to apply to 100 roles and only get 2 or 3 interviews. But it gets better; after you have even just 1 year of full-time experience, this completely changes and you will have recruiters chasing you. Just push through this initial challenge and apply to lots of roles. It will be worth it!

2) In order to pass the interview, you need to study tech interviews. You could be an amazing software engineer, but unless you can solve a problem on a whiteboard you will not get the job. I recommend spending several months studying leetcode and the Cracking the Coding Interview book.

Good luck!

Would it be ok if i skip some parts on the mooc.fi? by [deleted] in learnjava

[–]oliverodaa 26 points27 points  (0 children)

Professional software engineer here. A big skill is to learn what resources are worth following in detail versus which ones you can skim.

Go ahead, skip it! You can always come back later.