<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr" -->

---
title: Better Practices With Clean Code | daily.dev
description: Clean code means developers have more ease and less stress to work on a project. It&#x27;s not about when we leave our project we need to make it perfect. Instead,...
canonical: https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Better Practices With Clean Code | daily.dev
og:description: Clean code means developers have more ease and less stress to work on a project. It&#x27;s not about when we leave our project we need to make it perfect. Instead,...
og:url: https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr
og:image: https://api.daily.dev/og/posts/OB85-Ojwr.png
og:image:alt: Better Practices With Clean 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.

# Better Practices With Clean Code

**[The Startup](https://daily.dev/sources/swlh)** · 5 min read · 65 upvotes · 3 comments

## Summary

Clean code means developers have more ease and less stress to work on a project. It's not about when we leave our project we need to make it perfect. Instead, it advices us to gradually and frequently refactor our code. It won't slow us down, it will speed us up when we get back to that code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/swlh/better-practices-with-clean-code-c8ee6f4979c3>

## Community discussion

Top comments from developers on daily.dev.

**@optimus** · 6 upvotes

> Hope these videos will be also helpful in this regard
>
> https://youtu.be/HcijbAI4eB0
>
> https://youtu.be/OHQoytCkQUY

**@isashi** · 4 upvotes

> Nice article, but instead of
>
>
>
> ```function checkAdmin(user) {
>   if (!user) return false
>   if (!user.isAuthenticated) return false
>   if (!user.isAdmin) return false
>   return true
>
> }```
>
>
> it's not better just
>
>
> ```function checkAdmin(user) {
>   return user && user.isAuthenticated && user.isAdmin
> }```
>
>
> ??

**@lawrenxjr** · 2 upvotes

> yeah sure!!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr)

```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":"Better Practices With Clean Code","url":"https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr"},"datePublished":"2020-10-29T23:34:35.081Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Clean code means developers have more ease and less stress to work on a project. It's not about when we leave our project we need to make it perfect. Instead,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/91b1ab6a13259ee7dc976ed93b3e3154","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/91b1ab6a13259ee7dc976ed93b3e3154","isAccessibleForFree":true,"articleSection":"The Startup","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":"The Startup","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/swlh","url":"https://daily.dev/sources/swlh"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":65},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"general-programming","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Startup","item":"https://daily.dev/sources/swlh"},{"@type":"ListItem","position":3,"name":"Better Practices With Clean Code"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/better-practices-with-clean-code-ob85-ojwr","comment":[{"@type":"Comment","text":"Hope these videos will be also helpful in this regard\nhttps://youtu.be/HcijbAI4eB0\nhttps://youtu.be/OHQoytCkQUY","datePublished":"2020-11-04T15:55:39.607Z","url":"https://daily.dev/posts/OB85-Ojwr#c-BZeMZ9Ut5","author":{"@type":"Person","name":"Mirodil Kamilov","url":"https://daily.dev/optimus","image":"https://media.daily.dev/image/upload/f_auto/v1637297156/avatars/-2ZpoMFux"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"Nice article, but instead of\n  if (!user) return false\n  if (!user.isAuthenticated) return false\n  if (!user.isAdmin) return false\n  return true\n\n}```\n\n\nit's not better just\n\n\n```function checkAdmin(user) {\n  return user && user.isAuthenticated && user.isAdmin\n}```\n\n\n??","datePublished":"2020-11-03T09:34:46.477Z","url":"https://daily.dev/posts/OB85-Ojwr#c-QpAfRflWT","author":{"@type":"Person","name":"Isashi","url":"https://daily.dev/isashi","image":"https://avatars1.githubusercontent.com/u/22845976?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"yeah sure!!","datePublished":"2020-10-30T15:13:59.151Z","url":"https://daily.dev/posts/OB85-Ojwr#c-Z7qksM3pU","author":{"@type":"Person","name":"Benjamin Lawrence","url":"https://daily.dev/lawrenxjr","image":"https://avatars2.githubusercontent.com/u/66321351?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

