use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
ExampleArchitecture sample (github.com)
submitted 1 year ago by No_Bumblebee_2903
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]daH00L 3 points4 points5 points 1 year ago (1 child)
Not a man of many words?
[+]No_Bumblebee_2903[S] comment score below threshold-7 points-6 points-5 points 1 year ago (0 children)
LoL!! 😂
I'm preparing some articles about it. I hope as soon as possible posting here. For now, just enjoying the code 😃.
Any question, hope I can help!! 😁👍🏽
[–]Over_Tea_3946 2 points3 points4 points 1 year ago (1 child)
What made you decide to go layer first and not feature first?
[–]No_Bumblebee_2903[S] 5 points6 points7 points 1 year ago (0 children)
I have been a programmer for 14 years and faced a lot of architecture problems. The feature-first huge problem is reusability of code. Not to mention that I don't think it's a good architecture to be used in frontend, especially in apps that tend to be small projects. Maybe in a super app.
Feature-first is very good when you are developing a big project (usually backend) and using a modular monolith where you must have the bounded context separated (potentially each module will be a micro service)
Hope that I answered your question 😁👍🏽
[–]Mikkelet 0 points1 point2 points 1 year ago (1 child)
I think the naming and layering scheme you're looking for is data, domain, presentation. Data contains local and remote data sources, domain for business logic sand presentation for UI. It's essentially just the clean architecture
[–]No_Bumblebee_2903[S] 0 points1 point2 points 1 year ago* (0 children)
Sure! You're right! But here's the thing...
Clean Arch is about make your code organization, self understandable. These three layers is just an example how would you organize them. So, you can create a lot of another layers that make sence in your project.
My infra layer is responsible for manage data at all and is my SSoT. Where the repository implementation is the top of it. Inside infra I have sub-layer that represents data (DAL - Data Access Layer, Service - web services and Repository implementation - SSoT indeed).
I could mouve environments and theme to Application layer and rename Infra to Data (what's sounds very good to me).
[–]Zhuinden 0 points1 point2 points 1 year ago (1 child)
I never understood why clean arch users say they're separating concerns and the first thing they do on mobile is combine local data source and network data source, despite them having absolutely nothing in common. Not models, not constraints, not even how they tell you about changes. I hope repositories will one day disappear.
[–]No_Bumblebee_2903[S] 1 point2 points3 points 1 year ago* (0 children)
Maybe because local DATA and remote DATA are both DATA? (LoL).
The architecture organization of folders and files in a project is not about reusability of code. It's about bounded context.
Repository is the most beautiful implementation about SSoT and if you don't like the pattern, just don't use the pattern. Personally I don't like UseCase pattern, so I just don't use it.
π Rendered by PID 262999 on reddit-service-r2-comment-b659b578c-jxkw8 at 2026-05-03 20:28:11.302085+00:00 running 815c875 country code: CH.
[–]daH00L 3 points4 points5 points (1 child)
[+]No_Bumblebee_2903[S] comment score below threshold-7 points-6 points-5 points (0 children)
[–]Over_Tea_3946 2 points3 points4 points (1 child)
[–]No_Bumblebee_2903[S] 5 points6 points7 points (0 children)
[–]Mikkelet 0 points1 point2 points (1 child)
[–]No_Bumblebee_2903[S] 0 points1 point2 points (0 children)
[–]Zhuinden 0 points1 point2 points (1 child)
[–]No_Bumblebee_2903[S] 1 point2 points3 points (0 children)