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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Cautionary Tale of Learning to Code

240 点作者 michaelq超过 10 年前

31 条评论

dkbrk超过 10 年前
I think the author is correct in that he tried to learn too many things at once; starting with a friendlier environment and focussing on a small number of new technologies has obvious advantages.<p>But in some other ways, the author is too self-critical:<p>&gt; I&#x27;d spent months sitting alone in libraries and cafes, blindly installing tools from the command line, debugging Linux driver problems, and banging my head over things as trivial as missing parenthesis.<p>All these things have value, and I doubt that this was time truly wasted. Although some people can get by for a while without it, becoming intimately familiar with the command line is extremely valuable. Also, although this is by no means a requirement for being an effective programmer, most good programmers I know use a traditional text editor such as emacs or vim.<p>Ultimately, I think the point is that expending time is an investment, and you should prioritise based on the expected future utility from your time investment. More often than not, this means finding the most important thing and putting almost all of your energy into it.
评论 #8631687 未加载
评论 #8631894 未加载
评论 #8631599 未加载
评论 #8631888 未加载
SnacksOnAPlane超过 10 年前
I think the key takeaway from this is that you need to focus on learning one thing at a time. If you want to learn how to program, don&#x27;t distract yourself by trying to learn some complex text editor at the same time. Use whatever plain-text editor feels easiest to you. And use the environment that&#x27;s easiest to get going in.<p>As you learn more, you&#x27;ll find things that annoy you about your editor&#x2F;environment. Fix those as you see fit. Eventually you&#x27;ll have an environment that fits you &quot;like a glove&quot;.<p>It&#x27;s absolutely detrimental to try to get a fully customized environment set up before you know what your workflow is going to be like. It took me years to get to my environment (tmux, vim+plugins, ack, a VirtualBox environment with a proxy). I experimented a lot. But getting &quot;the perfect environment&quot; was never a goal; it was just a lot of &quot;this is annoying, there has to be a better way -&gt; google -&gt; environment change&quot;.
ndcrandall超过 10 年前
This was one of my biggest issues, even as an experienced developer with a CS degree. I always felt a step behind since I wasn&#x27;t fluent in the latest and greatest framework. All of that changed when I mentally decided to focus on one language, namely Ruby. It&#x27;s amazing how much you can do with any one language even though it&#x27;s not fully optimized for a specific use case you need.
michaelvkpdx超过 10 年前
Great article and observations. It&#x27;s always good to see what this field looks like from a newbies&#x27; eyes.<p>If it only it were so simple as keeping a small tool set and a dev team committed to it. You can certainly build a business from scratch with a small toolset. But as the business adapts to customers, you always start to find things that customers want that the tools do not support. In initial dev, you don&#x27;t necessarily care, but when you&#x27;re live, it&#x27;s better to implement than say &#x27;no&#x27; to executive management and sales in most (not all) cases.<p>Once you modify the tools a bit to support the unique business, you&#x27;re no longer able to keep new developers focused on a small toolset, because you&#x27;ve customized. New devs may not agree and may look for ways to work around the customizations. Soon, you have a unique codebase that is valuable- central- to the business, and your changes have crept in to the point that off-the-shelf devs and tools and upgrades don&#x27;t work.<p>Now you&#x27;re in maintenance mode. Code schools don&#x27;t teach maintenance, but it is the lifeblood of the software business. Developers avoid maintenance jobs. They try to find new, greenfield work. That&#x27;s why we end up with so many disposable business models, 3 year dev-to-acquisition cycles, and ridiculous amounts of abandoned code.<p>Maintenance is hard. Much harder than development. But it&#x27;s much more important. Anyone can launch an app that builds a business. Not everyone can adapt and grow that business with code changes that require getting out of the dev comfort zone.<p>Code schools don&#x27;t teach this because they don&#x27;t want to expose aspiring coders who just want to get rich to the grimy dirty details of a real profession. But ask yourself this- would we have cars and highways if all we trained were new car designers (not mechanics or road builders)?
edw519超过 10 年前
A Cautionary Tale of Learning to Fix Teeth. My own.<p>How a reasonably balanced individual nearly went insane<p>I was just a guy in a suit in an office with a vague healthcare idea. Then I decided to learn to fix teeth.<p>I overheard some guy at a happy hour bragging about how easily he was able to automate his overbite by using a technique called &quot;4 Handed Dentristry&quot;. I thought, &quot;huh, 4 Handed Dentistry.&quot; I went home, googled it, and within 15 seconds, I was working through a random 4 Handed Dentistry tutorial.<p>A week later, I went to my first dentalspace meeting. Everyone was talking about techniques like orthodontics, endodontics, and maxillofacial surgery. There was so much to learn. I borrowed three O&#x27;reilly books and got about 50 pages into each of them.<p>Most dentistry books start off nice and easy before making big assumptions about your prior knowledge.<p>A friend told me I should get good at drilling, and gave me his drill bits. I spent a few hours learning basic foot controls so I could further configure it.<p>Then some guy walked by and saw me drilling. &quot;Why are you drilling?&quot; he asked me. &quot;Don&#x27;t you know lasers are better?&quot; &quot;Hm. Lasers.&quot; So I started memorizing dozens of laser shortcuts.<p>Most arguments about restoration techniques are what dentists call &quot;religious wars&quot; - rooted more in historical differences than practical merit.<p>At the time, it seemed reasonable to think that the faster I could drill, the faster I could fix teeth. I switched to a hydraulic drillset because, hey, it was objectively the most efficient method a dentist could use.<p>Can you count how many letters, numbers and teeth are in their original oral positions? I&#x27;ll give you a hint - it&#x27;s in the low single digits.<p>On the days I could actually get my netbook to successfully boot DentalCAD - and that I was able to drill more than 10 teeth per minute - I studied oral surgery by working through books and Udacity courses.<p>After 7 months of grueling self-study and going to dental events, I landed my first Dental HMO job...<p>You kinda get the idea by now? I dunno, I think what we do is every bit as professional as dentistry. So why don&#x27;t posts like OP&#x27;s seem as absurd as mine?<p>[UPDATE: For those of you who have suggested that programmers don&#x27;t have others&#x27; well-being in their hands, actually quite a few of us have, just not as directly as dentists. We are a profession and we do do important work. A few examples in an old post: <a href="https://news.ycombinator.com/item?id=2882620" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2882620</a>]
评论 #8631792 未加载
评论 #8631692 未加载
评论 #8632010 未加载
评论 #8631949 未加载
评论 #8631673 未加载
评论 #8631947 未加载
评论 #8631668 未加载
评论 #8631656 未加载
评论 #8635023 未加载
评论 #8632627 未加载
评论 #8632386 未加载
评论 #8631727 未加载
评论 #8631685 未加载
评论 #8633809 未加载
评论 #8632575 未加载
评论 #8631676 未加载
评论 #8631909 未加载
评论 #8631717 未加载
bitwize超过 10 年前
I like the idea to choose one language, but... Start with Python. You&#x27;re going to hear Ruby this and JavaScript that and Swift the other -- but seriously, I&#x27;m from the future. You should start with Python. It&#x27;s essentially BASIC for this century: a great place to start learning the basics without being too weird. There&#x27;s plenty of time and once you have those cold, you can investigate other languages, including the fun ones that have separate compilation steps and may produce segmentation faults if you&#x27;re not careful.
评论 #8633532 未加载
评论 #8633111 未加载
notto11超过 10 年前
The overall message of this post is great, I&#x27;ve wasted plenty of time learning a shallow amount of &quot;cool&quot; tools.<p>One thing I wish I knew starting out was how to create a basic VM. I shudder to think of all the time wasted thinking I was a sysadmin genius for dual booting Linux and later doing something stupid to my hard drive. VMs give me my Linux environment without the pain from those moments when I think to myself &quot;maybe I want to be a kernel developer.&quot;
ericcumbee超过 10 年前
Really good advise. All mistakes that I seem to make repeatedly. I&#x27;ve gotten started trying to learn one thing and then jumped over to something else (i.e. node or rails) because it was what the cool kids were doing.
kiraken超过 10 年前
This blog post is an insult to every developer out there. The blogger actually want us to believe that he just overheard a conversation, went home, googled what ever he said he heard and in 7 months became an expert and landed a job. So in my professional opinion, and i do get to say that as opposed to the blogger since i actually studied Computer science and been a developer for 20 YEARS, that his story is a work of fiction, or the company that hired him is one of those startups that just hires anyone that walks in the door like most of them these days. A developer needs time not just to learn a language, trust me once you learn one you learned em all, you just need to get used to the new environment and light changes in syntax. What you need time for is to learn the LOGIC of our trade and learn how to fix errors and how to improve&#x2F;optimize your code. And all of these things come with time and effort and no amount of facebook posts or reading books could teach you that.
评论 #8633097 未加载
onion2k超过 10 年前
This is why having a mentor&#x2F;tutor is important - if you can focus for months <i>on the right things</i> you&#x27;ll learn quickly. Focusing on the wrong things means a lot of that effort is wasted.
spain超过 10 年前
This actually mirrors my own experience a lot, except for a few differences. Biggest one being I haven&#x27;t actually looked into employment yet.<p>I too bounced between Vim and Emacs until recently I decided to stick with Emacs. I too switched to Dvorak, later switching to Colemak. I used a typing tutor software with which I was actually able to get up to a respectably 50-60 WPM if I remember correctly. However I eventually switched back to Qwerty after growing tired of keyboard shortcuts never working the way they were supposed to. Sure I could rebind them in my favorite editor (and even that was a pain in the ass) but each time I installed something new I&#x27;d have to do it again. One thing I am grateful for from Colemak is rebinding Caps lock to Control, what a great idea.<p>I&#x27;ve also been dabbling between C, Lisp, C++, Python, Bash, and a few others, but I never really became really good at any of them. It was more than just the OPs 50-page dabble (something like 400 pages into C++ Primer) but I feel like I can relate. Sure I can write basic programs in all of them but I didn&#x27;t have a &quot;default&quot; so to speak that I&#x27;ve mastered. Only recently I made the decision that Python would be that default. The reasoning behind it is simple, I already kinda knew it and it fit my use case well. I just wanted to do stuff with the language and Python makes it easy with its wealth of libraries and (in my opinion) intuitive structure. Stuff like Lisp and Haskell still have a place in my heart because of how elegant they are, but I just feel more productive in Python.<p>That&#x27;s my sort of ongoing story of getting at what I feel is the same kind of focus the OP was talking about. Now if only I could just settle on a Linux distro instead of hopping around every few months (currently messing around in Slackware, though I suspect I&#x27;d be better off switching back to Ubuntu which I was using before I switched to Slackware).
评论 #8632628 未加载
arenaninja超过 10 年前
Focus is hard, but it&#x27;s great that you learned this in under a year. I still have issues with focus now and then. Like when I decided that I was gonna spend 2 hours after work for a week on new tech and decided to try and pick up clojure... except that I&#x27;d never used a lisp, and after a myriad of compiler errors that I was plowing through, I eventually gave up and I know no more clojure today than I did then. In the meantime, I passively continue to improve on those things that I do know (PHP&#x2F;Python&#x2F;JS).<p>I had the same issue with emacs&#x2F;vim and while I use vim now, I don&#x27;t consider myself a vim power user<p>Lastly, the OS... I started with Ubuntu, wasted a week trying to get CentOS minimal up and running (I couldn&#x27;t), ran with Kubuntu and have used it for about a year. Fedora is growing on me right now since I just spent the past week downloading&#x2F;destroying&#x2F;upgrading VMs, but I think that was more trying to find the right flavor of Linux for what I need than anything else (and with Faience theme, GNOME 3 is pretty good, although slow in a VirtualBox VM since you can&#x27;t have more than 256VRAM)
ryanolsonx超过 10 年前
I can definitely recommend your key point in the article: focus. It is easy today to lose focus since there are so many different frameworks and programming languages. Even if you just focus on Javascript, there are so many different frameworks here (ex. angular.js, ember.js, react.js) that it&#x27;s easy get distracted and get to a point where you are only familiar with each a little bit.<p>Great article.
bswen超过 10 年前
I&#x27;ve worked as the main developer and designer at an online publication using Drupal, then WordPress, among many other duties including communications and social media. I learned enough PHP and HTML&#x2F;CSS&#x2F;jQuery to write custom themes and a couple custom plugins. Recently I started working a side project as a technical cofounder (called SpareChair) and have been working with a design&#x2F;dev shop to build the site with Rails. The TeaLeaf Academy has nailed the tough problem of learning to code with Ruby and Rails online. It&#x27;s a Goldilocks combo of written and video tutorials and exercises, weekly live sessions and nearly instant responses to questions from students, the founders and TAs in their project forums. It&#x27;s focused on producing a coder ready to sit in that dev bullpen and hang with everyone from day one of the job and accomplishes that goal. And it&#x27;s very affordable, the ROI is amazing. Anyone looking to get into Ruby and Rails should check it out.
AlexanderDhoore超过 10 年前
Very very good article, although the latter part is a bit too focussed on web dev and dynamic scripting languages.<p>I personally think every programmer should know <i>some</i> C. Basic things like what the stack and the heap are.<p>Edit: Ok, probably not in the case of <i>absolute</i> beginners, but after a year or two...
评论 #8631498 未加载
评论 #8631484 未加载
评论 #8632476 未加载
评论 #8631975 未加载
jreed91超过 10 年前
The author makes a great point and something I&#x27;ve been struggling with. We have so many great tools and with tech constantly improving it makes it hard to focus on a single topic area. Personally, I&#x27;ve gone through so many tutorials on so many different languages and frameworks (Obj-C, javascript, python, ruby, etc etc etc) but have never really focused on a specific stack. I think the most important for any new developer is to choose an area like web development or ios programming and focus on the fundamentals of programming. It&#x27;s just like learning a foreign language, you&#x27;re never going to be able to speak fluently until you do it everyday for months or years.
TheHypnotist超过 10 年前
I like this article because as someone who struggles with learning to code, I have found myself making it worse by jumping from language to language, learning the very basics of their syntax. Great, I can FizzBuzz in 4 different languages, but I still can&#x27;t put together something comprehensive and useful.<p>Reading this was kind of the reminder I needed. Focus. Pick one, become proficient (with the language and just the concepts of programming), and I guess somewhere down the road if I feel compelled try another.<p>So for now, I&#x27;ll focus.
gcv超过 10 年前
There&#x27;s a difference between learning computation (how to make a computer help you solve problems), and all the bullshit you have to do to build software (especially for other people). The former involves timeless concepts. The latter is full of fads and arguments over tools, broken dependencies and configuration nightmares. The author hasn&#x27;t actually learned that, yet — he just started working with people who standardized their tool chain for some semblance of simplicity.
josephjrobison超过 10 年前
Thanks so much for this, been learning and failing with some decent wins for years. Any time there&#x27;s a clear, focused guide for learning to code I get inspired again.
icarot超过 10 年前
The last sentence was the most important; the rest should be ignored. Have patience, perseverance, and you&#x27;ll do anything.<p>Or, converge onto interesting problems and fail gloriously; the only way to do anything of worth.<p>The post comparing this to dentistry is precisely what I was thinking, except nowhere near as hilarious. I wish I was intelligent enough to write a Markov algorithm for logic that paralleled reasoning in such a way automatically. Thank you for that.
mrpoptart超过 10 年前
I believe that your path didn&#x27;t teach you to learn how to code, per-se, but that learning to code was a side benefit of learning how to teach yourself. Schools exist because specialization is useful, because having lots of people to help is useful, and because information is diffuse. On the bright side, once you know how to learn, learning additional things is easier, especially new things in the same field.
drcomputer超过 10 年前
I am going to be slightly rude, but only because I have done exactly the same thing.<p>Stop trying to cram n years of experience into a blog post seeking some form of social validation. You are guaranteed to contradict yourself more than half the time. That&#x27;s because you can&#x27;t include all the important bits that helped you learn. Every stupid mistake is really your future best friend.
foopod超过 10 年前
As important as it is to have expertise and proficiency in a single skill, I also believe that the more diverse your knowledge base the easier it is to pick up new things when you need to.<p>But maybe I am just trying to make excuses for myself, maybe if I learn a new language&#x2F;framework&#x2F;IDE every month I will get better at learning new languages&#x2F;frameworks&#x2F;IDEs.
vezzy-fnord超过 10 年前
<i>I&#x27;d spent months sitting alone in libraries and cafes, blindly installing tools from the command line, debugging Linux driver problems, and banging my head over things as trivial as missing parenthesis.</i><p>Yet this illustrates a very important thing that most proponents of &quot;learning to code&quot; neglect entirely.<p>Writing code isn&#x27;t an isolated black box. To write code is to interact with the extremely entangled software environments that we have cumulatively been building up for over 60 years now.<p>Anything beyond Fibonacci sequences will require you to spill out into lots and lots of domain-specific areas and subdisciplines. A proficient programmer in general will also need at least basic skills in system administration.<p>To build a real useful application intersects with areas such as network protocols (which is immeasurably vast, depending on what layer you pick and how much you abstract), widget toolkits (and the wider quandaries of computer graphics, windowing, displays, etc.), cryptography (which pretty much intersects with most bodies of computer science), the workings of the kernel, dynamic linker (thus object files and libraries), the C library...<p>Profiling an application will likely require you to learn some complexity theory. I&#x2F;O-bound applications will require you to learn how file systems, I&#x2F;O schedulers and disks work. System programming is a rabbit hole of its own, with POSIX alone just about being an independent branch.<p>The bottom line is that programming can mean just about anything. And since programming itself is not innate, but a member of its own in the tangled web of computing, programming is thus a vast body of theory itself, a lot of which one will need to learn, unless they intend on staying frozen.<p>Paradoxically, the more we try to make things so that people won&#x27;t have to be specialized in order to use them, the more we necessitate huge drifts of specialization in the people that want to do more than cursory tasks.<p>While picking a few components and sticking with them is probably necessary at least in professional environments to maintain sanity and interoperability, it is not very realistic for hobbyists and learners.<p>Of course, if you just want to write macros to automate tedious tasks, you can get by with the basics. But that is pretty much something that will end up being born from necessity, and likely self-discovered rather than taught through compulsory means.
cylinder超过 10 年前
How did you land job interviews after being self-taught? I&#x27;m doing the same right now, but I assume I need to complete some sort of bootcamp or what not in order to actually land an entry level job as a web developer. How do you get noticed when you don&#x27;t have formal experience?
评论 #8632556 未加载
cranklin超过 10 年前
The problem is that crash-course developers are too satisfied with just making something work and most online tutorials are focused on language syntax. If you&#x27;re learning to code, great for you... but I&#x27;d be scared to be part of your team, maintaining your code.
评论 #8632058 未加载
scarygliders超过 10 年前
For the past year I&#x27;ve been learning to code in Python. My basic methodology was this;<p>I had come up with an idea for a niche product - I reckoned at the time that something like this would sell. All I needed to do was to code it up - at the time I had been reading about Python and had tentatively prodded and poked it as I wanted to find out why a lot of my acquaintences were always scoffing at this language... &quot;I friggin&#x27; hate whitespace!&quot; seemed to be the number one reason for not bothering with it, which was an instant reason for ME to get to know it as I&#x27;m the kind of guy who likes to see what all the fuss is about.<p>So I had an idea, and I had chosen the language to learn and implement the idea in. That was the easy part. The hard part was to learn enough Python in order to implement it.<p>I bascially started off with nothing and worked my way up from there by asking &quot;How do I do X with Python?&quot;<p>I knew in my head what the program should be and what it should look like - &quot;it should be a GUI&quot;, for example. I&#x27;d already used the Gtk bindings for python, but had gone off Gtk (as I&#x27;ve written before in a post on HN). So I decided to give Qt a try. The answer to that is to either use PyQT or PySide. I decided on PySide as I couldn&#x27;t afford the PyQt commercial license (I want to sell my application after all, and my budget is next to nothing).<p>After a while, I was getting used to how Qt Designer works for designing layouts.<p>Next question was &quot;How do I get the GUI widgets to send signals to my Python code?&quot; followed shortly after by &quot;How do I see signals from dynamically created tab widgets?&quot; - I ended up both asking AND answering my own question on StackOverflow. ( <a href="http://stackoverflow.com/questions/17344805/how-to-see-signals-from-qwidgets-inside-dynamically-created-qtabwidget-pages/17467700#17467700" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;17344805&#x2F;how-to-see-signa...</a>)<p>And so as the days, weeks, and months progressed, I needed to Do Things. For me it was a matter of asking the How Do I Do That question and researching the answer, then implemented it.<p>Before I knew it, I was increasingly getting proficient in Python, in Qt, in parsing configuration files using ConfigParser, in loading and saving files, in using QtWebkit in sneaky ways so I can display my company&#x27;s animated logo using CSS. And so on.<p>Then I needed a web site. So it took me 4 months to learn enough Django to go implement a basic site. That site and the product I recently launched. ( <a href="https://xrdpconfigurator.com" rel="nofollow">https:&#x2F;&#x2F;xrdpconfigurator.com</a> ) - that&#x27;s all done in Python, including the application - which was converted to C via Cython then compiled to object code after that.<p>[ And now I&#x27;ve learned another important lesson after all that time and effort - no one seems interested in my product - perhaps I should have open sourced it and asked for donations instead ;) Or perhaps I just need to patiently market the thing better. Or perhaps it is just TOO niche! ]
评论 #8632091 未加载
guncheck超过 10 年前
This was a really good read. I thoroughly enjoyed it. Thanks!
vnagpal超过 10 年前
i am still struggling with this problem, but great article and thanks for sharing.
joemellin超过 10 年前
Yes.
bafilius超过 10 年前
definitely a lot of good points here