The next part is controversial but I personally believe the first unimpressive but totally general AI systems will appear in 2019. They will be animal-like intelligences, with real or simulated embodiment, inputs and outputs that can serve any purpose, online learners that can reuse the same nets across tasks.
As AGI becomes more powerful in the early to mid 2020s it will become apparent that most of the existing jobs will either be replaced or have to change to something the AIs can't or aren't allowed to do. AIs will be able to code.