You'd be surprised how much crosses over between programming and various redneckery. Jankily slapping together an MVP on some shaky stack shares a lot with backyard cars, DIY home repair, and the like.
At the bottom, it's all learning and rearranging systems, using your mind to save you having to pay someone else to do it in a way that maybe doesn't match your vision.
It's all building shit. I'm in the finance industry by day, but I'm building furniture and ripping cars apart at night, and I can tell you - rednecks have a lot of shit figured out.
I grew up in a Huge mega city with sprawling art scene etc and went to college in Rural NY. Initially I(and everyone I knew) was afraid of the people, A.K.A. mingling with the Rednecks. Within a few weeks I had learned more than years in big city had taught me. Much like talking to mechanics in Cuba, when you don't have the parts or the people to fix it you figure out fun and funky ways to keep things alive. That and despite being an Immigrant/different/exactly who Rednecks were supposed to hate, all I ever found from everyone(all the way to their grandparents) was kindness.
But then again, I'd not move back, and may not even qualify as a redneck :)
Not that I think GP's comment was useful or constructive, but overreaction helps nobody.
If you can tie it to "I don't want to live near <x>," it is likely a slur of some sort.
Despite it mainly being associated with white people, I don't think it's equivalent to something like "white trash" which explicitly targets a race - "redneck" to me seems more akin to just "trashy", which is why I think it's more class-targeted as you mention.
I live in an area where seemingly intelligent people of all races occasionally mention that they think climate change is some sort of conspiracy and/or belief in evolution is a fad that will die out relatively soon. It's obviously not enough to get me to leave, but I really get why some people would have trouble dealing with that sort of thing.