Hacker Newsnew | past | comments | ask | show | jobs | submit | more codezero's commentslogin

This is great, besides the Sources tab, I use DOM and Event breakpoints a ton to debug a lot of problems.

Something, I'm not sure if most people know, if you break somewhere (whether event or DOM), you can access the currently in scope variables directly in the console. It's extremely useful for finding out what's going on with something in the middle of hairy code at a specific point in time.


More on the different types of breakpoints available in Chrome DevTools: https://developers.google.com/web/tools/chrome-devtools/java...


It's also possible to change the value of these variables and test different code paths.


You're right! I was going to say that, but I didn't remember off the top of my head if that was true :)


I have a similar interview question, but I have a few layers on top of it, not all of which are required to progress through the interview:

1. Send CSP headers that prevent some of the JS from executing. This is really obscure to most people, but if you look at the console and search the internet for the error, it gives you a good idea. This gets you thinking about the script.

2. Include a simple JS syntax error in the AJAX call. It helps prime them to figure out why the call, once the error is fixed, still doesn't work, rather than having them try to think about the entire front-end as a source for potential problems.

I like to make sure that people are generally guided to the problem to solve, but also to test them along that path. A lot of debugging involves things a few steps/layers removed from the actual problem before you get to the point of solving it, so it's fun to test those steps too, as each can lead you down a wrong/different path.


Those are all good ideas, thanks! I made it super easy, it's an invalid URL. Everything else is setup, but having a few more non-required steps would allow me to be more granular between two otherwise good candidates.


Has any of the code for this survived?


Not the original source but pretty explanatory:

https://history-computer.com/Library/Logic%20Theorist%20memo...



TechCrunch does this all the time, most of the "news" blogs do – I worked at a company that employed a PR firm that basically put our product release collateral directly onto a bunch of those blogs – it made me very uncomfortable.


Bought by Palm, then HP, then ??? I guess, try to navigate that corporate IP nightmare.


I think BeOS went Palm -> PalmSource -> Access (the embedded web browser people).


I assume you are right and I was hasty :)


I'm still on the fence about how far into the conspiracy theory land I'd go – but if you imagine that this nerve agent though, it could kill, in these instances, isn't meant to kill, but rather, to show force, and penetration. A "see what we could do" – with the understanding that they could use something more subtle than Novichok if they wanted to.


Not sure what you mean? Are you saying in order to be a victim of an attack one must die?

The previous victims may be alive but they are still victims.


Someone published a pdf of scans they found from an abandoned Russian numbers station. It mostly appears to be filled with procedural notes.

Really wish there was a follow up. https://amp.reddit.com/r/IAmA/comments/10rkhh/i_have_visited...


I used to bookmark these kinds of comments, but the folder got too big.

I wish this was added to the list of comment guidelines of things to avoid – one could argue it is a shallow dismissal.


https://news.ycombinator.com/newsguidelines.html

Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: