Is a 2011/2012 Macbook Pro (upgraded to SSD and 8Gb of Ram) any good for working with Xcode?

This year I'm going to start college. I'm going to take a bachelor and then a master degree in Computer Engineering.

I recently bought a new windows laptop (because in almost all my subjects I'm going to use Windows). I bought a Lenovo Ideapad 720s with the following specs:
-16GB Ram
-512GB SSD
-Intel Core i7-7700HQ
-NVIDIA GeForce GTX 1050 Ti 4GB

But the point is that I would like to learn how to work with Xcode, a tool that is exclusive of MacOS. At this moment, I'm not able to buy a new 2018 Macbook Pro.

So the question is if a Macbook Pro from 2011/2012 would be any good to work with Xcode (till I save enough money to buy a full spec new Macbook Pro)?
I would upgrade that Macbook to 500SSD and 8GB/16GB of Ram.

Xcode is simply an IDE, such things are not usually performance hogs. The CPU performance has not increased much since 2011/2012, so it's not likely that it'll have any trouble running even on an older machine like yours.

I would think so, Macs have been Intel-based for a decade, I did not know so about it started with Core 1 but that's only the first 2 years. 2012 should be fine for Xcode.

Speak on the topic of Xcode is strangely weird; is this to a vocational college that offers something like iOS Programming class? Or Mac OS Programming for that matter. Because in my experience Event-driven Programming was never part of mainstream college curriculum. Except a sting on obscure Tcl/Tk on a Solaris system, with even more obscure Perl binding. Which would translate to a wasted money buying a Macbook, either new '18 model or geriatric Core 2 Duo machine.