I've been freelancing since 2001.
In most years, somebody has told me my days are numbered because code just so much easier to write that anyone can build stuff and won't need coders.
They've never had the pleasure of seeing the almost universal level of ineptitude in the management layers of most companies big enough to have them...