I was told my code is old.

Posted by snotreallyme@reddit | ExperiencedDevs | View on Reddit | 644 comments

Principal Engineer 30+ YOE. I delivered a project on Node using Typescript and modern Javascript. I was told my code is old because I use Express and the node module pattern, stuff that has worked very well for me in the past, serving billions of requests. Anyway the CTO who's only got 10 YOE in a niche tells me this and refuses to accept my work and has reassigned it to a senior engineer a few years out of college. I'm likely on my way out of the company now. I'm too old.

Am I? Should I have used Koa or something new and sparkly? Ditched the module pattern for dependency injection? Or is this CTO a moron and I just need to get out?