That seems fine. What about that laptop do you like?
I mean you could get a laptop that does those two things for half that.
You can program on a potato unless you are doing high end development. And watching videos is a basic requirement for anything from an atom processor and up.
I would probably look at any ultrabook with an Intel i5 8th gen and up, 8GB of memory, and an SSD of some sort. But on the budget side of things an i3 is fine. I don't usually recommend lower than that simply because those are the kind of computers that become obsolete very quickly. (Pentiums, Celerons, Atom, Athlons)
I probably wouldn't recommend a Ryzen based laptop only for the power consumption. Intel is still more or less winning on that front. (At least until Ryzen 3000 chips hit the market)