I think of computer programming script as a little like Elvish script etc... it's primarily there for mood and aesthetics. It seldom contributes to plot, theme or character, and so I think it should be used very sparingly at best.
But worse than that, unlike Elvish script, with computer script you're often writing for subject matter experts (SMEs). If you write some software script, you should expect computer nerdies to try to identify it, analyse it and speculate about it. That means you need to know enough to make it credible -- or else have a very good SME to source. As with most other sciences, I'd suggest that 'very good' SME means either at least postgraduate student, or a skilled professional who specialises in the specific IT area.
If you don't do this, then you can get some very embarrassing results. Most movies about computers make rudimentary mistakes about computer security. Gibson, whose aesthetics are normally very well-polished, often gets operational and architectural details about computing just plain wrong.
If you're writing a modern Information Technology (IT) thriller, then excerpted script, if well researched, might be used sparingly as a curio. But if you're writing anything futuristic, I'd strongly recommend avoiding it unless you're an IT boffin and your story's main task is to speculate about IT.