Many (most?) modern handguns don't have to be cocked before firing.
My personal handgun is a
Smith & Wesson 3913LS. The slide (I assume that's what you are referring to) has to be pulled back and let go in order to chamber the first round, but the gun is then decocked by pushing the safety lever/decocker at the rear of the slide to the "SAFE" position. This drops the hammer to the uncocked position, even though the round is in firing position in the chamber. The safety can then be left "ON" or it may be moved to "OFF," and in either case the gun is completely drop-safe and there are no springs compressed.
To fire, the safety is moved to the "OFF" position if it's not already there, and the trigger is pulled. The first 3/4 of the trigger stroke cocks the hammer, which releases when the trigger reaches the release point. The recoil operates the slide, cocking the hammer for subsequent shots (meaning the 2nd and following shots use a much shorter and lighter trigger pull).
This mode of operation dates from the 1930's and is often called "traditional double action" or "DA/SA" (meaning double action on the first shot, single action subsequently).
My wife's Glock is partially cocked by operating the slide to chamber a round, but is never fully cocked until the trigger is pulled. There is no difference between the 1st round and the 2nd round trigger pull. Glocks are a bit unique, but can be considered a variant of "double action only" (DAO).
Some guns (e.g., 1911's) have to start with a cocked hammer since the hammer cannot be cocked by the trigger mechanism. In such guns, the gun either has to be carried with the hammer back and the gun on SAFE (i.e., "cocked and locked" or Condition One), carried with a round in the chamber and the hammer down, needing to be thumb-cocked before firing (Condition Two), or with a full magazine and empty chamber, necessitating racking the slide before firing (Condition Three).