惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
P
Proofpoint News Feed
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News | PayPal Newsroom
Application and Cybersecurity Blog
Application and Cybersecurity Blog
O
OpenAI News
S
Security @ Cisco Blogs
宝玉的分享
宝玉的分享
Hacker News: Ask HN
Hacker News: Ask HN
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
TaoSecurity Blog
TaoSecurity Blog
Help Net Security
Help Net Security
Latest news
Latest news
NISL@THU
NISL@THU
S
Security Affairs
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
AI
AI
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
小众软件
小众软件
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
AWS News Blog
AWS News Blog
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
I
InfoQ
Schneier on Security
Schneier on Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
The Exploit Database - CXSecurity.com
IT之家
IT之家
T
Threatpost
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
腾讯CDC
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
News and Events Feed by Topic
L
LINUX DO - 最新话题
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
H
Heimdal Security Blog
S
SegmentFault 最新的问题

Kent C. Dodds Blog

Implementing Hybrid Semantic + Lexical Search Simplifying Containers with Cloudflare Sandboxes Migrating to Workspaces and Nx Offloading FFmpeg with Cloudflare Building Semantic Search on my Content Helping YOU ask ME questions with AI How I used Cursor to Migrate Frameworks The Dow's Start on the Covenant Path 2025 in Review The next chapter: EpicAI.pro AI is taking your job How I increased my visibility Launching Epic Web 2023 in Review Stop Being a Junior RSC with Dan Abramov and Joe Savona Live Stream Fixing a Memory Leak in a Production Node.js App 2022 in Review My Car Accident I Migrated from a Postgres Cluster to Distributed SQLite with LiteFS I'm building EpicWeb.dev A review of my time at Remix Remix: The Yang to React's Yin How I help you build better websites Why I Love Remix The State Initializer Pattern How to React ⚛️ Get a catch block error message with TypeScript Building an awesome image loading experience How Remix makes CSS clashes predictable Introducing the new kentcdodds.com How I built a modern website in 2021 How to use React Context effectively Static vs Unit vs Integration vs E2E Testing for Frontend Apps The Testing Trophy and Testing Classifications Array reduce vs chaining vs for loop Don't Solve Problems, Eliminate Them Super Simple Start to Remix Super Simple Start to ESModules in Node.js JavaScript Pass By Value Function Parameters How to write a Constrained Identity Function (CIF) in TypeScript How to optimize your context value How to write a React Component in TypeScript TypeScript Function Syntaxes Listify a JavaScript Array Build vs Buy: Component Libraries edition Using fetch with TypeScript Wrapping React.useState with TypeScript Define function overload types with TypeScript 2020 in Review Business and Engineering alignment Hi, thanks for reaching out to me 👋 useEffect vs useLayoutEffect Super simple start to Firebase functions Super simple start to Netlify functions Super Simple Start to css variables Favor Progress Over Pride in Open Source Testing Implementation Details How getting into Open Source has been awesome for me useState lazy initialization and function updates Use ternaries rather than && in JSX Application State Management with React Use react-error-boundary to handle errors in React JavaScript to Know for React How I structure Express apps What open source project should I contribute to? When I follow TDD AHA Programming 💡 How I Record Educational Videos Should I write a test or fix a bug? Stop mocking fetch Intentional Career Building Improve test error messages of your abstractions Tracing user interactions with React Eliminate an entire category of bugs with a few simple tools Common mistakes with React Testing Library Super Simple Start to React Stop using client-side route redirects The State Reducer Pattern with React Hooks Function forms Replace axios with a simple custom fetch wrapper How to test custom React hooks React Production Performance Monitoring Should I useState or useReducer? Stop using isLoading booleans Make Your Test Fail Make your own DevTools An Argument for Automation Fix the "not wrapped in act(...)" warning Super Simple Start to ESModules in the Browser Implementing a simple state machine library in JavaScript 2010s Decade in Review Why users care about how you write code Why I avoid nesting closures Don't call a React function component Why your team needs TestingJavaScript.com Inversion of Control Understanding React's key prop How to Enable React Concurrent Mode Profile a React App for Performance
How Gratitude can make you a better developer
2018-12-03 · via Kent C. Dodds Blog

This week in the United States we celebrate Thanksgiving Day. In the US, the celebration was started by Pilgrims who came to America in the 1620s on the Mayflower. They had a pretty rough time getting their settlement started and had help from the Native Americans. Together they celebrated and gave thanks to God for a good harvest with a feast and that yearly tradition became the Thanksgiving holiday we celebrate in the US today.

Each year, Thanksgiving gets more and more overshadowed with the commercialism of Christmas. I want to take this opportunity to share with you some of the things I'm grateful for and also explain why I think that gratitude can help you be a better software engineer and a better person.

When I was off riding horses at a family reunion last summer, my older brother gave a presentation about attitude and gratitude.

He presented this graphic:

The Wheel of Experience: Positive

The Wheel of Experience: Positive

Given any circumstance (which we often can't control), whether those circumstances are positive or negative, we can control what we think of those circumstances, and that impacts the outcome. Positive thoughts lead to positive feelings, actions, and results.

Then he presented this alternative graphic:

The Wheel of Experience: Negative

The Wheel of Experience: Negative

Here we have the same circumstances but respond with negative thoughts which lead to negative feelings, followed by negative actions and then negative results.

What's the big difference between these two experiences? Here we have them together:

The Wheel of Experience: Both — Attitude

The Wheel of Experience: Both — Attitude

The turning point for both of these experiences is our thoughts. Our attitude can help guide our thoughts automatically in a positive direction so we more often wind up with positive feelings, actions, and results.

Let's try to make this more concrete. Imagine that your product manager comes to you and says you have to stop experimenting with GraphQL because a new requirement came in and it's critical to the business that everyone work on it. That's a circumstance you can't control, but your attitude and what you think about that circumstance can influence the result.

Let's take the negative route first. You think: "I'll bet that manager is just making this up. They don't want us to take anymore time to learn GraphQL because they never wanted to invest in it anyway." 😠 This clearly will make you feel resentful and upset at the product manager and the work they've given you to do. Because of these negative feelings, your behavior toward your manager and co-workers is cold and bitter, and you make short-cuts on the work you've been given because you don't want to do it anyway and you think it's just something your manager made up because they're petty. 😡 The result is a poorly thought out solution that's not tested, ends up causing more problems, is code nobody wants to touch, and it's a spiral down from there. 🌀

Now with the positive attitude, things change. You think: "Dang, I really wanted to experiment with GraphQL and my branch will probably fall out of date, but that's ok, I'll probably be able to get it back up to date when I'm done with this." 😃 You get to work on the assignment you've been given, hopeful that you can finish it and get back to your GraphQL work, but also with the positive attitude you approach all your work because you care about software craft and want to make sure you don't have to deal with this when it's shipped. 🚢 The result is a well crafted solution that's well tested and reviewed, you don't have any problems when shipping to production so nobody needs to touch the code anyway, you get back to your GraphQL work and turns out it's a smashing success and you're promoted! 🥇 Good job! 👏

This is a contrived example, but hopefully you can see this as something that could actually happen and you can see examples of times things have worked out this way for you in the past (both negative and positive).

It's important to realize that "positive results" does not mean you'll necessarily get the promotion like we have in this story, that's another thing that's not entirely in your control. But one thing that is always in your control are the attitude and thoughts you have given any circumstances.

After my brother explained this (though he didn't share that story, I made that up on my own 😉), he showed us a clip from this video (I recommend you watch it before continuing):

So science 👩‍🔬🔬📊⚗️👨‍🔬 tells us that gratitude makes us happier! The video gives a challenge, and this is the slide my brother showed us for his "Happiness Invitation"

Happiness Invitation

Step 1

  • Journal for 1 week
  • 5 minutes each night
  • "Things I am grateful for" (People, places, things...)

Step 2

  • Look at your list and think "Who gave this to me?"
  • Express sincere gratitude to someone else (Letter; Private, personal opportunity)

Step 3

  • After expressing gratitude, write down in detail how you feel now

Conclusion

One thing that I like about the video and this challenge is that it gives a path for developing a better attitude. I think often our thoughts are automatic and unless we're really trying, our brain with start thinking for us. This is where mindfulness kicks in. Being mindful of yourself and how you're feeling can actually lead you to retraining your brain to think positively automatically. It may be hard to change your thought process today, but given enough time and effort, you can retrain your brain to do what will really bring you happiness.

I hope you join me this Thanksgiving in the happiness invitation. Tweet with the hashtag #HappinessInvitation every time you do one of the steps (write in your journal, express gratitude, and reflect) and let's hold each other accountable. Then next week we'll see how we're all feeling and hopefully we can land that promotion we're looking for 😉🥇

Good luck!