The period we're talking about was the mid '80s, pretty much the time when the PC took off. Conditions that were present in the market then will probably never repeat, even if you had all this knowledge today you'd find those now two decade+ old companies very well entrenched, and most of those problems solved for good.
If you could identify such a niche it would be interesting to see how you'd fare with todays tools at your disposal.
The dentist guy is a good example, he basically started out writing a ms basic program under dos to do some basic stuff and over time it grew to be the standard package for this region. My guess is that for every niche like that some guy has by now filled it and the company that grew out of it will be very hard to displace.
Computer programmers (good ones and bad ones) come to programming from all walks of life.
My personal collection of 'interesting' prior subjects are:
All of them caught the bug when frustrated with the programs they had at their disposal. Some started with excel (or even 1-2-3) and worked their way to the limitations of spreadsheet models, and decided to take the plunge, others started fixing some small problem in a program they had access to and took it from there.It's really interesting to see how many people were not in to computers in their schooldays that got sucked in to it.
The start-up bug and 'hacking' are two different things though, not necessarily related.
All of the examples above used their domain knowledge in the different field extensively and have made out very well because of that. (especially the dentist, that guy really impresses me, every year he has pretty much all the dentists in the country send him a check).