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.

Ask HN: What are the cool life hacks for Developer?

71 pointsby user7878almost 9 years ago
What are the cool life hacks for Developer, you are applying in day to day life?

20 comments

aculveralmost 9 years ago
Being a developer is a certified superpower, so it&#x27;s fair to expect that some of the life hacks unlocked by being a developer are on a life changing scale. Here&#x27;s my recommendation:<p>Build a machine that prints money.<p>Find a problem that regular business computer users are solving with some combination of raw effort and a spreadsheet to keep track. Write an app that accomplishes the same thing, but better, and in a mostly automated fashion, and charge them monthly for access to your tool.<p>It&#x27;s a lot of work upfront, but the gains you make each month compound. Most of the customers you sign up this month will still be customers next month and you don&#x27;t have to resell them. Instead you focus on selling new customers, who themselves will be around the month after that. Eventually, the amount of money the machine prints each month is greater than the effort you&#x27;re putting into it each month, and you&#x27;ve freed yourself from exchanging time for money.<p>In terms of life hacks that are particularly attainable for developers specifically, I think starting a SaaS is near the top.
评论 #12276921 未加载
评论 #12273819 未加载
cyberferretalmost 9 years ago
Have another, totally unrelated to coding (or even computer) passion nearby to your work desk that you can go to in order to reboot your brain from time to time.<p>I have my collection of guitars behind my work desk, and every time I am waiting for a download or process to run, I force myself to NOT just open another browser tab for Facebook&#x2F;Youtube or revisit my emails and instead reach for an instrument and take my brain to another place for a short while by playing something or practicing some scales&#x2F;modes.<p>I also do this when I start feeling overwhelmed with to-do tasks or debugging tricky code. Forcing my brain to think about something completely different and then coming back prevents burnout for me and makes me come back to problems with a different mindset.<p>Never mind if it is a musical instrument, your cat, card tricks, painting - whatever. Take a mental break.
评论 #12274086 未加载
评论 #12274055 未加载
geocaralmost 9 years ago
Go outside.<p>It&#x27;s not just important to actually enjoy the life you&#x27;re trying to hack together, it&#x27;s also healthier, and if neither of those reasons will convince you, it&#x27;ll also make you a better programmer: Too many programmers think they need to get in front of a screen to start &quot;programming&quot;, when in actuality they&#x27;re just spending themselves, and responding to what they see. Only <i>thinking about the problem fully</i> will make your programs smaller and faster.
评论 #12274148 未加载
评论 #12274144 未加载
评论 #12274153 未加载
chxalmost 9 years ago
Twenty minutes. <a href="http:&#x2F;&#x2F;www.businessinsider.com&#x2F;the-first-20-minutes-after-work-2014-6" rel="nofollow">http:&#x2F;&#x2F;www.businessinsider.com&#x2F;the-first-20-minutes-after-wo...</a> this is amazing.<p>Elevate your command line game:<p>autojump <a href="https:&#x2F;&#x2F;github.com&#x2F;wting&#x2F;autojump" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wting&#x2F;autojump</a><p>ag <a href="https:&#x2F;&#x2F;github.com&#x2F;ggreer&#x2F;the_silver_searcher" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ggreer&#x2F;the_silver_searcher</a><p>Use zsh and put this in .zshrc <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;chx&#x2F;f9509cb2db6595be334ca2404fac8a91" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;chx&#x2F;f9509cb2db6595be334ca2404fac8a91</a><p>Now you can jump to directories freely with just j afewcharactersfromthedirname, search their contents with ag super fast and if you ever figured out something on the command line, you can recall it after this. For example, I remember I was searching dangling commits with awk so I do Ctrl+Rgit*awk and there it is. (I posted this particular command to <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;21903972&#x2F;search-for-string-in-dangling-commits-in-git" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;21903972&#x2F;search-for-strin...</a> but that&#x27;s less relevant to the topic here so I won&#x27;t repeat here.)
poppingtonicalmost 9 years ago
Use this perl project called TagTime &lt;<a href="https:&#x2F;&#x2F;github.com&#x2F;dreeves&#x2F;TagTime&gt;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dreeves&#x2F;TagTime&gt;</a> to track your own time. Description from GitHub: To determine how you spend your time, TagTime literally randomly samples you. At random times it pops up and asks what you&#x27;re doing right at that moment. You answer with tags.<p>Use Beeminder &lt;beeminder.com&gt;, a commitment device with a sting. Make a commitment, and give them a price (in USD) for failing to meet that commitment. They take your money if you don&#x27;t do what you said you&#x27;d do. They have APIs for many services such as RescueTime and TagTime, and an Android app.<p>Note: If you&#x27;re the kind of smart person who always finds a way out of doing the things you claim to care about, then if these two tools don&#x27;t get you to do those things, you&#x27;ll at least think deeply about, and know if you <i>really</i> cared about them.<p>You either get <i>value</i> (success in the things you care about), or <i>information</i> (learn what you don&#x27;t care about, that you thought you cared about). Then you can use the <i>value of that information</i> to reorder your preferences in an optimal way.
评论 #12273913 未加载
评论 #12273891 未加载
bdepazalmost 9 years ago
Haven&#x27;t really got some myself, but I read this article a while a go <a href="https:&#x2F;&#x2F;github.com&#x2F;NARKOZ&#x2F;hacker-scripts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NARKOZ&#x2F;hacker-scripts</a>. This guy&#x27;s script to make coffee is pure genious ;-)
评论 #12275904 未加载
评论 #12273778 未加载
评论 #12273822 未加载
roryisokalmost 9 years ago
Use a clipboard manager. I wish I&#x27;d started this a lot earlier in life. The amount of times you need the second last thing you copied is surprising. I went through a few before I settled on Ditto, which works over remote desktop too.
评论 #12273835 未加载
评论 #12273985 未加载
评论 #12276712 未加载
评论 #12273980 未加载
asimuvPRalmost 9 years ago
Automate your job. I&#x27;m steadily building tools that make my job easier and thus me more efficient. I have a nice django app scaffolding generator that makes writing code quicker. I just need to add the model fields and the logic to the views. Everything else is mostly generated. In fact, I&#x27;m moving towards automating a lot of the code I write. Less strain on my hands.
评论 #12273871 未加载
评论 #12276599 未加载
roryisokalmost 9 years ago
AutoHotKey: if you&#x27;re on windows like me (and starting to feel in the minority on here), this is a must. I&#x27;ve been evangelising AHK for the last 7 years at least, to anyone who will listen. It has saved me days of my life in accumulated time. Here are a few samples of things from my main script which I use daily<p><pre><code> CTRL+@ - paste my email address. saves buckets of time logging into things, signing up to things etc ]t - paste date-time in the format 2016-08-12 09:53 ]d - paste date in the format Friday, August 12, 2016 #ho - open windows hosts file in notepad ALT+MOUSEWHEEL - page up, down with each movement F11 - switch to thumbnail view in explorer SHIFT-F11 - switch to detail view in explorer </code></pre> I also have a universal autocorrect script which I&#x27;ve filled with common typos so I can&#x27;t type &#x27;pulbic&#x27;, &#x27;widnows&#x27;, &#x27;anywya&#x27; etc (had to disable the script to type those in here)<p>On top of this, an autocomplete &#x2F; intellisense script for html &#x2F; js dev.<p>Chocolatey: Apt-get for windows. If you ever need to install anything, you can open a web-browser, google the thing you want, open the page, find the installer, download it, open explorer, find the exe, run it, step through the options and get on with your day. OR, if you have Chocolatey installed you can just open powershell and type &quot;choco install vlc&quot; or whatever it is, silently.<p>The best feature of choco is that you can chain things together. You can write a script that installs everything you need in life, and have a new machine up and running in no-time.<p>Synergy+: If you use more than one machine, you can share the mouse, keyboard and clipboard - even across operating systems. Put the two screens side by side, configure, and they might aswell be one machine with two monitors.
评论 #12281806 未加载
评论 #12274334 未加载
wingerlangalmost 9 years ago
Automation. My number one thing might be learning to use multiple cursors in Sublime, I probably jump into it 10 times a day to psuedo-automate text editing. I wrote of one example here: <a href="http:&#x2F;&#x2F;jontelang.com&#x2F;blog&#x2F;2016&#x2F;06&#x2F;22&#x2F;sublime-efficiency.html" rel="nofollow">http:&#x2F;&#x2F;jontelang.com&#x2F;blog&#x2F;2016&#x2F;06&#x2F;22&#x2F;sublime-efficiency.html</a><p>Another thing is, also automation, to use Hazel to automatically keep my temp files manageable. Basically, when I file is older than X days, move it to a &quot;need review&quot; folder. This mean that there is a steady but very very manageable flow of files to delete or move to their correct location. I also wrote about it here: <a href="http:&#x2F;&#x2F;jontelang.com&#x2F;blog&#x2F;2015&#x2F;08&#x2F;17&#x2F;hazel-is-great.html" rel="nofollow">http:&#x2F;&#x2F;jontelang.com&#x2F;blog&#x2F;2015&#x2F;08&#x2F;17&#x2F;hazel-is-great.html</a>. My Downloads folder have not been 1000s of files since I started with this.
评论 #12274038 未加载
评论 #12274134 未加载
hieuphamalmost 9 years ago
Learn 1 new thing. Talk more with girlfriend or family. Help 1 guy who is younger. Answer 1 question on Stackoverflow&#x2F;Quora. Blog 1 short article. Try to code a little better. Read a chapter in a book. Think about what we did today, how to improve tomorrow =&gt; Life is happiness, follow our heart and live better every day
nanospeckalmost 9 years ago
Start asking questions in Stack Overflow. I wish I started doing this years ago. I used to be just a non participating reader for a long time. Once I got the taste of it, I ask questions frequently now. If you are stuck with an issue for over 2 hrs, ask in SO. There are so many knowledgeable people who will guide you to in the right path and save you hours&#x2F;days! The best part is you&#x27;ll get a response when you are back after coffee or max on the next day morning when I come to work. I&#x27;ve started trying the same thing in HN as well lately :) .
评论 #12273958 未加载
greenspotalmost 9 years ago
Nobody mentions &#x27;meet women&#x27; [1]. Maybe too simple but from my perspective an important part in this equation.<p>Meeting women is a bit like doing sales. it&#x27;s more of an outgoing activity and being extrovert. So rather the contrary of coding. This is refreshing, gives me balance and a nice change to my day to day life as a coder.<p>[1] For the sake of verbal simplicity, I use the term &#x27;women&#x27; for people of the opposite gender or the gender you are into. And also for the sake of simplicity and decency, I use &#x27;meet&#x27; for all kind of interactions.
评论 #12274149 未加载
评论 #12277615 未加载
评论 #12277652 未加载
roryisokalmost 9 years ago
Use DuckDuckGo as your default search engine. It answers your code questions inline! It seems to do this by scraping the first accepted answer from the first stackoverflow post match to your query.
gabemartalmost 9 years ago
If you&#x27;re not already, use browser shortcuts when you know where you want to go.<p>A few weeks ago I read about an American civilian pilot who was out on a training flight and by chance ran into the Japanese air fleet over Pearl Harbour - becoming one of the first Americans to learn of the imminent attack. I don&#x27;t remember any details beyond that. If I wanted to read about that pilot on wikipedia, I guess I could navigate to Google.com, enter some relevant search terms, scroll through the results until I find one from Wikipedia that looks right, click on on, read it, see if it&#x27;s the correct one, etc.<p>But because I search for wikipedia articles about stuff all the time, I have a chrome shortcut set up that does a Google &quot;I&#x27;m feeling lucky&quot; search with &quot;inurl:en.wikipedia&quot; appended to it, so I just type in my browser bar<p><pre><code> w civilian pilot first to see japanese air fleet </code></pre> and hit enter, and it takes me straight to <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cornelia_Fort" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cornelia_Fort</a><p>Once you get used to going straight to where you want to go, using the &quot;search and choose&quot; method becomes painfully frustrating<p>Edit: to be more clear, I have a chrome &quot;custom search engine&quot; set up with the keyword &quot;w&quot; and url:<p><pre><code> http:&#x2F;&#x2F;www.google.com&#x2F;search?ie=UTF-8&amp;q=inurl:en.wikipedia %s&amp;btnI=745 </code></pre> this obviously routes your wikipedia navigation through google, which some people may have a privacy issue with, but I don&#x27;t when it&#x27;s something I would search google for anyway
评论 #12274070 未加载
评论 #12274208 未加载
eswatalmost 9 years ago
Having worked mostly on refactoring projects in the last few years, I&#x27;ve learned that too many projects end up in the gutter because &quot;that&#x27;s just the way it is&quot; was the mindset of too many developers working on them when they faced resistance like tight deadlines or faced with spaghetti code they didn&#x27;t want to deal with.<p>Applying to real-life, this means making excuses for goals or habits you want to achieve, instead of finding clever solutions to meet them.<p>Example: you want to develop a habit of listening to podcasts or audiobooks. But excuses like &quot;I don&#x27;t have a commute with dead time to listen to them&quot; or &quot;I can&#x27;t focus if I listen to while I work&quot; pop up. You could just say to yourself &quot;that&#x27;s just the way it is&quot; and not bother developing the habit. Or you can push through the resistance, get creative and figure out other ways to make the time for the habit. Personally as I don&#x27;t have a commute to work and can&#x27;t listen while I work, I listen in pockets of time like when I&#x27;m in the shower or going in-between meetings.
andretti1977almost 9 years ago
I do love bushcraft! I&#x27;m especially passionated with fire-starting techniques and adore to practice them in the woods, but when i can&#x27;t go outside i watch a lot of youtube related videos.<p>I had also started a small website (<a href="http:&#x2F;&#x2F;bushcraftvideos.woodsandrocks.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;bushcraftvideos.woodsandrocks.com&#x2F;</a>) to &quot;collect&quot; the best of them a few months ago but i&#x27;m facing a &quot;break&quot; due to work and personal commitments.<p>Starting a fire (small and safely) in the nature using a knife and a firesteel is an inspirational experience!
Artoemiusalmost 9 years ago
Use Workflowy to manage everything in your life that needs to be in a list (<a href="https:&#x2F;&#x2F;workflowy.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;workflowy.com&#x2F;</a>)<p>If you are on Chrome, use Tabs Outliner to manage your tabs (<a href="https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;tabs-outliner&#x2F;eggkanocgddhmamlbiijnphhppkpkmkl?hl=en" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;tabs-outliner&#x2F;eggk...</a>)
评论 #12280579 未加载
评论 #12276725 未加载
SeriousMalmost 9 years ago
Automate! I use LinqPad (.net,c#) to write small tools that automate daily tasks or help me looking up information that I need more than three times a week.
herozeroalmost 9 years ago
cool