Live data from Hacker News

Poka Yoke

en.wikipedia.org

41–50 of 64 posts

Re: Poka Yoke

#41

Why is it written in katakana?

Probably because ポケ is, causing katakana contagion of the 除け part. (I made up "katakana contagion"; don't bother searching.)

"katakana contagion" sounds so cool. I'm disappointed it's not a real thing. Could you explain what it means?

Re: Poka Yoke

#42
post #32

Earlier quoted context omitted.

When writing and running SQL one-offs interactively, I will surround it with `if 1 1 begin end` or comments, or add syntax errors at the top so that I won't accidentally run it without first selecting the part I want to run. I should get into the habit of writing `begin; rollback` instead for extra-safety. And I always write the WHERE clause before the DELETE or UPDATE keywords.

> And I always write the WHERE clause before the DELETE or UPDATE keywords. I sometimes get nervous typing 'rm -r' commands, since it starts with a very broad path, and only narrows-down as we type more, e.g. if we hit enter prematurely when typing 'rm -r ~/Downloads/archive.zip' we might delete our entire home directory, or all of our downloads. For this reason I often prefix dangerous steps with 'echo'; once I'm co…

Similarly, i sometimes start writing the command line with 'ls' or 'find', and then run it, and once i'm satisfied it describes the right things, i change the find to an rm.

Re: Poka Yoke

#43
post #27

> some automatic transmissions require the brake pedal to be depressed [to start] Hmm, I was always told to do so when I was learning to drive. At some point I stopped doing so and it’s never been an issue, should I be stepping on the brakes when starting my car?

If it’s a push button ignition you have to, so almost all new vehicles. On keyed automatics, no. There are VERY few cars on the road that would start in drive or reverse or low. This is an old warning.

Manuals on the other hand, again, almost all have a clutch interlock to start, but a lot of trucks and jeeps can have clutch defeats and will move when the starter is hit while parked in gear. It’s pretty dumb, but there are tiny scenarios off road you might want that. Most people just don’t want to press the clutch to start for some reason. In many of these vehicles it’s as simple as pulling a fuse.

Re: Poka Yoke

#44
post #30
post #27

> some automatic transmissions require the brake pedal to be depressed [to start] Hmm, I was always told to do so when I was learning to drive. At some point I stopped doing so and it’s never been an issue, should I be stepping on the brakes when starting my car?

Yes. Always. If your transmission is defective somehow you don't want the car to lurch when you start it.

Automotive EE here… I don’t think this is correct. If you are talking pre-electronic shift, your transmission still has position sensors and the engine or trans control module will not allow start while engaged. All vehicles have interlocks for this. Post electronic shift, it’s no question at all. You would need at least two errors in two completely separate circuits to get the vehicle to start in gear. Believe it or not, we think about these things.

For very very old transmissions, it’s probably possible to get this error, but nothing after 1995-1997.

Re: Poka Yoke

#45
post #32
post #20

I do this all the time for particularly scary yet infrequent scripts that I’m paranoid for accidentally executing. The simpler ones check an environment variable such as RUN_SCARY_THINGY is set to “yes”. The complex ones check that it has a timestamp that is within the past minute. Accidentally run the script without exporting the right var and it prints a message suggesting a cup of coffee.

When writing and running SQL one-offs interactively, I will surround it with `if 1 1 begin end` or comments, or add syntax errors at the top so that I won't accidentally run it without first selecting the part I want to run. I should get into the habit of writing `begin; rollback` instead for extra-safety. And I always write the WHERE clause before the DELETE or UPDATE keywords.

Quite a lot of SQL dialects allow the syntax "DELETE * FROM X" for this exact reason, allowing you to more easily change a select statement into a delete.

Re: Poka Yoke

#46
post #32

Earlier quoted context omitted.

When writing and running SQL one-offs interactively, I will surround it with `if 1 1 begin end` or comments, or add syntax errors at the top so that I won't accidentally run it without first selecting the part I want to run. I should get into the habit of writing `begin; rollback` instead for extra-safety. And I always write the WHERE clause before the DELETE or UPDATE keywords.

> And I always write the WHERE clause before the DELETE or UPDATE keywords. I sometimes get nervous typing 'rm -r' commands, since it starts with a very broad path, and only narrows-down as we type more, e.g. if we hit enter prematurely when typing 'rm -r ~/Downloads/archive.zip' we might delete our entire home directory, or all of our downloads. For this reason I often prefix dangerous steps with 'echo'; once I'm co…

I always write rm -rf for this reason

(I was surprised to learn that on some systems, the flags are in a fixed position, at the start!)

Re: Poka Yoke

#47

Slightly different to what is described here, but one of my pet peeves is the "nuclear button" features that devs put in their software - ie easy to activate features that add marginal utility to specific niche workflows but cause irreversible damage to everyone else. Firefox deleting every single one of your pinned tabs on close if you have a second window open is an example of this, as is YouTube jumping to a diffe…

I accidentally clicked "Forget about this site" on an item with google domain in Firefox history recently. Cue 5-minute freeze and having to re-login, not to mention losing the entire browser-local googling history.

Re: Poka Yoke

#48

Slightly different to what is described here, but one of my pet peeves is the "nuclear button" features that devs put in their software - ie easy to activate features that add marginal utility to specific niche workflows but cause irreversible damage to everyone else. Firefox deleting every single one of your pinned tabs on close if you have a second window open is an example of this, as is YouTube jumping to a diffe…

My personal favourite is the "clear" button at the bottom of forms, right next to the "submit" button.

Re: Poka Yoke

#49

Slightly different to what is described here, but one of my pet peeves is the "nuclear button" features that devs put in their software - ie easy to activate features that add marginal utility to specific niche workflows but cause irreversible damage to everyone else. Firefox deleting every single one of your pinned tabs on close if you have a second window open is an example of this, as is YouTube jumping to a diffe…

"as is YouTube jumping to a different part of the video every time you bump one of the numerical keys on your keyboard. "

Niche workflows? This is one of the most useful features! :)

Re: Poka Yoke

#50
post #20

I do this all the time for particularly scary yet infrequent scripts that I’m paranoid for accidentally executing. The simpler ones check an environment variable such as RUN_SCARY_THINGY is set to “yes”. The complex ones check that it has a timestamp that is within the past minute. Accidentally run the script without exporting the right var and it prints a message suggesting a cup of coffee.

The above solution unfortunately doesn't work for those of us who use fzf (or other fuzzy runners), since that RUN_SCARY_THINGY=yes var will be part of the matched line which you will run inadvertently in your coffee-deprived mind. I rarely make mistakes while consciously typing out commands, but running commands with wrong arguments because I didn't pay enough attention on the matched line does happen semi-regularly. Doesn't help that since doing stuff with fzf is much faster than typing out full commands, that your brain sometimes just doesn't have enough time to ask -- wait, should I be running this right now?
Post reply on HN