TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Dnote – Instantly Capture Your Coding Wisdom

100 pointsby stockkidabout 8 years ago

16 comments

stockkidabout 8 years ago
I made Dnote because even though I learn many things every day while coding, I forget most of them. The reason is that (1) I don&#x27;t write them down (2) I don&#x27;t revisit what I write down.<p>So I made a CLI to keep track of my engineering microlessons with minimal friction, without leaving the command line. Next step is to build automated digest email so that I actually remember my lessons.<p>I wrote more about why and how I am building it here: <a href="https:&#x2F;&#x2F;sungwoncho.io&#x2F;making-dnote" rel="nofollow">https:&#x2F;&#x2F;sungwoncho.io&#x2F;making-dnote</a>
评论 #14034957 未加载
评论 #14034018 未加载
评论 #14034614 未加载
评论 #14039502 未加载
Zikesabout 8 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;dnote-io&#x2F;cli&#x2F;blob&#x2F;master&#x2F;main.go#L271" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dnote-io&#x2F;cli&#x2F;blob&#x2F;master&#x2F;main.go#L271</a><p>Pinging your personal server every time someone runs your CLI tool is not something people would expect or be happy to learn about after the fact.<p>I understand you&#x27;re curious how many people are using your tool, but this isn&#x27;t the way to go about it.
评论 #14037315 未加载
评论 #14038240 未加载
hiimnateabout 8 years ago
This is cool, but why does it need to do the heartbeat with dnote.io?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;dnote-io&#x2F;cli&#x2F;blob&#x2F;master&#x2F;main.go#L272" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dnote-io&#x2F;cli&#x2F;blob&#x2F;master&#x2F;main.go#L272</a><p>This looks like the only place that you&#x27;re doing a network request, and it really slows down the program.
评论 #14038157 未加载
lallysinghabout 8 years ago
I think a quick:<p><pre><code> echo &quot;you can write dev tools as shell functions&quot; &gt;&gt;.notes </code></pre> Would be pretty close to the same thing?
评论 #14035429 未加载
评论 #14034627 未加载
评论 #14037332 未加载
评论 #14038189 未加载
评论 #14034057 未加载
评论 #14035171 未加载
ernestiparkabout 8 years ago
Nice tool to scratch your own itch. I&#x27;ve thought of doing something similar many times, but I&#x27;ve found that just using Evernote or Quiver and having a reasonable search works just fine for me since I tend to write meticulous notes. Having a separate tool might be an added behavior that discourages taking notes, but depends on each person&#x27;s habits I suppose.
评论 #14034487 未加载
评论 #14038304 未加载
评论 #14034293 未加载
alanbernsteinabout 8 years ago
Cool, similar to a system for line-based notes I&#x27;ve been using happily for about a year. I call it quickref, and the command is `qr`. This is my CLI usage:<p><pre><code> $ qr show available quickref files (in directory $QR) $ qr topic show all lines from $QR&#x2F;topic.txt a &quot;topic&quot; can be anything, but generally something like a language (py), program (blender), package (django), command (git). also things like audio, pdf manipulation, CLI image editing. $ qr topic pattern show all lines from topic.txt that match regex pattern $ qr topic term1 term2 ... show all lines from topic.txt that match all terms $ qr add topic &quot;line with spaces&quot; append &quot;line with spaces&quot; to topic.txt $ qr edit [topic1 [topic2 ...]] open specified topics with $EDITOR </code></pre> I don&#x27;t personally see much value in sharing&#x2F;aggregating the note files themselves, because it&#x27;s all about personalized keywords.
bphoganabout 8 years ago
I just took a look at the source, and I think this is the simplest non-trivial example of a Go command-line app I&#x27;ve seen. It&#x27;s exactly what I&#x27;ve been looking for to get started with a tiny little project of my own.<p>Thanks for sharing!
gus_massaabout 8 years ago
In the writing animation, it&#x27;s strange that the notes are deleted. I expected a fake &quot;Enter&quot; effect so the notes scroll upward like in a cli. (You will need a few more examples so the repetition is not annoying.)
Toenexabout 8 years ago
I find jrnl (<a href="http:&#x2F;&#x2F;jrnl.sh&#x2F;" rel="nofollow">http:&#x2F;&#x2F;jrnl.sh&#x2F;</a>) fits this a most other uses I have of text capture at the command line.
charlieflowersabout 8 years ago
consider spaced repetition to help the developer remember them (granted, that&#x27;s a big scope change, so consider trade-offs between separate app vs embedded, etc)
评论 #14034638 未加载
d--babout 8 years ago
Why not use<p><pre><code> echo &quot;crap&quot; &gt;&gt; notes.md </code></pre> It even supports markdown :D
评论 #14036147 未加载
magic_beansabout 8 years ago
This is really great, but the tagline sounds awkward. Something like &quot;capture your most useful coding snippets&quot; would be more to the point.
westoncbabout 8 years ago
Nice! I would probably use this if there were a web front end where I could browse&#x2F;search all the notes I&#x27;d taken.
tedmistonabout 8 years ago
Cool project. I use a journaling app with tags for things learned for a similar purpose.
评论 #14037712 未加载
fiatjafabout 8 years ago
Nice, but it shouldn&#x27;t be restricted to coding, I think.
评论 #14031832 未加载
Jimmie_Rustleabout 8 years ago
A command line utility to do what can already be easily accomplished in the command line without installing anything extra... neat-o &#x2F;s