I'm trying to understand the construction often written as $V=\operatorname{Spec}(R)$, where $R$ is a finitely generated $\mathbb C$-algebra with no nonzero nilpotents.
At first glance, the notation $\operatorname{Spec}(R)$ is introduced just as the set of maximal ideals. If $R=\mathbb C[V]$ is the coordinate ring of an affine variety $V\subseteq\mathbb C^n$, we know that points of $V$ correspond to maximal ideals of $\mathbb C[V]$, so $V=\operatorname{Spec}(\mathbb C[V])$ is a legitimate equation on the level of sets. But to make $\operatorname{Spec}(R)$ a proper affine variety if we don't already know the variety that has $R$ as its coordinate ring, we need some way to equip the set of maximal ideals with the structure of an affine variety.
From what I read, the "proper" way to look at this, is learning about schemes. Since I'm only beginning algebraic geometry (to study toric varieties), I don't know anything about the theory of schemes for now.
The way I managed to equip $\operatorname{Spec}(R)$ with the structure of an affine variety is the following: Let $R$ be a finitely generated $\mathbb C$-algebra with no nonzero nilpotents. Pick generators $f_1,\dots,f_r$ and consider the surjective $\mathbb C$-algebra homomorphism $\varphi:\mathbb C[x_1,\dots,x_r]\to R$ with $x_i\mapsto f_i$. By the homomorphism theorem we have an isomorphism $R\cong\mathbb C[x_1,\dots,x_r]/I$, where $I$ is the kernel of $\varphi$. Since $R$ has no nonzero nilpotents, the ideal $I$ is radical. Let $V=\mathbf V(I)\subseteq\mathbb C^r$ be the affine variety given by the ideal $I$, then $\mathbf I(V)=\sqrt{I}=I$ by Hilbert's Nullstellensatz and therefore $\mathbb C[V] = \mathbb C[x_1,\dots,x_r]/I\cong R$. Since $V=\operatorname{Spec}(R)$ as sets, this construction equips $\operatorname{Spec}(R)$ with the structure of an affine variety.
Is this the right way to think about this, when I come across varieties defined as the $\operatorname{Spec}$ of some $\mathbb C$-algebra?