游泳后精疲力尽

by Ryan Yurkanin

瑞安·尤卡宁(Ryan Yurkanin)

精疲力尽的编程后如何重回正轨 (How to get back on track after you’ve burned out programming)

Our brains can only take so much. We’ve all had to handle a problem so complex it broke us. We’ve all felt like imposters at our jobs when something just wouldn’t click.

我们的大脑只能花那么多。 我们所有人都必须处理一个如此复杂的问题,使我们不堪重负。 当某些事情根本无法点击时,我们所有人都觉得自己是骗子 。

This all makes us frustrated and angry, so our code becomes worse. Our code being worse makes us more upset. We are now in a cycle of self-loathing and dev tears.

这一切都使我们感到沮丧和愤怒,因此我们的代码变得更糟。 我们的代码更糟使我们更加沮丧。 我们现在处于自我厌恶和开发者泪水的循环中。

哪里出错了? (Where did it all go wrong?)

Some would say that problems are just going to be hard, and you need to do one of the following:

有人会说问题将变得很棘手,您需要执行以下一项操作:

  1. Give up and find an easier problem. (If only) ?放弃并找到一个更简单的问题。 (要是) ?
  2. Become smarter and better at our job. (This definitely won’t lead to crippling depression and anxiety) ?在我们的工作中变得更聪明,更好。 (这绝对不会导致严重的抑郁和焦虑)?

Yeah so, those options suck. If we’re really struggling with code, I don’t think the most therapeutic solution is to code more.

是的,这些选择很烂 。 如果我们真的在代码方面苦苦挣扎,我认为最有效的解决方案不是编写更多代码。

Do you have to remind yourself every 5 minutes of the code style guide that lives in your lead developer’s head?

您是否需要每隔5分钟提醒您一次出现在首席开发人员头脑中的代码样式指南?

Did you have an hour long argument with a coworker about the space complexity of your React code?

您是否与同事争论了一个小时,涉及您的React代码的空间复杂性?

What can we actually do to improve our workflow?

我们实际上可以做些什么来改善工作流程?

Let’s talk through some non-programming ways to make us better programmers. Opinions ahead, pick what works for you and your team.

让我们来谈谈一些非编程方式,以使我们成为更好的程序员。 提前发表意见,选择对您和您的团队有用的方法。

您应该得到快乐,所以找到让您快乐的因素并做更多的事情 (You deserve to be happy, so find what makes you happy and do it more)

Okay, so this one seems like it should be a no brainer, but is it? Let me repeat that: you deserve to be happy. Stop programming, and do what you love more. I promise when you come back not only will you code better, but your mood will influence your coworkers as well.

好的,所以这似乎应该是毫无道理的,但是吗? 让我重复一遍:你应该开心。 停止编程,做自己喜欢做的​​事。 我保证,当您回来时,不仅代码会更好,而且您的心情也会影响您的同事。

When you’re in a good state of mind, it’s easier to pick your battles. You’ll be more likely to let the little things slide, and you’ll be harder to bring down.

当您处于良好状态时,选择战斗就更容易了。 您将更容易让小事情滑落,并且您将更难以降低。

可以自动化所有样式指南规则。 警惕那些你做不到的人。 (Automate all the style guide rules you can. Be wary of those you can’t.)

Solving a core problem is hard enough. The last thing you need is to disrupt your line of thought every 5 minutes over whether you need a semicolon or not.

解决核心问题已经足够困难。 您需要做的最后一件事是每5分钟中断一次是否需要分号的思路。

Look for tools like Prettier and ESLint, and use common configurations found online. There are some sick benefits here:

查找类似Prettier和ESLint的工具,并使用在线找到的常见配置。 这里有一些病假福利:

  1. If a coworker hates a rule, there’s no one on the team to confront. You can shake your fists together at whoever came up with the common ruleset.

    如果同事讨厌规则,那么团队中就没有人要面对。 您可以在一起谁与共同的规则集上来动摇你的拳头。

  2. You can have auto fix on save in most editors, so no more fixing code by hand! Mash save and focus on what matters!您可以在大多数编辑器中保存时自动修复,因此不再需要手工修复代码! 节省现金并专注于重要事项!
  3. You can set up automated checks when someone submits a PR, reducing nitpick overhead.您可以在有人提交PR时设置自动检查,从而减少nitpick开销。

问问自己“如果我放手,会发生什么?” (Ask yourself “If I just let this go, what will happen?”)

If there is one thing that I’m guilty of, it’s arguing about stuff that doesn’t make a huge difference at the end of the day.

如果有一件我有罪的事情,那就是在争论那些最终并没有太大改变的事情。

I prefer premature optimization of my coworker’s mental health over computer memory.

与计算机内存相比,我更喜欢过早优化同事的心理健康。

Computer’s are getting bigger and faster every year, while human’s can only take so much.

每年,计算机的体积越来越大,速度越来越快,而人类的体积却越来越大。

Understanding what you might get out of winning an argument is important. On one hand, you may save heap space, on the other, you may ruin your coworker’s day and that negativity will ripple out.

了解您从争吵中可能得到的收获很重要。 一方面,您可以节省堆空间,另一方面,您可能会破坏同事的工作,并且消极情绪会泛滥成灾。

Of course there are times when you need to value the code and performance. That’s when you’ll be grateful that you didn’t fight to the death with Ayesha over inlining objects in props.

当然,有时候您需要重视代码和性能。 到那时,您将不因未将Ayesha插入道具中而与Ayesha战斗而感激不已。

使用功能强大的编辑器,并重视Intellisense和打字。 (Use a powerful editor, and value Intellisense and Typings.)

How often do you find yourself having to switch files just to figure out what order a function’s arguments are in? What about if it takes a string or a number for the size argument?

您多久发现自己不得不切换文件才能弄清楚函数参数的顺序? 如果size参数使用字符串或数字怎么办?

Being knocked out of your workflow leads to mental fatigue. Having to look up documentation to see what functions are available to you stinks. I personally use VSCode and TypeScript, but use whatever works best for you.

被淘汰出工作流程会导致精神疲劳。 必须查阅文档才能发现您可以使用哪些功能。 我个人使用VSCode和TypeScript,但使用最适合您的方法。

花一些时间向周围的人传播正能量 (Spend some time spreading positive energy to those around you)

Have you ever wished that while you are sitting there struggling that someone would come up to you, and just ask you how you are doing? Maybe just to grab a bite to eat?

您是否曾经想过,当您坐在那里苦苦挣扎时有人会来找您,问您最近怎么样? 也许只是想吃点东西?

You can’t control if others do that for you, but you can control if you do that for others. Not only will it make someone’s day, but I guarantee they won’t forget your kindness.

您无法控制其他人是否为您这样做,但是您可以控制是否为他人这样做。 这不仅会成为某人的一天,而且我保证他们不会忘记您的好意。

Influencing good culture is just as valuable to me as good code. Empathy and kindness scale, douchebaggery does not.

对我而言,影响良好的文化与良好的代码一样有价值。 同理心和善良的尺度,douchebaggery没有。

If you have any questions or are looking for one-on-one React mentorship, feel free to tweet me @yurkaninryan any time!

如果您有任何疑问或正在寻找一对一的React指导,请随时在@yurkaninryan上发消息给我!

If you like my writing style, here are some other articles that I’ve done.

如果您喜欢我的写作风格,这是我做过的其他文章。

Good luck and happy coding! ??

祝您好运,编码愉快! ??

翻译自: https://www.freecodecamp.org/news/how-to-get-back-on-track-after-youve-burned-out-programming-a04ccafeefd6/

游泳后精疲力尽

游泳后精疲力尽_精疲力尽的编程后如何重回正轨相关推荐

  1. yum配置文件 重启后还原_电脑里重启后,重启前所有设置都还原到以前了,怎么办啊...

    展开全部 造成电脑重启的原因很多32313133353236313431303231363533e4b893e5b19e31333233656437 首先,电源问题:电源是引起重启的最大嫌疑之一,劣质 ...

  2. python编程做什么工作-学习Python编程后在成都可以做哪些工作?

    原标题:学习Python编程后在成都可以做哪些工作? Python被称为编程语言中的万能胶水,比如可以用来做爬虫,做网页,运维还有现在很火的人工智能Al都可以用上Python.一是Python有很多数 ...

  3. win10电脑黑屏只有鼠标箭头_电脑黑屏后屏幕只有鼠标怎么办呢?

     点击上方蓝字关注我们呢^_^ 电脑黑屏后屏幕只有鼠标怎么办呢?我们在开机后只看到屏幕上面有一个鼠标图标可以移动,不管键盘如何敲击都没有其他反应,怎么办呢? 一.通过任务管理器解决 1.出现这样的黑屏 ...

  4. 学cnc还是java,CNC操机多年学UG编程后月薪1万!有人却问:CNC和PLC有什么区别?...

    从技校学习出来,做了几年的钳工.觉得没前途不干了,然后开了一年的模具cnc. 我不知道你在学校有没好好的学习理论知识,学校一般都有教ug 和MASTERCAM.还有cad画图软件. 想学编程,看你要学 ...

  5. ajdt插件安装后无效_使用Eclipse和AJDT开发面向方面的Java应用程序

    AspectJ Eclipse开发工具(AJDT)是一个开源Eclipse技术项目,它提供开发和运行AspectJ应用程序所需的工具. 我们认为,好的工具在实现面向方面的编程的全部好处方面,尤其是在帮 ...

  6. 如何使用计算机制作数学公式,利用电脑编程后的数学公式,太美无法直视!

    我们可以通过scratch . logo(小海龟)画出很多几何图形,再看看下面的,我们是不是也可以挑战一下呢. 利用电脑中编程后的数学公式,数学系的艺术家Hamid Naderi Yeganeh可以创 ...

  7. 用米思齐(Mixly)进行Arduino编程后上传失败问题记录与解决

    在本人利用米思齐进行Arduino编程后,在上传到板上时遇到了如下报错: 在查找相关资料以及排除故障后,发现是由于电脑连接着我的蓝牙耳机而导致米思齐(Mixly)识别串口出现错误.调整串口之后问题便得 ...

  8. 问题 H: 2.13 节日促销 商店举行节日促销活动,设某商品销售价格按顾客购买量的大小有不同的折扣率,规则如下: 编程计算当输入某种商品的购买量和单价后,能计算出折扣后的单价及货款。

    问题 H: 2.13 节日促销 时间限制: 1 Sec 内存限制: 128 MB 提交: 7096 解决: 3142 [提交] [状态] [讨论版] [命题人:hexl] 题目描述 商店举行节日促销活 ...

  9. c++重定向后恢复_【STM32CubeIDE】重定向printf

    文章导读 本文主要内容为在CubeIDE中(也可以说基于HAL库或CubeMX)实现printf函数重定向问题.具体包括重定向printf的重要性.原理.方法.可能遇到的问题等. 关键词:HAL库,S ...

最新文章

  1. 物联网 数据驱动企业 如何应对数据洪流
  2. Activiti 初步学习
  3. 牛客小白月赛13-H(单调栈+树状数组)
  4. 报错:TargetException, 非静态方法需要一个目标
  5. GIS基础软件及操作(一)
  6. linux 版本号 加号,Linux kernel编译生成的版本多一个加号“+”
  7. 股市中如何用筹码分布选牛股,通达信幅图指标公式筹码寻牛
  8. NOIP2015 口胡题解
  9. 福利,架构师之路定制T恤
  10. 华为服务器 电源管理 高性能,华为服务器可服务性设计介绍-电源篇-Huawei.PDF
  11. 马丁 路德 金的演讲词 I have a dream
  12. cairosvg在linux中的安装_Cairo编程
  13. GDC2015分享:巫师3开放世界性能优化
  14. 养蚕日记软件测试,科学观察养蚕日记(精选3篇)
  15. 关于open file limit问题解决
  16. mysql的自动编码_mysql 自动生成编号函数
  17. python26.dll下载_python26.dll,下载,简介,描述,修复,等相关问题一站搞定_DLL之家
  18. php 将百分数处理成小数点,php百分数如何转小数
  19. 洛谷-P5731蛇形方阵-java解题方法
  20. 红队社工之BadUSB

热门文章

  1. 异常的捕获 try...catch java
  2. selenium-标签元素定位法-0223
  3. 爬虫-练习-爬取访问后可见的内容
  4. 如何保持安全在线的五大技巧
  5. 【转】Java抽象类与接口的区别
  6. 解决企业子CA无法检查吊销的问题
  7. MathType方向键和退格键失效解决方案
  8. Silverlight.XNA(C#)跨平台3D游戏研发手记:(一)差集运算在SLG战斗范围设定中的应用...
  9. jquery学习。。
  10. WPF依赖属性(续)(1)