While that may be true for generically publishing the work online, there are dedicated disclosure journals that are included in prior art searches by patent examiners. If you want to publish as an alternative to patenting, this is where you do it.