头脑风暴算法代码
We live in a world with many things that consume our time, and the constant need of always doing something. And if we don’t do it, we are left behind while the world moves on.
我们生活在一个世界上,有很多事情在浪费我们的时间,并且不断需要做某事。 如果我们不这样做,世界就在前进之中。
To stay alive and be competitive today means always checking whats new on Twitter, Reddit, Instagram, Facebook, podcasts or any other social media platforms. Or learning every JS framework out there, understanding every programming concept, and so forth. It seems that the only option is doing a dozen things.
要保持生命力和保持今天的竞争力,意味着始终检查Twitter,Reddit,Instagram,Facebook,播客或任何其他社交媒体平台上的最新消息。 或者学习那里的每个JS框架,了解每个编程概念,等等。 似乎唯一的选择是做很多事情。
In the end, it all leads to a chaotic mind, and we cannot think straight anymore. We just live through each day while tasks stack up. And after a while it reduces the quality of the content we produce, such as code or other things in our day to day work.
最后,所有这些都会导致混乱的头脑,我们再也不能直截了当了。 任务堆积如山,我们每天都在生活。 一段时间后,它会降低我们产生的内容的质量,例如我们日常工作中的代码或其他内容。
The focus of this article is to find effective ways to deal with a chaotic mind in order to produce high quality content. I’ll talk about few well-known concepts, and why they are important, but won’t cover the details.
本文的重点是找到有效的方法来处理混乱的思想,以产生高质量的内容。 我将谈论一些众所周知的概念,以及为什么它们很重要,但不涵盖细节。
Let’s understand how the brain works!
让我们了解一下大脑是如何工作的!
The brain is one of the largest and most complex organs in the human body. It’s made up of more than 100 billion nerves that communicate in trillions of connections called synapses.
大脑是人体中最大,最复杂的器官之一。 它由超过1000亿条神经组成,这些神经以称为突触的数万亿个连接进行通信。
这是我们要解决的问题 (Here’s what we’ll address)
- What leads to a chaotic mind 是什么导致思想混乱
- Accept that it exists 接受它的存在
- It starts within you 它开始于你内心
- Focus on your breathing 专注于呼吸
- Mindfulness 正念
- Reward yourself 奖励你自己
If you want to become a better web developer, start your own business, teach others, or simply improve your development skills, I’ll be posting high-quality weekly tips and tricks on the latest web-languages out in the market.
如果您想成为一个更好的Web开发人员,开办自己的业务,教别人,或者只是提高您的开发技能,我将在市场上最新的每周一次的网络上发布高质量的每周提示和技巧。
是什么导致思想混乱? (What leads to a chaotic mind?)
A chaotic mind is simply another word for stress. If you have many things to do, and cannot prioritize the ones that are really important, you are left with an equal focus on everything, which leads to stress. There is nothing wrong with having a bit of stress, as it prepares you for challenges, and things that matter.
混乱的头脑简直就是压力的代名词。 如果您有很多事情要做,而又不能将那些真正重要的事情放在优先位置,那么您将全神贯注于所有事情,这会导致压力。 一点压力并没有错,因为它可以帮助您应对挑战和重要的事情。
However, the issue is when it takes over your mind, the things you produce, and alters the way behave. It’s not something you can get rid of, but learning how to deal with a chaotic mind helps you to make better decisions, and live in the present.
但是,问题在于何时接管您的想法,所产生的事物并改变其行为方式。 这不是您可以摆脱的东西,但是学习如何处理混乱的头脑可以帮助您做出更好的决定,并活在当下。
Here are few definitions of how we end up with a chaotic mind
以下是一些关于我们如何以混乱的头脑结束的定义
1. Pressure or tension exerted on a material object.
1.施加在实物上的压力或张力。
2. A state of mental or emotional strain or tension resulting from adverse or demanding circumstances.
2.由于不利或苛刻的环境而导致的精神或情绪紧张或紧张状态。
It’s not your fault that the world we live in is full of “do this, not that, but wait, you must do this!” in other words, lots of things that drain our energy.
我们生活的世界充满了“这样做,不是那样,但是等一下,您必须这样做!”, 这不是您的错 。 换句话说,很多事情消耗了我们的精力。
If you try to sit down for a second, clear your thoughts and get some work done on the computer, you’ll most probably get distracted by something on the web. And before you know it, you’ve spend a couple of minutes or maybe hours on everything except the work that matters.
如果您尝试坐下来一秒钟,清除您的想法并在计算机上完成一些工作,则很可能会被网络上的某些事情分散注意力。 而且,在您不知道它之前,您已经花了几分钟甚至几小时来完成除重要工作以外的所有工作。
Next day, you do the same, and the day after. It seems that it’s impossible to do work without losing focus these days.
第二天,以及第二天,您也要这样做。 这些天似乎不可能不失去工作重点。
One thing that you need to understand is that the world is built upon getting your attention, because more attention equals more money. That is a part of the business model, and how everything else works in the business world. Social media, mobile apps, TV-commercials, you name it, they are all constructed to get the most out of your time. Some do it for the better, while others don’t.
您需要了解的一件事是,世界是建立在引起您注意的基础上的,因为更多的关注等于更多的金钱。 这是业务模型的一部分,也是业务世界中其他所有事物的工作方式。 顾名思义,社交媒体,移动应用程序,电视广告,都是为了充分利用您的时间而设计的。 有些人做的更好,而另一些则没有。
Let’s face it, there will always be distractions, and something that takes your attention. That is why it’s important to manage a chaotic mind, otherwise you’ll just float in the middle of nowhere.
让我们面对现实吧,总会有分心的事,而某些事会引起您的注意。 这就是为什么管理一个混乱的头脑很重要的原因,否则您会浮在虚无之中。
So what exactly leads to a chaotic mind?
那么究竟是什么导致思想混乱呢?
Limited time: Too many things that must be done within a specific deadline
时间有限:在特定的期限内必须完成的事情太多
Financial budget: Not able to buy the stuff you need to live a decent life
财务预算:无法购买您过上体面生活所需的东西
Friends/family: Not satisfied with what you do, too many expectations
朋友/家人:对您的工作不满意,期望值过高
Self-image: Not able to fulfill your desired goals
自我形象:无法实现您期望的目标
These are few reasons out of many. It depends on the person, and their environment. It’s interesting that the majority of people fall under same categories that cause stress.
这些是众多原因中的少数原因。 这取决于人和他们的环境。 有趣的是,大多数人属于引起压力的同一类别。
接受它的存在 (Accept that it exists)
First of all, you just need to accept it. Secondly, understand that it exists, and don’t try to fight it. Thirdly, analyze how your body and mind react. It’s not easy to detect a chaotic mind. And if you are not aware of it, few things can help.
首先,您只需要接受它即可。 其次,了解它的存在,不要试图与之抗争。 第三,分析一下您的身心React。 要发现混乱的头脑并不容易。 如果您不了解它,那么几乎没有什么可以帮助的。
One way to detect a chaotic mind is when the thoughts just burst around and it’s difficult to pinpoint something. If you forget things often, that may also be sign of a chaotic mind.
检测思想混乱的一种方法是,当想法突然爆发并且很难查明某件事时。 如果您经常忘记事情,那也可能是头脑混乱的迹象。
Once you realize it exists, and how you react to it, you can gradually find ways to reduce it. Just to be clear, stress is normal, but it doesn’t mean it cannot be maintained for the better.
一旦意识到它的存在以及对它的React,就可以逐渐找到减少它的方法。 需要明确的是,压力是正常现象,但这并不意味着压力无法得到改善。
For instance, if you drive somewhere, you might get an image where you turn the steering wheel too quickly to the left, and maybe hit someone. It does not define you, but is simply a thought out of dozens that randomly enters your mind. What defines you is the action you actually take. And thoughts like these are not unusual.
例如,如果您在某个地方开车,您可能会得到一个图像,在该图像中您将方向盘过快地向左旋转,甚至可能撞到了某人。 它并不能定义您,而只是数十个想法随机进入您的脑海。 定义您的是您实际采取的行动。 这样的想法并不罕见。
Here are a couple of ways to reduce a chaotic mind!
这里有几种减少混乱思想的方法!
它开始于你内心 (It starts within you)
It’s common for people to say that in order to reduce a chaotic mind, you need to exercise, be healthy, join a boot camp, talk to someone, be with someone, listen to podcasts and so forth. It may work. But if you think about it, these are things that point to external activities.
人们通常会说,为了减少混乱的思想,您需要锻炼身体,保持健康,加入新兵训练营,与某人交谈,与某人在一起,听播客等等。 它可能会起作用。 但是,如果您考虑一下,这些就是指向外部活动的东西。
Don’t get me wrong, exercising and eating healthy food is good for the mind and the body. But it’s important to realize the problem lies within you, and it’s you who must deal with the problem.
不要误会我的意思,锻炼和吃健康食品有益于身心。 但是,重要的是要意识到问题出在您体内,而必须由您来解决问题。
For instance if my car needs an oil change, I don’t go and fill up more gasoline, or continue to drive. The source of the problem is that I need to change the oil, that's it, otherwise the car will be damaged.
例如,如果我的车需要换油,我就不会去加满汽油或继续开车。 问题的根源是我需要更换机油,仅此而已,否则汽车会损坏。
Here’s the thing, always doing something doesn’t make us happier, it just takes our attention away from what we are struggling with. We need to be able to deal with emotions, deal with things that are not fun. Mike Tyson was asked once, what is the most difficult thing about training. He said, the mind.
这就是事情,总是做某事并不能使我们更快乐,这只会使我们的注意力从我们正在努力的事情上转移。 我们需要能够处理情绪,处理不愉快的事情。 曾经问过迈克·泰森(Mike Tyson),培训最困难的事情是什么。 他说,头脑。
You can meditate all day, eat healthy food and exercise 3 times a week, but if you can’t deal with a chaotic mind, you are simply increasing the severity of the damage. Learn to deal with your emotions by accepting that they exist, and don’t avoid them!
您可以整天打坐,吃健康的食物,每周锻炼3次,但是如果您不能应付混乱的头脑,您只会增加损害的严重性。 通过接受情绪的存在来学会处理情绪,不要回避它们!
专注于呼吸 (Focus on your breathing)
Breathing is an essential activity which supplies our body and its various organs with oxygen, which is vital for staying alive. We can live without food and water for a couple of days or maybe weeks, but if we stop breathing we die within a few minutes. There is a strong link between breathing and our mind. This is not something we really think of because most of the process happens automatically. Knowing how to breathe helps us to control our emotions, fears and keep a clear mind.
呼吸是一项必不可少的活动,可为我们的身体及其各个器官提供氧气,这对于维持生命至关重要。 我们可以在没有食物和水的情况下生活几天或几周,但是如果我们停止呼吸,我们将在几分钟之内死亡。 呼吸与我们的思想之间有着密切的联系。 这并不是我们真正想到的,因为大多数过程都是自动发生的。 知道如何呼吸有助于我们控制情绪,恐惧并保持头脑清醒。
For instance, if a programming task is too difficult to solve, your breathing becomes quick and shallow. Breathing deeply and slowly will instantly calm you down mentally as well as physically.
例如,如果编程任务难以解决,您的呼吸就会变得又快又浅。 深而慢地呼吸会立即使您在精神上和身体上平静下来。
So how can you know if you are breathing correctly? If you are sitting on a chair, put your hand on your stomach, and the other one on your chest, then check if your chest or stomach is moving when you inhale. If your chest is moving, then that’s not a good sign. The reason why is because the chest has limited space, which prevents maximum breathing (short cycles). On the other hand, if you do sports activities, then chest breathing is normal because you need oxygen quickly. But for non sport activities, the breathing should happen through your stomach.
那么如何知道呼吸是否正确? 如果您坐在椅子上,则将手放在腹部上,另一只手放在胸部上,然后在吸气时检查胸部或腹部是否在移动。 如果您的胸部在移动,那不是一个好兆头。 原因是胸部空间有限,这会阻止最大程度的呼吸(短周期)。 另一方面,如果您进行体育活动,则胸部呼吸是正常的,因为您需要快速吸氧。 但对于非体育活动,呼吸应通过您的胃进行。
正念 (Mindfulness)
It’s about bringing awareness to what you’re directly experiencing, being aware of where you are and what you are doing, not overly reactive or overwhelmed by whats happening around you. It sounds easy to sit down for a couple of minutes and live in the present, but trust me, it’s not! We are so caught up with living in the past and the future that we simply forget to live in the present.
这是为了使您对自己直接经历的事物有所了解,了解自己的位置和所从事的工作,而不是对周围的事情过度React或不知所措。 坐下来几分钟并活在当下听起来很容易,但是请相信我,事实并非如此! 我们被过去和未来的生活所束缚,以至于我们根本忘了活在当下。
Mindfulness is not something new. It’s been used for a long time, and even religions use it. Praying to god is a form of relaxation, for example, and bringing thoughts to the present. I’ve used this technique of mindfulness to clear my thoughts, and often I’ve found solutions to problems just by doing it. It’s a bit funny how we are able to find answers when we are not sitting at a desk.
正念不是什么新鲜事。 它已经使用了很长时间,甚至宗教都在使用它。 例如,向上帝祈祷是一种放松,并将思想带入当下。 我已经使用这种正念技术来清除自己的想法,而且经常我只是通过这样做来找到解决问题的方法。 当我们不坐在办公桌旁时,我们如何能够找到答案,这有点可笑。
奖励你自己 (Reward yourself)
If we want an animal to do a certain thing, we give it a treat every-time it does it, and after a while, it learns and knows that in order to get the treat it must perform the action. But if we don’t want it to perform it, we either shout or spray water on the animal (not recommended). These are things that humans have used to teach animals to do certain things, for instance dolphins to do back flips, dogs to roll and even lions to jump through fire (in a circus).
如果我们希望动物去做某件事,我们会在每次做某事时给它一种对待,过一会儿,它就会知道并知道为了得到这种对待,它必须执行动作。 但是,如果我们不希望它执行该操作,则可以对动物大喊或喷水(不推荐)。 这些是人类用来教动物做某些事情的事情,例如海豚做后空翻,狗滚动,甚至狮子跳火(在马戏团里)。
We humans are not that different from animals. It’s important that we rewards ourselves when we do good things, as this rewires the neurological pattern of the brain to keep performing the action. Buy yourself something you like, for instance a chocolate bar, energy drink or ice cream when you do something good, and you’ll continue to do it. It can also be watching a movie, your favorite series on Netflix, and so forth. Find what works for you.
我们人类与动物没有什么不同。 重要的是,我们在做善事时会回馈自己,因为这可以重新构造大脑的神经模式,从而继续执行动作。 做好事后,购买自己喜欢的东西,例如巧克力棒,能量饮料或冰淇淋,然后您将继续这样做。 它还可以看电影,在Netflix上喜欢的电视剧等等。 找到适合您的东西。
结论 (Conclusion)
A chaot mind is not something we want, and as mentioned, it leads to producing poor quality content. It first starts within you, so you need to understand how you think and react to certain things, and not try to avoid it by doing external activities all the time. Deal with your thoughts and emotions through mindfulness, breathing, and make sure you reward yourself when doing something good.
乱七八糟不是我们想要的东西,并且如上所述,它导致产生质量低劣的内容。 它首先在您内部开始,因此您需要了解自己如何思考和对某些事情做出React,而不要一直通过进行外部活动来避免这种情况。 通过正念,呼吸来处理自己的思想和情绪,并确保在做一件好事时能奖励自己。
If you understand how your mind works, you’ll be able to improve lots of things in your business as well as personal life.
如果您了解自己的思维方式,就可以改善您的业务以及个人生活中的许多事情。
Please share if you have any good techniques on dealing with a chaotic mind.
如果您有任何善于处理混乱思维的技巧,请分享。
Here are a few articles I’ve written about the web-ecosystem along with personal programming tips and tricks.
这是我写的有关Web生态系统的几篇文章,以及个人编程技巧和窍门。
You can find me on Medium where I try to publish on a weekly basis. Or you can follow me on Twitter, where I post relevant web development tips and tricks along with personal life tips.
您可以在Medium上找到我,并尝试每周发布一次。 或者,您也可以在Twitter上关注我,我在其中发布了相关的Web开发技巧和窍门以及个人生活技巧。
翻译自: https://www.freecodecamp.org/news/a-chaotic-mind-leads-to-chaotic-code-e7d6962777c0/
头脑风暴算法代码