Better HN
topnewbestaskshowjobs
Log inSign up

happycoder97

31 karma · joined Sep 18, 2019 (7y ago) · 5 submissions

Submissions

comment 7y ago · link · parent

Does stripe work in India?

comment 7y ago · link · parent

Could you give some guidelines to keep an emerging architecture orthogonal?

comment 7y ago · link · parent

I had been organizing all of my projects so far using layered architecture. Recently I read this article about layered architecture: https://dzone.com/articles/reevaluating-the-layered-architec... Now I feel that layered architecture was a poor choice for many of my previous projects.

So, I think, instead of layering, for example I should put everything that needs an access to a User entity's internal fields in User class itself.

For example: User.getProfileAsJson() // for sending out to frontend

Now I am confused regarding where to put methods that involves two entities. Suppose there is an Event entity which represents some online event that can be registered by the User.

Where is the best place to put getEventsRegisteredByUser()?

comment 7y ago · link · parent

What is orthogonal architecture?

5.

Ask HN: What are some architectural decisions that improved your codebase?

98 points · by happycoder97 · 7y ago · 77 comments