One excellent example of a note-taking app designed specifically for programmers is Boostnote. It does not have all of the features of a modern note-taking app (for example, it has formatting based on Markdown and organization based on folders, but it does not have web clipping or handwritten notes), but it does have snippets, which are something that programmers absolutely adore.
You have the ability to collect and organize multiple code blocks into a single note, as well as embed code blocks directly within normal notes or create separate snippet-type notes that are designed specifically for this purpose. In addition to that, it is capable of managing tasks using checkbox-based lists.
A brand new open-source application for taking notes, Boostnote is geared specifically toward computer programmers. Linux, Microsoft Windows, and Apple’s macOS are the supported operating systems. It is built on electron, and the operation itself takes place offline.