Stokes polarimetry is a mature topic in optics, most commonly performed to extract the polarization structure of optical fields for a range of diverse applications. For historical reasons, most Stokes polarimetry approaches are based on static optical polarization components that must be manually adjusted, prohibiting automated, real-time analysis of fast changing fields. Here we provide a tutorial on performing Stokes polarimetry in an all-digital approach, exploiting a modern optical toolkit based on liquid-crystal-on-silicon spatial light modulators and digital micromirror devices. We explain in a tutorial fashion how to implement two digital approaches, based on these two devices, for extracting Stokes parameters in a fast, cheap, and dynamic manner. After outlining the core concepts, we demonstrate their applicability to the modern topic of structured light, and highlight some common experimental issues. In particular, we illustrate how digital Stokes polarimetry can be used to measure key optical parameters such as the state of polarization, degree of vectorness, and intra-modal phase of complex light fields.