@havanoficial Parabéns pelo trabalho, dedicação e simpatia dos pilotos, feliz em ter ajudado a carregar este helicóptero com estes anjos, muito obrigado @luciano_hang
@LulaOficial@EduardoLeite_@Pimenta13Br Enquanto ficam nas redes sociais o povo morrendo esperando por ajuda que não chega, quanta burocracia pra liberar uns Helicópteros🚁, famílias inteiras sob telhados e nem sinal de ajuda aérea... Tinham já previsto todo o caos que está acontecendo aqui, e não anteciparam nada! 😭
The Application layer in Clean Architecture should express intent.
It's part of the application core and contains the use cases.
Use cases represent a small functionality of your application:
- Get me the current user
- Transfer funds between accounts
- Send this order to the shipping department
I split my use cases into commands and queries.
Commands contain business (application) logic and update the database. They can also trigger side effects and talk to other systems.
Queries are simple. They return the required data from the database.
What about the Application layer folder structure?
I don't use a purely technical approach:
❌ Technical
📂 Commands
📂 Queries
📂 Exceptions
📂 Services
The reason against using technical folders is they are harder to navigate.
Technical folders don't communicate intent.
Instead, I use a mix of technical and use case driven folders:
✅ Use case driven
📂 Abstractions
📂 Subscriptions
📂 Workouts
📂 Users
This folder structure allows me to focus on use cases. While still having a dedicated place for technical concerns.
The benefits of grouping around use cases are:
- Easier navigation
- Improved cohesion
- Simplified maintenance
- High coupling for a single feature
- Low coupling between unrelated features
P.S. If you got value from this post and want to improve your software architecture skills, subscribe to The .NET Weekly - my newsletter with 36,000+ engineers.
Subscribe here → https://t.co/zeSWQFMIk8
What do you think about this Application layer folder structure?
Say goodbye to messy code! ⚡
Introducing the Vue.js Composition API #Cheatsheet, to help you write components in a modular, organized way.
Check out the cheatsheet for a head start, and this relevant course if you want to learn more: https://t.co/52MiLJPVu6
#vueschool#vuejs
Com hospitais lotados, não se trata apenas se você teme ou não a COVID. Trata-se do receio de você, ou alguém querido, infartar, ter um AVC, um acidente ou uma apendicite e não conseguir atendimento. Estas a gente não pode controlar. Mas a circulação do coronavirus, sim.
📢ANNOUNCEMENT📢 DI .FM is celebrating 20 years and you’re invited! Enter our giveaway at https://t.co/7hptYd7DED daily until Dec 20 for your chance to score a pair of Bose headphones + 2 years of DI .FM Premium!
#di20th#giveaway#anniversary#bose#premium
Lançamos uma calculadora para simular as alíquotas da #NovaPrevidência. Quem ganha menos vai contribuir com menos. E quem ganha mais vai contribuir com mais. Confira! https://t.co/XHiYSlozaj
Um dos grandes desafios da Nova Previdência é lutar contra a desinformação. Para isso, fiz esse vídeo relatando os 5 argumentos falsos mais utilizados https://t.co/0XFalSYnop
#LutePelaSuaAposentadoria#EuApoioNovaPrevidencia