Definition (regular function, coordinate ring)
Let $X\subseteq \mathbb{A}^n$ be an affine algebraic set. The ring of regular functions of $X$ or the coordinate ring of $X$ is $$ \begin{align*} A(X) = k[x_1, \ldots, x_n] / I(X) \end{align*} $$ where $I(X)$ is the ideal of $X$.
$k$ embeds in $A(X)$ and $A(X)$ is a $k$-algebra.
$X$ is irreducible $\iff$ $I(X)$ is a prime ideal $\iff$ $A(X)$ is an integral domain.