Using a logbook to improve your programming
41–50 of 75 posts
Re: Using a logbook to improve your programming
#42Free tip: commit often and write proper commit messages.
Re: Using a logbook to improve your programming
#43Re: Using a logbook to improve your programming
#44https://news.ycombinator.com/item?id=4448361 has some good tips and tricks.
Re: Using a logbook to improve your programming
#45What the author says about aliases in the bashrc being evaluated only once when the bashrc is run when the shell session is opened is wrong. Go ahead and try this: Put, alias lb='vim ~/logbook/$(date "+%s")' in your bashrc. Source the bashrc. Run the lb command. It creates a new file with a different epoch timestamp each time. This `lb` command doesn't need to be a bash function. It can be an alias and work just fine…
:exec ':e ~/logbook/' . strftime("%Y-%m-%d.md")Re: Using a logbook to improve your programming
#46Re: Using a logbook to improve your programming
#47Re: Using a logbook to improve your programming
#48Earlier quoted context omitted.
Well, I use this logbook approach, in a text editor with persistent undo (which allows a few tricks, like emulating folding by deletion and relying on undo history to unfold). I approximately follow this algorithm: - Consider the high-level goal; can it be completed immediately? if yes, do it, otherwise break it into smaller parts. - First part is usually some kind of research. If it's a bug, it'll be a reproduction.…
Do you have any ideas on how to adapt this to someone who doesn't have a "present" internal monologue? If I concentrate, I can sense something akin to the typical "internal monologue", but it isn't present enough to be copied down, and even when it is it tends to move so fast that I only really get the conclusion.
When I started coding, as a teenager, I'd pace around the room explaining things to myself almost as if I was giving a lecture, so it's fairly baked into my thinking process. If you assert something, laying a statement out there, the process of hearing it can cause you to start to think other things: is it actually well-justified, are the assumptions behind it solid; what are the consequences and implications of the statement; all the things you might think if you heard someone else say something, and you're listening critically and intently.
Re: Using a logbook to improve your programming
#49Earlier quoted context omitted.
Each to their own of course but it seems to me, there's better places for all of that. If there's logic or design that's complicated and not properly commented or documented, then that's worth doing and sharing with the team. Work done for the day for me is typically captured in commits or bug updates - that way my colleagues can easily take over if I win the lottery or are suddenly taken ill. And stuff I learn is le…
> If there's logic or design that's complicated and not properly commented or documented, then that's worth doing and sharing with the team It's the meta also, it is capturing the models mentally and ideas and notes. This reduces cognitive load, and actually by making notes increases the chances of you remember something. > And stuff I learn is learned, so I don't need to write that down :-) Hey if thats the case the…
Re: Using a logbook to improve your programming
#50 function lb() {
today=$(date '+%Y-%m-%d')
fp="/home/you/logbook/${today}.md"
if [ ! -f $fp ]; then
echo "# ${today}" > $fp
fi
vim $fp
}