In this expository article we give an overview of recent developments in the study of optimal Hardy-type inequality in the continuum and in the discrete setting. In particular, we present the technique of the supersolution construction that yield “as large as possibleȍ Hardy weights which is made precise in terms of the notion of criticality. Instead of presenting the most general setting possible, we restrict ourselves to the case of the Laplacian on smooth manifolds and bounded combinatorial graphs. Although the results hold in far greater generality, the fundamental phenomena as well as the core ideas of the proofs become especially clear in these basic settings.