Use the standard library - Deepstash
Use the standard library

Use the standard library

Writing idiomatic code implies relying on the standard library to solve problems, and not reimplementing functionality that is already maintained by core developers.

This has two main benefits:

  1. Others will find it easier to read and maintain your code because you use packages familiar to them
  2. You save time by not having to implement functionality from scratch

4 STASHED

1 LIKE

Write Idiomatic Code

📖 Writing Idiomatic Python

MORE IDEAS FROM THEARTICLE

Benefits of idiomatic code

Learning and internalizing the idioms of a language greatly improves your reading abilities. You are able to focus on understanding what the code does instead of wondering why the code is written in an awkward way.

Projects that use idiomatic code benefit from:

  • Higher maintainability - Idiomatic code is clear, maintainable, and bug-free
  • Faster code reading & Lower cognitive load - People are no longer stopping at every line, trying to figure out what it does, while struggling to keep in mind what came before
  • Faster debugging - It's easier to spot bugs in idiomatic code

4 STASHED

1 LIKE

Idiomatic code

Idiomatic refers to the most common way to write something in a language. Writing idiomatic code means following the conventions of the language, and solving problems the way they are meant to be solved in that language, not by porting programming patterns from other languages.

Idioms vary widely across languages.

4 STASHED

1 LIKE

Deepstash helps you become inspired, wiser and productive, through bite-sized ideas from the best articles, books and videos out there.

GET THE APP:

RELATED IDEAS

JORDAN PETERSON

The purpose of life is finding the largest burden that you can bear and bearing it.

6 STASHED

6 LIKES

Jordan Peterson - epitome of awareness

📖 Reading.

FEAR OF DEATH

Fear of death is the most common fear among everyone.

But the question is why do we fear death? 

  • Anything which is not in our experience triggers fears. Unkown things cause restlessness and fear, So we fear death because what is after death is unknown to us.
  • We can also understand the first point in this way, It is not death what most people fear, but the process that precedes it: THE DYING

10 STASHED

8 LIKES

Fear of Death and How to Overcome It

📖 Reading

Keep Creating Content, leave the rest to your audience

“It only takes one piece of content to change your life, you just don’t know which one it’s going to be.” — Gary Vaynerchuck

If you’re a DJ, all you need is one track. If you’re an author, you just need one book. If you’re a blogger, one article. If you’re a Youtuber, one video. The thing is, it will never happen if you stop before luck strikes.

9 STASHED

4 LIKES

Why you need to keep creating content

📖 reading