by knur on 6/3/20, 11:45 PM with 17 comments
by memexy on 6/4/20, 5:34 AM
> Watching Myself Code
> One incredibly useful exercise I’ve found is to watch myself program. Throughout the week, I have a program running in the background that records my screen. At the end of the week, I’ll watch a few segments from the previous week. Usually I will watch the times that felt like it took a lot longer to complete some task than it should have. While watching them, I’ll pay attention to specifically where the time went and figure out what I could have done better. When I first did this, I was really surprised at where all of my time was going.
> For example, previously when writing code, I would write all my code for a new feature up front and then test all of the code collectively. When testing code this way, I would have to isolate which function the bug was in and then debug that individual function. After watching a recording of myself writing code, I realized I was spending about a quarter of the total time implementing the feature tracking down which functions the bugs were in! This was completely non-obvious to me and I wouldn’t have found it out without recording myself. Now that I’m aware that I spent so much time isolating which function a bugs are in, I now test each function as I write it to make sure they work. This allows me to write code a lot faster as it dramatically reduces the amount of time it takes to debug my code.
The main benefit comes from review. If you review the slow parts then you notice the patterns that slowed you down.
by Nextgrid on 6/4/20, 8:32 AM
Even private videos on YouTube can still be accessed by their engineers and might get exposed to the public in case of a bug.
Especially as a developer you most likely have access to confidential things, whether it's code (that could reveal internals of the business you're working for, or a very efficient algorithm that can be considered a trade secret and the company would want to protect it) or secrets (API keys, etc) that might be temporarily displayed on the screen while you're copy/pasting them around.
by PeterStuer on 6/4/20, 6:59 AM
by microcolonel on 6/4/20, 1:34 PM
by choward on 6/4/20, 6:27 AM
Pretty ridiculous especially with private videos. I would definitely shop the upload to YouTube part if I tried this.
by Rainymood on 6/4/20, 8:25 AM
Thanks for sharing, this is the stuff I browse HN for.
by vga805 on 6/4/20, 3:19 AM
by xchaotic on 6/4/20, 10:45 AM
by burnett2k on 6/4/20, 1:44 PM
by noyesno on 6/4/20, 7:38 AM