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 Mar 30

How To Securely Store User Passwords

When plain text is obviously not ideal.

Follow @kasperfred 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
Follow Friday!
How do you make time for your dev/tech projects?
#discuss #productivity
What's your approach to fixing a "long-term" hairy bug?
Back to basics: Naming
#naming #javascript #programming #discuss
What are the first differences you noticed in GitHub after Microsoft bought it? Post here yours!
#github #microsoft #discuss
Which contentious opinions in programming actually matter?
#discuss #webdev #programming #grannyrulescomments
What are your programming blogs?
React Native: Write code depending on the plateforms
#reactnative #react #ios #android