Re: "a tool Microsoft uses to hide its source code from being copied"
"It's a database. Are you seriously suggesting all databases can be replaced with text files?"
Quite - databases are a far more scalable and sensible way of storing configuration informatino than flat text files.
"But I'm suggesting the registry could."
That would be a massive step backwards.
"And the fact that running code from it is even allowed is a serious enough flaw that it should be deprecated, locked from further use and left to die."
It doesnt run code from the registry. The registry entries are passed to Javascript as a process start up command.