How AI and Software 2.0 will change the role of programmers

As artificial intelligence becomes increasingly capable of automating challenging cognitive tasks, will it one day make software developers obsolete?