编程的单纯心

Randall Degges 写道 "我已经做了很久的程序员。当我最开始编程时,我将全部心思投入到电脑中编写代码。虽然,我的代码糟透了,但我仍然品尝了乐趣,收获了知识。然而,时过境迁,编程的单纯心离开了我。能剥夺程序员单纯心的,是恐惧。是担心不知道最好实现方式的恐惧;是疑惑没有使用正确工具和语言的恐惧;是害怕错误的恐惧;对计划的恐惧;对公开的恐惧(别的程序员会如何看待我的代码?)。我深深怀疑,随着程序员越来越有经验,这些恐惧也会与日俱增地悬于他们头顶。

  编程的单纯心赋予程序员力量。之前当我内省这个问题时,想起了所知的一些顶尖程序员。他们有什么地方值得我尊重?他们因何而如此优秀?我相信,他们的优秀与他们的单纯密不可分。最好的程序员会天真地冲锋陷阵:毫无畏惧地删除代码,不分昼夜在与世隔绝中搭建原型,无视批评和外界影响。他们是真的猛士。面对难题,他们用毫不留情的编码来化解。他们无欲无求。然而,怎样才能重拾已经遗失的编程的单纯心?

  吼出来:操!

  • 发现另一种高效方法来重写代码?写之!不要担心为此需要学很多东西,学之!代码可以改进,或许以后你会学到更好的方法,但现在你所做的,不是浪费,而是成长。
  • 担心自己所用库、语言会在几年后过时?不。敏锐你的思想,你的代码不会比它们变化得更慢。
  • 被最后期限压迫得喘不过气?无视之。这个时候你就是代码的上帝。如果你看屏幕足够狠,代码就会自行出现。毫不怀疑你的能力,毫不畏惧在此时把自己封闭起来编程,像野兽一样编程!
  • 担心别的程序员对自己的代码指手画脚?不要被他们阻碍。如果他们对你的代码有真正的意见,他们应该发来他们的代码补丁。

  归结到一个道理便是:当碰到挫折时,不要被挫折打倒,保持一颗单纯心。"

  英文原文(http://projectb14ck.org/programming-innocence):

  Programming Innocence

  I've been programming for a long time. When I first started programming, I would spend as long as I humanely could on the computer writing code. Sure, my code sucked, but I was having fun, and I was learning a lot. Over the years, this programming innocence left me.

  The one true thing that can strip a programmer of his innocence is fear. Fear of not knowing the best way to do things (best practices). Fear of not using the right tools and languages. Fear of errors (especially compiler errors). Fear of schedules. Fear of publicity (what will other programmers think about this code?). I suspect that all programmers experience those fears in greater and greater amounts as they become better and better.

  Programming innocence is a powerful thing. When reflecting about this topic in my head over the past week or so, I immediately began thinking of the best programmers I know. What do I respect about them? What makes them so great? I believe that in most cases, their greatness can be directly correlated to their innocence. The best programmers I know are the ones who naively charge into battle: fearlessly removing code, spending days in complete isolation getting a prototype hacked together, ignoring all critics and outside influences. These guys are my heroes. They code ruthlessly in order to solve their problems. They yield for nothing.

  So how can you regain your programming innocence once it has been lost?

  Just Say "fuck it"

  • Found a more efficient way to write your code? Implement that shit! Don't make yourself worry about all you have to learn, just learn it. Code can be enhanced over time, so don't worry that learning new things in the future will waste your time now. Every time you write code, you grow.
  • Worried that your library / programming language / etc. will be outdated in the next few years? Don't be. Think agile. When things change, change your code with it.
  • Feeling stressed out by that deadline? Fuck it. You are a hacking god. If you stare at the computer hard enough, the code will practically write itself. Be confident in your abilities, and never be afraid to completely isolate yourself from the world, and code like an animal.
  • Do you worry what other programmers will say about your code? Don't let that stop you. If other people have a problem with your code, have them send you a pull request.

  The moral is: when things bring you down, instead of letting them best you, remain innocent. Hack your heart out every day, and don't forget that the only thing that really matters is how much fun you have along the way.

Python网络爬虫与推荐算法新闻推荐平台:网络爬虫:通过Python实现新浪新闻的爬取,可爬取新闻页面上的标题、文本、图片、视频链接(保留排版) 推荐算法:权重衰减+标签推荐+区域推荐+热点推荐.zip项目工程资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松复刻,拿到资料包后可轻松复现出一样的项目,本人系统开发经验充足(全领域),有任何使用问题欢迎随时与我联系,我会及时为您解惑,提供帮助。 【资源内容】:包含完整源码+工程文件+说明(如有)等。答辩评审平均分达到96分,放下载使用!可轻松复现,设计报告也可借鉴此项目,该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的。 【提供帮助】:有任何使用问题欢迎随时与我联系,我会及时解答解惑,提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 【项目价值】:可用在相关项目设计中,皆可应用在项目、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面,可借鉴此优质项目实现复刻,设计报告也可借鉴此项目,也可基于此项目来扩展开发出更多功能 下载后请首先打开README文件(如有),项目工程可直接复现复刻,如果基础还行,也可在此程序基础上进行修改,以实现其它功能。供开源学习/技术交流/学习参考,勿用于商业用途。质量优质,放下载使用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值