Live data from Hacker News

“What happens when you type Google.com into your browser and press enter?”

github.com

111–120 of 136 posts

Re: “What happens when you type Google.com into your browser and press enter?”

#111
post #43

Earlier quoted context omitted.

And someone who says "duh it shows the Google homepage" is destined for the executive team.

The executive answer begins "It connects you with the world, but moreso, connects us all as a society..." (This answer continues for two hours.)

The word 'synergy' will also be used numerous times.

Re: “What happens when you type Google.com into your browser and press enter?”

#112
post #5

Love it! One of my favourite bad interview questions. I got asked this in an interview ~5 years ago. My response was to look shocked... Pause. Then ask: "What do you mean? What detail do you need? DNS? SYN / ACK? HTTP?" At the point I started talking about syn/acks they just cut me off and moved on to the next question. Same company (different person) started the phone screen with 'oh so your CV says you know linux,…

That's part of the point of the question - which part you go into detail on is a pretty good indication where your strengths lie. Someone who spends a lot of time on DNS and SYN/ACK is probably a low-level networking guru, and the rest of the interview should be structured accordingly. Someone who immediately jumps into HTTP requests, HTML parsing, and stylesheet application is probably a web developer, and the rest…

What if I can go from matrix scanning algorithm used by keyboard controllers firmware, usb descriptors used (hierarchy, order, meaning of fields, direction), kernel (usb driver, keyboard driver), system (windows keyboard event), program (event loop, logic, tons of stuff here to decide what to do), back to system (dsn query, cache or network driver), network(can start on 4th osi layer and go all the way to 1) .... up to the part how mighty Google cluster identifies you even when you are not logged in and browse in private mode with no cookies, concluded by the statement that clicking enter begins your adventure of being a product Google sells? Every step of the way from sub 10 millisecond (usb polling, in reality nothing happens when you press enter :P) up to three months in the future (Googles earning report).

edit: Doh, finally clicked on github link, and its just what I wrote, but crowd sourced.

Re: “What happens when you type Google.com into your browser and press enter?”

#113

It frustrates me that it just goes "Interrupt fires". There's a whole lot that goes on between the USB bus receiving the packet and HID driver - I mean, even making the processor branch is non-trivial.

>USB bus receiving the packet

its not really receiving packets, its receiving data _you specifically requested in YOUR packet_. in USB only host is capable of generating traffic on the bus, your device cant generate any packets, only answer to them.

Re: “What happens when you type Google.com into your browser and press enter?”

#114
post #18

Earlier quoted context omitted.

I'm not so sure it's a bad interview question. Or rather, perhaps it's only bad if you, as the interviewer, have a specific answer in mind. We used it once with the caveat that "there's no right answer, we don't really know every step either, lets see what happens". We collaborated with them, it was great, and by the end of the conversation were pretty certain we wanted to keep the conversation going by hiring them.…

> We used it once with the caveat that "there's no right answer, we don't really know every step either, lets see what happens". Better might be, "We're not implementing every layer, or at least not right now. Give me a good overview of everything you think is relevant." You get to test technical knowledge and people skills that way. Ideal would be a really good college lecture; less ideal would be someone who knows…

Umm, I teach at a well known East Coast school that name starts with a "D". First night of the Internetworks - TCP/IP class I do this in the second 90 min part of the lecture. There is a ton of stuff from ARP resolves, DNS, BGP connections, NAT at your local router, HTTP request / responses, etc. While I'm an EE and can do the electron level BS, there is more than enough to cover on the software side.

Take away from the first night are: Open protocols are good Many hands (software layers) make light work It is just amazing that it works at all... :)

Lots of lectures / labs, including learning how to use Wireshark and ripping apart protocols.

The penultimate class is us reproducing that lecture with what they've learned. I think I resent the Blab school remark. They don't parrot back but they understand the parts.

And we still think it's amazing it works at all.

Re: “What happens when you type Google.com into your browser and press enter?”

#115
post #43

Earlier quoted context omitted.

And someone who says "duh it shows the Google homepage" is destined for the executive team.

The executive answer begins "It connects you with the world, but moreso, connects us all as a society..." (This answer continues for two hours.)

Or:-

"That's a great question! I think the best way to answer it is..."

(This answer continues for two hours without actually answering the question posed.)

Re: “What happens when you type Google.com into your browser and press enter?”

#116

It frustrates me that it just goes "Interrupt fires". There's a whole lot that goes on between the USB bus receiving the packet and HID driver - I mean, even making the processor branch is non-trivial.

>USB bus receiving the packet its not really receiving packets, its receiving data _you specifically requested in YOUR packet_. in USB only host is capable of generating traffic on the bus, your device cant generate any packets, only answer to them.

And this is exactly the sort of thing that I wish it included, so I could learn about it.

It's complex, I know it's complex, and I want to know what actually happens at that awkward fuzzy boundary between hardware and software.

Re: “What happens when you type Google.com into your browser and press enter?”

#117

Earlier quoted context omitted.

That's part of the point of the question - which part you go into detail on is a pretty good indication where your strengths lie. Someone who spends a lot of time on DNS and SYN/ACK is probably a low-level networking guru, and the rest of the interview should be structured accordingly. Someone who immediately jumps into HTTP requests, HTML parsing, and stylesheet application is probably a web developer, and the rest…

What if I can go from matrix scanning algorithm used by keyboard controllers firmware, usb descriptors used (hierarchy, order, meaning of fields, direction), kernel (usb driver, keyboard driver), system (windows keyboard event), program (event loop, logic, tons of stuff here to decide what to do), back to system (dsn query, cache or network driver), network(can start on 4th osi layer and go all the way to 1) .... up…

    Google cluster identifies you even when you are not
    logged in and browse in private mode with no cookies
Source?

Re: “What happens when you type Google.com into your browser and press enter?”

#118
post #5

Love it! One of my favourite bad interview questions. I got asked this in an interview ~5 years ago. My response was to look shocked... Pause. Then ask: "What do you mean? What detail do you need? DNS? SYN / ACK? HTTP?" At the point I started talking about syn/acks they just cut me off and moved on to the next question. Same company (different person) started the phone screen with 'oh so your CV says you know linux,…

That's part of the point of the question - which part you go into detail on is a pretty good indication where your strengths lie. Someone who spends a lot of time on DNS and SYN/ACK is probably a low-level networking guru, and the rest of the interview should be structured accordingly. Someone who immediately jumps into HTTP requests, HTML parsing, and stylesheet application is probably a web developer, and the rest…

I started thinking about the sensory transduction in the right pinky that culminates in the prediction of a class of visual gestalt in the temporoparietal junction.

Re: “What happens when you type Google.com into your browser and press enter?”

#119
post #117

Earlier quoted context omitted.

What if I can go from matrix scanning algorithm used by keyboard controllers firmware, usb descriptors used (hierarchy, order, meaning of fields, direction), kernel (usb driver, keyboard driver), system (windows keyboard event), program (event loop, logic, tons of stuff here to decide what to do), back to system (dsn query, cache or network driver), network(can start on 4th osi layer and go all the way to 1) .... up…

Google cluster identifies you even when you are not logged in and browse in private mode with no cookies Source?

Not saying that Google itself does this (I doubt it, honestly), but browser fingerprinting does exist and your browser is, more than likely, unique:

https://panopticlick.eff.org

It isn't entirely unconceivable that a site may use browser fingerprinting to track you even when not signed in by associating your unique browser fingerprint to your account.

Re: “What happens when you type Google.com into your browser and press enter?”

#120
post #117

Earlier quoted context omitted.

Google cluster identifies you even when you are not logged in and browse in private mode with no cookies Source?

Not saying that Google itself does this (I doubt it, honestly), but browser fingerprinting does exist and your browser is, more than likely, unique: https://panopticlick.eff.org It isn't entirely unconceivable that a site may use browser fingerprinting to track you even when not signed in by associating your unique browser fingerprint to your account.

I agree that it's possible. I would be extremely surprised if Google were doing this, however, so I'm interested in why rasz_pl thinks they are.
Post reply on HN