>
How would that better environment look?Come on, what kind of question is that? If I knew how to improve it I wouldn't be chatting here with you, I would be doing something about it.
Also, you should probably watch Bret Victor's videos, especially "The Future of Programming", if only to realize that we have been improving the programming environment since the days of punch cards, and are still in the process of doing so.
https://www.youtube.com/watch?v=8pTEmbeENF4