Skip to content

Instantly share code, notes, and snippets.

View erfan-rfmhr's full-sized avatar
😶
working

Erfan Arefmehr erfan-rfmhr

😶
working
View GitHub Profile
@erfan-rfmhr
erfan-rfmhr / docker-remove-useless.md
Last active November 18, 2024 09:56
Docker: remove all dangling images and stopped containers

How to delete dangling images?

docker rmi $(docker images -f "dangling=true" -q)

How to delete stopped containers?

docker rm $(docker ps -a -q -f status=exited)

Contact

My socials:

@erfan-rfmhr
erfan-rfmhr / ddd-road.md
Last active March 2, 2025 13:44
Domain-Driven Design: How to start?

What is Domain-Driven Design?

Domain-Driven Design is an approach to software development that centers the development on programming a domain model that has a rich understanding of the processes and rules of a domain.

Martin Fowler

Why did I write this gist?

Recently, I found DDD hard to learn, as it is a complex subject with concepts that are difficult to understand. Most of these concepts are completely new to beginners, which makes it tough to start. Hence, I decided to share the process I took to learn DDD. I hope everyone finds it helpful.