<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o" -->

---
title: Nasa's Laws of Writing Readable Code | daily.dev
description: Drawing from NASA's coding standards, this covers three key principles for writing readable and maintainable code: keeping functions small and focused on a...
canonical: https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Nasa's Laws of Writing Readable Code | daily.dev
og:description: Drawing from NASA's coding standards, this covers three key principles for writing readable and maintainable code: keeping functions small and focused on a...
og:url: https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o
og:image: https://api.daily.dev/og/posts/5Qt1yaj1o.png
og:image:alt: Nasa's Laws of Writing Readable Code
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Nasa's Laws of Writing Readable Code

**[Kantan Coding](https://daily.dev/sources/kantancoding)** · 5 min read · 0 upvotes · 0 comments

## Summary

Drawing from NASA's coding standards, this covers three key principles for writing readable and maintainable code: keeping functions small and focused on a single responsibility to avoid excessive indirection, declaring data objects at the smallest possible scope to reduce side effects and race conditions, and enforcing access control (private/protected) rather than relying on comments to limit a method's exposed surface area.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=av0O_Lb8JbQ>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming)

[View this post on daily.dev](https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Nasa's Laws of Writing Readable Code","url":"https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o"},"datePublished":"2026-04-27T14:19:21.825Z","dateModified":"2026-04-27T14:19:38.694Z","description":"Drawing from NASA's coding standards, this covers three key principles for writing readable and maintainable code: keeping functions small and focused on a...","image":"https://i.ytimg.com/vi/av0O_Lb8JbQ/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/av0O_Lb8JbQ/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Kantan Coding","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Kantan Coding","logo":"https://media.daily.dev/image/upload/s--FBdOHLfr--/f_auto/v1729363355/logos/kantancoding","url":"https://daily.dev/sources/kantancoding"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/nasa-s-laws-of-writing-readable-code-5qt1yaj1o","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming","timeRequired":"PT5M","video":{"@type":"VideoObject","name":"Nasa's Laws of Writing Readable Code","description":"Drawing from NASA's coding standards, this covers three key principles for writing readable and maintainable code: keeping functions small and focused on a...","thumbnailUrl":"https://i.ytimg.com/vi/av0O_Lb8JbQ/sddefault.jpg","uploadDate":"2026-04-27T14:19:21.825Z","duration":"PT5M","url":"https://api.daily.dev/r/5Qt1yaj1o","embedUrl":"https://www.youtube.com/embed/av0O_Lb8JbQ"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kantan Coding","item":"https://daily.dev/sources/kantancoding"},{"@type":"ListItem","position":3,"name":"Nasa's Laws of Writing Readable Code"}]}
```

