Lurker News
I recently started integrating tmux and vim into my workflows. Obviously, it was a huge efficiency booster. What are some other tools (custom built or off-the-shelf), hotkeys, workflows that were game-changing for you as a dev? I'm interested in hearing about anything and everything (stuff from ctrl+l to clear the terminal to little-known git commands to larger-scale strategies like CI/CD)

Comments (522) 158 threads

jokab8 replies#
Obs studio. I record myself while coding anything. I pretend to be a bigshot coding streaming sensation (even if its just for me). Its fun as well as very helpful in so many ways.

1. It helps me stay focus on the task at hand. One recording for each task 2. It lets me practice how to articulate stuffs. Its like blogging but ephemeral (because i wont upload this) 3. It helps me get motivated. Cant let my "thousands" of viewers down 4. It lets me review my blunders so i know how to watch out for them in the future 5. Its fun. I can let off some steam because i can curse all i want, my audience is 18+ and fine with some "sentence enhancers". I am Filipino but i record in English so i get that extra bonus practice.

joshschreuder#
I imagine by speaking out loud you also get a type of "rubber duck debugging" that makes it easier to work through problems too. Nice idea!
balfirevic#
I don't have anything to add but I feel like a simple upvote does not do this idea justice - that's so awesome, I have to try it!
ZeroClickOk2 replies#
I loved this idea. Can you share your Obs defaults/workflow for this? By example, I work 8hs per day, how much space all this audio/video recording will take? What video/resolution/etc? Thank you!
jez#
Honestly for me it was just the act of being able to see my picture and my screen moving inside OBS, not even the fact that it was recording. I tried streaming myself live coding on Twitch a couple times and it was a blast. I felt like I was thinking so much more clearly. I didn't save the recordings—just the act of it all was worthwhile.
jokab#
the idea is to make a video that you can watch yourself. 8 hours of video isn't very enticing to watch. i suggest organizing the recordings by feature or task.

the only other thing I considered setting up in OBS is to make it work with Spotify to get a great bg music.

themodelplumber#
That's a great idea. I have done this with vlogs/podcasting and even blogging (created several fake blogs over the years, even in a journal on paper), but never while coding or otherwise doing stuff on the screen. Good stuff.
RobertKerans1 reply#
Thank you for posting this. A couple of months ago I built out the design then all the FE code for a prototype app, and recorded the whole process as J was doing it, mainly as an experiment to see where o could improve a few aspects of my designing/developing.

It was all a huge faff as I was just recording short screen captures using QuickTime. But it's definitely the most productive I've been for a very long time, as well as ending up with designs better than anything else I've done for the last year. I did it at work in the office over a few days, so couldn't really talk my way through it (which I think would have improved things still further). I haven't repeated the technique because of the (non programming) effort involved, but Obs seems very good, and something that should push me to try to implement the technique a lot more.

sitkack2 replies#
One thing that helped me was screen recording my editor session and then re-watching it on the highest playback speed. You start to get a feel for the arc of laying out the code, what refactoring operations look like. Most code is selection, map, map, filter, reduce, re-join, etc. Watching your actions get played back, allows you to re-think those thoughts but in the third person. Mirrors help, video helps, we are not ourselves, once you realize that, optimization becomes much easier.
cerberusss1 reply#
> Most code is selection, map, map, filter, reduce, re-join, etc

In which language do you code?

Continue this thread — 1 reply

RobertKerans2 replies#
> Mirrors help, video helps, we are not ourselves, once you realize that, optimization becomes much easier.

It's funny, in two of the areas I've worked in (tailoring and illustration) I was taught techniques that are analogues to this. With illustration, if you draw from a reference, one of the ways to improve accuracy is to turn the reference image upside down, which basically stops your brain seeing it as the thing it is an image of. Instead it becomes a structure of shapes, it's easier to draw. With tailoring, when cutting on a model/dummy, I was taught to continually check the work in a mirror instead of always looking directly at it -- again, I think a way to stop the brain automatically filling in structures and shapes, to force it to see the piece as a whole from a different perspective.

Continue this thread — 2 replies

bsima#
ha, I do this too, thought I was the only one
thoughtstile1 reply#
Alternatively, if you don't care about having an audience, you can just do private livestreams directly to YouTube via OBS. After your stream is concluded, it saves the livestream as a VOD. With this method, you don't have to worry about storing large video files when recording yourself.

Also, because it's YouTube, you inherit all of the benefits YouTube provides. You get the added benefit of having closed captioning for your videos after processing. You can watch through your recordings at 2x speed. And of course, you can share VODs to other people if you ever need to.
I've been treating YouTube as a personalized streaming website with free, unlimited storage.
If you do end up doing this, make sure to avoid any copyrighted content (Netflix, official music, etc.), otherwise YouTube will copyright strike your channel.

jokab2 replies#
I also considered this in the past but sometimes, I slip into procrastination mode unintentionally and might check my bank account (or pornhub) once in a while. So thinking my video is uploaded to somebody else's computer gives me the shivers.
mantap#
Have a user account just for streaming. Then you can block any sites that you don't want shown.
PaulRobinson1 reply#
It seems the point of doing this is it stops you procrastinating, because you're pretending to be a hot shot twitch streamer. If it were a live stream, you wouldn't start watching porn, you'd stay focused.

Basically the productivity tip is to pretend you're already productive.

Continue this thread — 1 reply

CodeGlitch#
Such a good idea.
vatotemking7 replies#
Use procrastination against itself.

So basically, when procrastinating, we tend to justify our inactions: just 1 more minute on Twitter, just one last scroll on my newfeed, lemme just check this subreddit really quick.
With reverse procrastination, you trick your brain into doing your intended task: Ok lemme just open Visual Studio Code and edit this one file then im good, I'll just change this one line of code, I'll just do 5 pushups then i'll stop. Then when you're on your 5th pushup, you say "surprise mr lazy pants, im actually doing 10!"
Once you get to do that one task, try to trick again your brain into doing another simple, easy task and before you know it youre in "the zone".
Maybe it depends on the person, but for me personally, it works pretty good.
Perhaps OP is asking for tools, but no amount of dev tools can help if you dont have the motivation to begin.

statictype2 replies#
Yeah, I tried that. Didn't work for me. I'm too clever for my own tricks.
elbear1 reply#
One thing you can try: actually stop after those 5 push-ups. Actually stop after editing that line of the code.

The idea is that I need to build tolerance for that task. If you keep at it, those 5 push-ups will become so easy that you will feel compelled to do more.
If it's not working, then there's another reason behind the resistance. Maybe what you're trying to do feels pointless. Try to notice your feelings and internal dialogue when you're trying to do that particular thing.

cheerlessbog2 replies#
Or just make the task smaller and smaller. Can’t finish 5? Do 1! Too much? Just get on the floor and hold the position. This strategy can’t fail, as you can always reduce your goal (and next time have to reduce it less)

Continue this thread — 2 replies

vatotemking#
What's happening is you are procrastinating doing the reverse-procrastinating. haha

You can start by doing something you actually LIKE doing - no tricks.

TuringNYC2 replies#
Why not use both together? I tend to browse Twitter and HN in-between builds, unit-tests, model mini-training, and simulations.

If the blocker is small enough to not be worth a context shift to another work-task, then Twitter/HN are a great mini break.

Scarblac#
The problem with that (for Internet addicts) is that that short break then always turns into one and a half hours.
maerF0x0#
> to not be worth a context shift

who says Twitter/HN doesnt constitute a context switch? In my experience, though very boring, sitting and waiting for the tests to pass is much more productive than even the slightest diversions. I believe this is due to focus and memory.

sbmthakur#
Interesting tip. Additionally, I believe attacking the cause of procrastination can be helpful in the long term. Just asking "Why do I need to check my Twitter feed?" and "Is it more important than the task I am currently tending to?" can go a long way in reducing procrastination.

https://www.bbc.com/worklife/article/20200121-why-procrastin...

ProZsolt#
I usually have my current project opened in Visual Studio Code at a separate desktop, so I can just swipe right and start coding. If there is an easy task I can complete quickly(not a lot of thinking) to hook me in it is pretty efficient.
jianzong#
The hardest part of this trick maybe being conscious of our actions while auto-pilot is often the default behavior.
tmaly#
I read this book on micro tasks by the guy that started the one pushup challenge. I have been doing pushups every day for over a year now. It takes a while to make it a habit, but it does work.
Joeri5 replies#
The things I've benefited from most are not tools but practices.

- Question the work
Always be questioning whether the thing you're doing really needs to be done. Is there a way to not do it? Is there a way to do something better instead?
- Park downhill
Before putting a project or incomplete task away, make notes of what the next thing was that you were going to work on. This lets you bypass that 10 minute orientation getting back into the project the next time you pick it up.
- Keep a single todo list outside of your head
You can only have one master, so keep a single todo list in order of priority. Whenever something pops up on your radar, put it on the list in the right spot and immediately forget about it. Check the todo list a few times a day to make sure you're working on the right thing, and whether you need to communicate that something low on the list won't get done in time. Aggressively try to weed out the list and remove as many items as possible, preferably by not having to do them (by reassigning, by replacing or by reprioritizing).
Benefits: (1) not forgetting to do any work, (2) free up your mind to focus on work instead of meta-work, (3) clear priorities, (4) detect early when work is going to get delayed.
To combine this with park downhill I either keep the per-task notes on what to do next right in the list (in a details field of the todo item), or I keep it somewhere else and have just a single top-level item "finish X" in the master list.

hamandcheese#
Re: questioning the work... I’ve found that there’s a certain threshold (that is surprisingly high, sometimes) where it’s easier and faster to just do something low value than it is to convince everyone else involved and reach alignment that it isn’t a valuable thing to do.
jikciraz5 replies#
Regarding the todo list, I find that having a text-format todo list for the current day can provide structure and sense of accomplishment (especially at the end of the day). After completing a task I would put a checkmark emoji in front of it. Such a list can also bring me back on track after a lunch or a mentally-demanding task.

If I know that I won't be able to do a certain task today, I put it in advance for the next day's todo list. Not completed tasks will roll to the next day.
Plan for May 11:

  - Contact Person 1 regarding Thing 1
  - [checkmark] Review Pull Request 1 made by Person 2
  - Implement Thing 1 from Feature 1
  - Read Email 1 from Person 3
Plan for May 12:

  - Implement Thing 2 from Feature 1
  - Investigate Thing 3
dd82#
This is similar for me, except I integrate that into a daily log via a running google doc. Lists off the tickets I did, meetings, conversations and action items to follow up on. We have two week sprints, and sometimes around retro its really easy to forget things that happened the week before that would be useful to call out.
nicoburns1 reply#
Apple notes is surprisingly nice for this style of todo list if you use a mac.
LeonB#
You can access your apple notes on a windows computer too, either by visiting iCloud.com or downloading the iCloud app from the Microsoft store.
zests#
This is the use case for why I started using org mode.
darekkay#
This is also perfect for a Daily Scrum, as you know exactly what you've been doing the day before.
tren#
I like taskade to manage this. I'll use the weekly Todo list template and it works well

Continue this thread — 3 more replies

notJim1 reply#
Learn your environment and learn it well (over time). Every single thing that seems like weird arcane magic invented by brilliant wizards is just code or words, and often not a lot of it. Go find that code and read it. Docs are good, but they are almost never complete enough, because truly exhaustive docs would simply be the code [1].

Similarly, with something like CSS or OAuth that have specs, blog/tutorial content often leaves out important details that will be relevant to you. If you get stuck, quit wasting your time with them, and go read the damn spec! If you're still stuck after that, go read the implementation.
Wherever you work, there is probably a page with like hundreds of ugly graphs of it. Learn what the graphs mean.
When you do this, a day will come where someone will say "Kanye, I've been banging my head all day on why users are sometimes seeing outdated results after updating their page". A little thing will happen in your head, and you'll say "That sounds like replication lag/a weird quirk of the CSS spec/a bug I noticed in the graphics code", and suddenly you'll discovered that you are the wizard.
I'm not saying to do this instead of doing those other things, or instead of whatever you're supposed to be doing. I'm saying do it as part of your practice of making software. You're probably gonna do it for like 40 years, so might as well make the investment.
[1]: https://en.wikipedia.org/wiki/Map%E2%80%93territory_relation (Second time referencing this on HN today)

Continue this thread — 1 reply

Load more comments