I tend to concentrate really well for long periods of time but I kind of have to 'point' my brain towards what I want it to focus on, I find music helps me to isolate myself from the other crap going on. 😂
In my case, I think pretty much any music works for me, I just find something on YouTube Music and let it automatically play the next track but if I have a particularly hard challenge to solve, I do sometimes have to pause the music and talk myself through the problem though.
Sam, you seem to be in a very fortunate situation if you can use "whatever you like" as your music while programming. Take this advantage. Staying focused on a task is hard. You seem to deal with it with ease.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.