TranslateProject/sources/tech/20201118 Day 8- Start with something that works.md
DarkSun e8aaa5faa2 选题[tech]: 20201118 Day 8: Start with something that works
sources/tech/20201118 Day 8- Start with something that works.md
2020-11-20 05:03:35 +08:00

3.8 KiB
Raw Blame History

Day 8: Start with something that works

Today at RC Im a little stuck so heres a very short reflection on how to do hard programming problems :)

I was talking to a friend yesterday about how to do programming projects that are a bit out of your comfort zone, and I realized that theres a pattern to how I approach new-to-me topics! Here Im especially thinking about little side projects where you want to get the thing done pretty efficiently.

When I start on a new project using some technology I havent worked with before, I often:

  1. Find some code on the internet that already does something a little like what I want
  2. Incrementally modify that code until it does what I want, often completely changing everything about the original code in the process

Here are a couple of quick thoughts about this process:

its important that the initial code works

Often when Im out looking for examples, Ill find a lot of code that I cant get to work quickly, often because the code is kind of old and things have changed since then. Whenever possible, I try to find code that I can get to work on my computer pretty quickly.

Its been pretty helpful to me to give up relatively quickly on code that I cant get to work right away and look for another example often there is something out there thats more recent and that I can get to work more quickly!

you have to be able to incrementally change the code into what you want

Today Ive been working with some neural network code, and one thing Im really struggling with for the last couple of days is that I find it pretty easy to find somewhat relevant Jupyter notebooks that do RNN things, and pretty hard to modify those examples to do something closer to what I want. They keep breaking and I then dont know how to fix them.

Last week I was working on a Rails app, which I think is something thats very easy to incrementally change into the program you want: rails new gives you a webserver that does almost nothing, but it works! And then you just need to change it one tiny step at a time into the website you want to build.

examples of “something that works”

thats all!

I think little starting points like this are so important and can be really magical. Finding the right starting point can be hard, but when I find a good one it makes everything so much easier!


via: https://jvns.ca/blog/2020/11/18/how-to-do-hard-projects--start-with-something-that-works/

作者:Julia Evans 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出