Overcome the fear of missouts with Kotlin and IntelliJ.
The· Best About being a developer? There is always something new to learn. Coroutine! Flow! Composition! Codeine DB! Ktor! Arrow! Costest!
The· worst About being a developer? There is always something new to learn. Coroutine! Flow! Composition! Codeine DB! Ktor! Costest!
One of the best talks I’ve seen recently Hype development From Kitze. Analyze how Fear Of Missing Out on Twitter drives us crazy. I’m sure most of my readers are involved in it:
The simple fact of life as a programmer is that we never know, and never know, all the latest languages, technologies, and frameworks.
And emotionally, we are not aware of it is not necesary to.
This madness comes from a good place: The desire to always know more.
It’s a testament to a good developer.
But it has a dark side.
Stress was invented by nature to help survive dangerous situations. Stress helps escape predators and accidents on the highway and actually saves lives. But then it must be released, otherwise you will get sick.
The peak of stress that helps you avoid danger is good.
On the other hand, being in permanent survival mode is bad.
The question is not how to “manage” persistent stress, but how to eliminate it.
Answer: Refactoring the internal dialog.
If you need to guess what the internal dialog looks like when emphasized this way:
Okay, you think you have to learn
Wow. That’s a lot.
That’s too much.
But thank you for submitting your internal dialog for me to review.
Here are some things I noticed.
It’s not just for you, it’s a feature
feelsOverWhelmed() It’s true for everyone.
JetBrains IntelliJ usefully emphasizes this issue and suggests a quick fix.
Apply the correction.
will you do
feelsOverWhelmed() Do you feel the features make sense to you now? 🤔
To find out, I try to apply a refactoring option: Inline function..
Oh, did you notice what happened?
IntelliJ just removed the parts that felt overwhelming.
That’s right. Feeling overwhelmed from time to time tells you nothing about you, except I already knew.
You are a developer
We still have a lot to learn, so let’s move on.
Well, you want to succeed.
Who won’t do it?
It tells me nothing about yourself.
Press IntelliJ and the issue will be highlighted again nicely
Alt-Enter To your Boolean.
Then i Simplify Boolean expressions..
Now the code looks like this:
F2 This is a shortcut for the action
Next highlighted error..
Why does IntelliJ suggest deleting the expression?
Again, the fact that you are procrastinating tells you nothing about yourself, except that you are a normal person.
In other words, some people will pretend not to procrastinate. This shows that self-awareness is not very good.
But you are better than that.
Yes, delete that expression.
Once again i press
Alt-Enter For quick correction.
The IDE is correct.
Is there an enthusiastic view that “success is good and procrastination is bad”?
They don’t mean anything. We can let them go.
Delete those variables.
After deleting unused variables, I stayed …
Alt-Enter.. You are good at things like this!
As you can see, there is no reason You are It needs to be emphasized in particular.
Apply the correction.
Why on earth do you need this
developer With variables
We let them go because they aren’t causing joy.
understood. There are still empty meaningless functions left.
Inline it as we did
This is the final state I think the sweaty internal dialog needs to be refactored.
- Be aware of your stress.
- Pause. Breathe
- Be aware that permanent stress is never needed.
- Make a note of what is stressing you.
- Later you will find a solution to eliminate the stressor.
- Tip: It’s usually strange to talk to someone you can trust.