If you publish your idea before filing a patent, you will not be able to patent it, because your own publication will be held as prior art.
[1] https://homepages.cwi.nl/~paulk/patents/isnot/node9.html
https://patents.google.com/patent/US20040230959A1/en
I'm a former patent examiner, and from that experience, I know that attorneys frequently write things in applications that they think probably won't be allowed. They're testing the limits of what will be allowed.