Dismissing this as always wrong is as unhelpful as treating it as a general method. There is a specific set of work where accepting code without reading it is the correct call, and knowing what those tasks have in common is what makes the judgement reliable.
What do the good cases share?
Short lifespan and cheap failure. If the code will be discarded within days and a mistake costs nothing worse than a wasted afternoon, reading it carefully is effort spent on something that will not exist next week.
The property that matters is not difficulty but consequence. A complicated script that will be run once and discarded is a better fit than a simple one that will run every night for two years, which is the opposite of how people usually judge these decisions.
What are the clear cases?
- One-off scripts. Reshaping a file, extracting data, renaming things.
- Prototypes. Built to answer a question, then thrown away.
- Personal tools. Used by you, on your machine, with no consequences.
- Exploration. Finding out whether an approach is viable at all.
- Learning what something looks like. Before building it properly.
Deleting the prototype afterwards is part of what makes it work, and it is the step people skip when the thing turns out to be usable.
Why are prototypes such a good fit?
Because the output of a prototype is a decision rather than software. You build it to find out whether something works, whether people understand it, or whether an approach is feasible, and once you know, the code has served its purpose.
Writing that carefully is the mistake, since careful code invites keeping it.
What makes one-off scripts safe?
That correctness is immediately checkable. A script reshaping a file either produces the right output or does not, and you can look at the result. Nothing depends on the code being sound, only on the answer being right.
The exception is anything destructive, which changes the calculation entirely.
What about internal tools?
A reasonable middle case. Something a small team uses for an internal task tolerates rough edges, and the cost of a failure is somebody being mildly inconvenienced.
The risk is that internal tools have a habit of becoming important, at which point nobody understands the thing everybody now depends on.
How do you keep it in the safe zone?
Decide before starting whether this is throwaway or keepable, and say so out loud. If it is throwaway, do not let it acquire users. If it acquires users, stop and rewrite it properly.
The drift from one to the other is what causes almost all of the trouble.
What is the specific value?
Speed of iteration on ideas. Being able to build four different approaches in an afternoon and see which feels right is genuinely new, and it changes what is worth trying rather than only how fast things get built.
Does it suit some kinds of software better than others?
Considerably. Conventional applications built from well-established patterns produce good results, because the training data contains enormous quantities of similar work and the conventional answer is usually right.
Anything unusual is where it degrades: a novel interaction, an uncommon data arrangement, or a domain with rules nobody has published. There the most probable implementation is the wrong one, and you find out through behaviour rather than through the code, which is a slow and frustrating way to discover a mismatch. The more ordinary the thing, the further this approach carries.
What is the boundary?
Anything somebody else depends on, anything holding real data, anything that touches money, and anything you will still be running in six months. Outside those, this is a legitimate and useful way to work rather than a compromise.