Explain me clean architecture like im five

clean architecture

Did you find this post useful? Show some love!

I'm still going to read the book, but I have read posts about clean architecture and an excellent talk about it given by Brandon Rhodes. I will try to work with what I have.

We, as programmers, tend to hide I/O calls (database operations, api calls etc) in subroutines. The I/O call is hidden from us and anyone using our code. The thing is: we usually hide it but do not decouple it. You can't do the required task without making an I/O call. The I/O call is still an inevitable consequence of doing the task. This is bad for testing and for getting cached results. What the clean architecture does is the opposite: make the I/O call explicitly in the routine and work with the data in subroutines as pure functions (functions that return data just based on what was given as arguments and do not change any data outside of it). This makes testing and refactoring (in case the I/O call have to change after a version update for example) much easier.

I think there is no fast way to understand this, so I recommend the talk I linked before. It is an ELI5, but a long one :)

not possible.

need to watch a 4-hour uncle bob's talk about science, human nature, computing history, animal kingdom, finance, business, nuclear medicine, quantum mechanics, geography, chinese war history, dc motors, sun tzu, religion, spanish colonization of 15th century, post victorian furniture style, oysters, art patronization from religious entities in XIV century, black holes, ms-dos, cold blooded animals evolution, fire ants, denim, woodworking, radiotelescope arrays, sugar beets, perpetual motion, metric system, the mechanical characteristics of walnut, atari lynx, sony betamax, commercial rockets and privately managed satellite networks, babbage, difference between grafting and cutting, gmo, roman siege weapons, goats, armchairs, before you are prepared to learn about clean architecture.

Sorry for ruining your thread.
I hope you get more serious answers :D Robert Martin is known for... talks covering strange topics :D

Hahahahah no problem i found it very funny and interesting too. Thanks anyway.


Hey there, we see you aren't signed in. (Yes you, the reader. This is a fake comment.)

Please consider creating an account on dev.to. It literally takes a few seconds and we'd appreciate the support so much. ❤️

Plus, no fake comments when you're signed in. 🙃

hey, i keep reading about the topic and i found this useful post.
Happy coding!!

Classic DEV Post from Aug 16

Understanding Object Oriented JavaScript

Recently I was tasked to create an Object Oriented Arcade Game and at first s...

Follow @donita to see more of their posts in your feed.
Enzo Lizama Paredes
Challenges lover. Problem solver. Occasional writer. Software Engineer student :octocat:. Passionate about soccer :soccer:. @HackSpacePeru
More from @enzoftware
Let’s play with the Android accelerometer + Kotlin
#kotlin #android #sensors
Trending on dev.to
Does your website really need to be larger than Windows 95?
#discuss #coding #technology
Who's looking for open source contributors? (September 24 edition)
#discuss #opensource
Writing Beautiful Code
#webdev #productivity #php
How do you shift between the coding mindset and other head spaces?
How do you think of angularjs application
If you don't hire juniors, you don't deserve seniors
#career #management #recruiting
How to Improve Your Development Experience
#beginners #career #development #productivity
Have you ever been in a hackathon