Write Idiomatic Code - Deepstash

Keep reading for FREE

Idiomatic code

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.

6

102 reads

Benefits of idiomatic code

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

7

65 reads

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

7

53 reads

CURATED BY

ocpodariu

Alt account of @ocp. I use it to stash ideas about software engineering

CURATOR'S NOTE

šŸ“– Writing Idiomatic Python

ā€œ

stash-superman-illustration

Explore the Worldā€™s

Best Ideas

200,000+ ideas on pretty much any topic. Created by the smartest people around & well-organized so you can explore at will.

An Idea for Everything

Explore the biggest library of insights. And we've infused it with powerful filtering tools so you can easily find what you need.

Knowledge Library

Powerful Saving & Organizational Tools

Save ideas for later reading, for personalized stashes, or for remembering it later.

# Personal Growth

Take Your Ideas

Anywhere

Organize your ideas & listen on the go. And with Pro, there are no limits.

Listen on the go

Just press play and we take care of the words.

Never worry about spotty connections

No Internet access? No problem. Within the mobile app, all your ideas are available, even when offline.

Get Organized with Stashes

Ideas for your next work project? Quotes that inspire you? Put them in the right place so you never lose them.

Join

2 Million Stashers

4.8

5,740 Reviews

App Store

4.7

72,690 Reviews

Google Play

Shankul Varada

Best app ever! You heard it right. This app has helped me get back on my quest to get things done while equipping myself with knowledge everyday.

ā€œ

Sean Green

Great interesting short snippets of informative articles. Highly recommended to anyone who loves information and lacks patience.

ā€œ

Ashley Anthony

This app is LOADED with RELEVANT, HELPFUL, AND EDUCATIONAL material. It is creatively intellectual, yet minimal enough to not overstimulate and create a learning block. I am exceptionally impressed with this app!

ā€œ

samz905

Donā€™t look further if you love learning new things. A refreshing concept that provides quick ideas for busy thought leaders.

ā€œ

Ghazala Begum

Even five minutes a day will improve your thinking. I've come across new ideas and learnt to improve existing ways to become more motivated, confident and happier.

ā€œ

Giovanna Scalzone

Brilliant. It feels fresh and encouraging. So many interesting pieces of information that are just enough to absorb and apply. So happy I found this.

ā€œ

Laetitia Berton

I have only been using it for a few days now, but I have found answers to questions I had never consciously formulated, or to problems I face everyday at work or at home. I wish I had found this earlier, highly recommended!

ā€œ

Jamyson Haug

Great for quick bits of information and interesting ideas around whatever topics you are interested in. Visually, it looks great as well.

ā€œ

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Access to 200,000+ ideas

ā€”

Access to the mobile app

ā€”

Unlimited idea saving & library

ā€”

ā€”

Unlimited history

ā€”

ā€”

Unlimited listening to ideas

ā€”

ā€”

Downloading & offline access

ā€”

ā€”

Personalized recommendations

ā€”

ā€”

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates