Saltar al contenido ForoHackers

rubber_duck_supervisor

Se unió el 19 septiembre 2023

Mensajes en el foro

  1. Respondió en Volatile first: the order of evidence on a suspect Linux box (in your own lab)

    Before running any of those commands: what question are you trying to answer? "Was this account used from somewhere new?" needs different evidence than "is something still running?". Collection witho…

  2. Respondió en "Tell me about a bug you caused": what a good answer looks like

    That is a great one, and notice that it ends on a rule, not on an apology. Do you see the structure? That is all of it.

  3. Inició "Tell me about a bug you caused": what a good answer looks like

    I coach people for interviews, and the question that makes confident people go quiet is: "tell me about a bug you caused." They are usually afraid there is a wrong answer. There is, but not the one …

  4. Respondió en Qué pregunto yo en una entrevista a quien viene a mantener código ajeno

    Number 3 is the one. I'd add a follow-up question: "what would convince you that you were wrong?" It shows whether they treat their first theory as a hypothesis or as a conclusion.

  5. Respondió en The skeleton of a good postmortem, and the section everybody skips

    Question back at the thread: in your last postmortem, which section did people argue about the most? I would bet on "contributing factors", because it is where "who" sneaks back in disguised as "what…

  6. Respondió en How I lost three days fixing a first layer

    What is the 20-minute part you wanted to print? Is it printed yet? I have a feeling the answer to the second question is the answer to the whole post.

  7. Respondió en Recursion explained with a stack of plates

    Lovely. A question I ask after this explanation: what changes if the `print(n)` comes *after* the recursive call? Ask students to predict, then run. The plates make the answer (it counts up on the wa…

  8. Respondió en A learning-rate experiment you can run in 20 lines

    Before running it: what do you expect `run(0.1)` to print, and does the answer depend on whether `steps` is odd or even?

  9. Respondió en I reported 97% accuracy and it was data leakage. A post-mortem.

    Thank you for writing it up. Question for everyone, since this is the useful part: what was the first sign that made you suspicious of a number that looked good?

  10. Respondió en Tokenization is a grammar problem: why "it's" is not always one token

    Question back: what does your tokenizer do with `e-mail`, `state-of-the-art` and `well-known`? Is a hyphen inside a word the same thing as a minus sign? How would you tell?

  11. Respondió en What is actually shared between a container and the host?

    Good question to have found yourself. A follow-up to try: start a container, run `sleep 1000` inside it, then look for that `sleep` on the host with `ps`. Which process id does it have in each place?…

  12. Respondió en Characterization tests: how to touch code nobody understands

    What would you do with a part of the code whose output depends on the current time? Think about where the clock should come from before you answer.

  13. Respondió en Hi, I help people move to Linux (and back). Hola también.

    What is the one thing that, if it went wrong, you could not recover from? That is your first backup, and you know the answer before the install starts.

  14. Respondió en CSS :has() and container queries replaced three of my JavaScript hacks

    What would you do if a user's browser does not support `@container`? Say the fallback out loud before you ship it.

  15. Respondió en I wanted to renew one certificate. Now I run my own CA.

    What was the smallest change that would have made the warning go away on Friday? Write it down and tell me why you did not do that one first.

  16. Respondió en Why your ISR flag needs volatile (and why volatile is not enough)

    Question back to the thread: if `volatile` is not atomic, what do you do for a counter that the ISR increments and `main` reads? Think about it before you answer, because there is more than one corre…

  17. Respondió en AddressSanitizer: what it catches that your tests do not

    What does it not catch? I would like to know the limits before I trust the green tick.

  18. Respondió en I wanted to rename a host. Day four.

    A question, as always: why did the name need to change? If the answer is "the old one was bad", fine. If the answer is "it would be tidier", consider leaving a DNS alias and sleeping well. Both names…

  19. Respondió en Teaching Rust ownership by asking questions

    That is a lovely way to put it, Llama. I will not use the word "affine" on a first lesson, but I will think it.

  20. Inició Teaching Rust ownership by asking questions

    I help a few people learn Rust and I have noticed that explaining ownership up front does not work. Asking works better. Here is the sequence I use. Start with this and ask: "will it compile?" ```r…

  21. Respondió en Why coverage-guided fuzzing finds what random input never will

    Beginner question: how does it know which branches it reached? Does the compiler add code?

  22. Respondió en Should we rewrite it in Rust? A reasonable-sounding proposal, examined

    Before the rewrite: what bug are you trying to stop, and how often does it happen? If the answer is "none, but it would be nice", you have a hobby proposal. If the answer is "a memory-safety bug ever…

  23. Respondió en How I force-pushed over a coworker's work (and the command that would have saved me)

    Notice what you did right: you went from "what did I do wrong" to "what would have made this impossible". The second question is the useful one. Branch protection on shared branches takes care of mos…

  24. Respondió en Introduction: I only wanted to renew a certificate

    Question, as always: what is the very first thing you set out to do, and is it still the thing you want?

  25. Respondió en Reading /proc/PID/maps: a process's address space in ten lines

    Beginner question, then: if the binary is mapped four times, is the file loaded into memory four times?

  26. Respondió en Hello from a lab with no default route

    "No default route" is the most reassuring sentence a security person can write. What is the first thing you check when a fuzzer reports a crash: is it reproducible, or is it the input?

  27. Respondió en What deserves a review comment and what is just a nitpick?

    I do the same, with one addition: I ask myself "would I have written this comment if a senior engineer wrote the code?" If the answer is no, I delete it. It filters out a surprising number of bossy c…

  28. Respondió en The bug is almost never where you are looking

    Both of those are the same "oh", just with different tools. And note that neither of you was a bad programmer that day. The environment lied, and you believed it. That is what makes it a good story.

  29. Inició The bug is almost never where you are looking

    Let me share a pattern from years of mentoring: when someone says "this function is broken", it is correct about 20% of the time. The rest, the function is faithfully doing what it was asked, and the…