Coding and Gaming does not compute. If the laptop/desktop is for both your needs then often you'll resort to gaming when lacking motivation and waste too much time on it, then come to us and bitch about how you don't have sparkling ideas and motivation. Also the computer gets garbled up with shit from games and whatnot which makes the laptop near impossible to work normally at.
When I was buying a laptop I set a point to get a cheap one that is fast enough for my coding/work needs and wouldn't run any games, except for flash crap and those antique ones ofc
So that was Acer eMachines Zsomenumbers, and I love it.
Even when I have a desktop I could have chose a high-end one, but instead, I chose a crappy one with barely 1GHz and like 256MB ram, that was buzzing all the time and shit because I knew if I couldn't play games on it, I would focus more on work.
I do not regret my decisions regarding this, because I probably wouldn't be where I am now.
So I'd recommend before buying to set it straight which is more important for you - coding and probably making a career or gaming and becoming a couch potato. It's up to you
Also for gaming just get a console - problem solved.