Well, yes and no. Lots of developers do write code like that.
They type 10 or 20 or 50 lines of code into their script, and then
try it out. Lots of things will break, because developers type
too fast and make mistakes. But then they’ll fix each problem,
one by one by one. And for lots of developers, that’s just fine.