If you're in it purely for the joy of code, you can still code to your hearts' content. If there's a profit or career motive, then it's different.
If you're producing journalism for the pure love of communicating your findings you don't have a profit motive. If you do have a profit motive, well, you'll need to secure a profit in addition to or in place of your love of the game.
Estimate how much you think it costs to write a single article and divide that by how much each user would have to pay if e.g. a million people read it. It's pennies each, sometimes fractions of a penny. But now how do you allow those people to each pay one cent without requiring them to do far more than one cent worth of signing up for something, and without being coerced to tie their reading habits to their government ID through the banks?
So instead they try to charge for subscriptions, which then falls apart because you don't want to read a hundred articles from one publication, you want to read one each from a hundred publications, but you also don't want to pay for a hundred subscriptions.
If you actually want to solve it you need a digital payments system with low transaction costs that allows the buyer to remain anonymous. Which ads have been the stand-in for since the actual thing is heavily deterred if not outright banned by existing regulations.
I honestly skip paywall articles or just click the archive/wallhop link so frequently that I may have forgotten one is expected to pay for WashingtonPost...