TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: People who enjoy coding in free time, what does your process look like?

19 点作者 vdizzle大约 4 年前
Do you have particular snacks? Do you take your laptop to a public place with wifi? Is there some kind of ritual that gets you into the mood to write code?<p>I don&#x27;t program in my job, so coding in free time has been a wonderful creative outlet. These past few weeks, however, have been a slog to open the IDE; often distracting myself instead with watching edu material on writing better unit tests, binge reading HN, etc.<p>One new habit which has somewhat worked was inspired by Neil Gaiman&#x27;s writing process (ie. sitting in a quiet place where the only two choices are to write or do nothing until boredom inspires writing) - I&#x27;ve started sitting at home, without music and with a notebook, where the only two choices are to do nothing or write pseudo code for the immediate next exciting feature.<p>As you may have guessed, at this moment this new process isn&#x27;t quite working; curious to hear from anyone who enjoys coding at home &#x2F; in free time: what does your lifestyle around those programming hours look like? Thanks!

12 条评论

aristofun大约 4 年前
Coding by nature is nothing like a regular hobby, like dancing or playing guitar, or skiing...<p>There is no inherent pleasure in the process itself.<p>In solving puzzles - yes, in overcoming obstacles - sure, in seeing final product working and not failing - of course.<p>But coding itself is a boring but inevitable process of reaching some goal(s).<p>Thus the only reliable and long lasting source of motivation is a specific idea (product) in mind you want to create (no matter how small or simple).<p>This what can drive you no matter whats snacks or laptop or wifi you have. Without any rituals.<p>But pushing yourself to code without a good goal is a waste of time.
评论 #27033113 未加载
评论 #27018995 未加载
评论 #27021436 未加载
Jugurtha大约 4 年前
I remove frictions. An IDE is a friction, so I&#x27;ll use the interpreter directly to write snippets of code and play with a library or prototype a feature or something. Small functions. This works just like foreplay or messing around because after a bit of doing this, I&#x27;m turned fully on and possessed and banging much more serious and fully fledged code. It gets me fully in the zone, and I regain situational awareness some time after.<p>This is akin to playing a game in a half-assed way, and before you know it, you take off your jacket to really play. If you were told to come with the proper attire, you probably would have declined or postponed or procrastinated, hence removing friction works.<p>I recently have tried putting on sounds. Nature sounds. There are tracks that go for more than 8 hours. These cover &quot;Dirac impulse&quot; like sounds in my physical location, which can burst my bubble. I&#x27;m fine with noise in a bus (I&#x27;ve coded entire projects while commuting).<p>One &#x27;hack&#x27; to improve productivity is to work disconnected from the internet and with an unplugged charger. I had a laptop that could only hold about two hours, and boy that was greatly motivating to code something up before the laptop shut down. Even with my crurrent laptop, there just is something about working with &#x27;finite energy&#x27;. Removing frictions and adding restrictions seems to work.
评论 #27034137 未加载
austincheney大约 4 年前
I just put on music and write code. I have an excellent personal laptop, but I prefer coding my big desktop.<p>My key to staying interested is automation of all the things. I mean spending the extra time to finding new ways to perform test automation, automation to keep documentation up to date, adding new lint rules. With better automation in place there are fewer barriers to validating or executing new ideas.
Nevermark大约 4 年前
What a fantastic question. I didn&#x27;t expect so many truly great responses.<p>For many years I have had this humorous fantasy of having a bare room with little but natural rock walls and irregular rock paving flooring, a fireplace, and a ceiling consisting mostly of a huge sky light. with only a little desk for furniture as a place to work with no distraction. My contractor is now designing that room to put on the top of my house.<p>I can&#x27;t recommend it because I have no idea if it will be the happy place I have always imagined, lol! But I think it will. :)<p>What I can say is imagining that kind of peaceful natural hermit-able place was one of my visualizations that helped me get into the zone many times in the past.<p>What code we would write if we all lived in lighthouses?
retox大约 4 年前
If you&#x27;re working on a personal project, which as others have said should give you some drive to get started, don&#x27;t fall into the trap of making things too complicated too quickly. You&#x27;ll get side tracked, fail to complete the core behavior and get discouraged at your own lack of progress.<p>Set a small goal and only when it&#x27;s finished start working on something else, make a kanban board with small tasks. Don&#x27;t think too far ahead with &quot;oh, I&#x27;d like to add x in the future, so I should architect y so that&#x27;s possible&quot;. Don&#x27;t endlessly review and refine the code you&#x27;ve already written trying to achieve perfection.<p>By all means capture these next features in a notebook, but act like you&#x27;re working on a &#x27;real&#x27; project and have an actual deadline. It might also help to make commitments to show other people what you&#x27;ve done, I always work best when I have an audience otherwise I quickly fall into the trap of trying to make the perfect system because I know there&#x27;s no hard-limit on my time. YMMV obviously.
5cott0大约 4 年前
I always have a project goal in mind and keep a backlog of personal project ideas and work on whatever I feel like leveling up on. Having a shippable goal helps because it gives some purpose to the occasional tedium slog which are unfortunately unavoidable. One important thing is that I aim for small scope MVPs that can be launched fairly quickly on the app store or web and if something gets traction or I feel compelled to do so I can keep working on it. Or not if I don&#x27;t and take what I learned and start the next one. It&#x27;s a fun hobby, feels like building those little model ships in bottles.
wingerlang大约 4 年前
One thing I&#x27;ve found helps me not lose my mind is to CMD+Q everything at some point. Nothing better than decidedly stop working. I usually write a note (that does not compile) in the code about what I was doing, and what I should try next. In case it takes me a few days to get back to it.
adithyasrin大约 4 年前
I use my desktop for this usually in the evenings a bit before and after dinner. Got music on Spotify running. I use notions to keep a list of small things that I need to do.<p>I don&#x27;t do open source contribution a lot so it&#x27;s mostly my own stuff.
slipwalker大约 4 年前
after i read &quot;discipline beats motivation&quot;[1] i realized my biggest problem with personal projects were exactly lack of discipline, awaiting for the motivation to come by itself. Now i have a large paper calendar in front of me, where i mark with a large red &quot;F&quot; ( Failure ) every day i don&#x27;t spend my allocated 1 hour on my pet projects.<p>( the number of &quot;F&quot; varies over time, but tend to reduce... )<p>[1]<a href="https:&#x2F;&#x2F;medium.com&#x2F;1-one-infinity&#x2F;discipline-beats-motivation-every-time-3e61507c9f2c" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;1-one-infinity&#x2F;discipline-beats-motivatio...</a>
username90大约 4 年前
&gt; I&#x27;ve started sitting at home, without music and with a notebook, where the only two choices are to do nothing or write pseudo code for the immediate next exciting feature.<p>If that doesn&#x27;t work it is pretty likely you have ADHD.
评论 #27032118 未加载
jitendrac大约 4 年前
Only thing inspiring me to code in free time is that I need it or I have motivation for it. I code things that are I am really interested into rather what is a general interesting thing.
emteycz大约 4 年前
No process, nothing. Just sit down and code.