I kind of agree with the post. For me, this technique almost starts overlapping with literate programming[0].
One trick I use[1] is adding certain characters before the section name. e.g:
¡¡ settings
This makes searching and jumping between sections a lot easier.[0]: https://en.wikipedia.org/wiki/Literate_programming
[1]: https://ricardoanderegg.com/posts/write-apps-in-single-file/