I'm currently learning about complex analysis, and I keep coming across expressions involving $\frac{\partial f}{\partial \bar{z}}$. But I don't understand what this means. For example people might write $$\frac{\partial }{\partial \bar{z}}z\bar{z}=z$$ But how does that make any sense? Why can we regard $z$ and $\bar{z}$ as independent variable while they clearly aren't?
In some material I've also read that $\frac{\partial f}{\partial \bar{z}}=0$ can be interpreted as meaning that $f$ is 'independent' of $\bar{z}$. But $f$ depends on $z$, and $z$ can be thought of as 'depending' on $\bar{z}$, so clearly $f$ depends as much on $\bar{z}$ as it does on $z$.
This $\frac{\partial f}{\partial \bar{z}}=0$ condition, whatever it even means, seems to also be equivalent to $f$ being analytic, which then leads to people saying things like 'If $f$ can be expressed without involving $\bar{z}$ then it is analytic'. But this again seems very strange to me. For example $$f(z)=\bar{z}=z-2\Im(z)$$ Can certainly 'be expressed' without explicitly involving $\bar{z}$, but is not analytic, so this also doesn't make any sense to me.
Basically I'm asking for clarification on why in complex analysis people seem to be doing these dodgy things, and what they mean by them.