Clean architecture – where to put input validation logic? [closed]

I think many developers do that in Presentation layer, specifically in ViewModel/Presenter/Controller (not in Activity/Fragment/View!). My approach is to put that logic in Domain layer. Why? Is it presentation logic or domain logic? Presentation logic is something you decide “mapping render model”, “format of render model”, “how to render”, “what color, what size, which text”, … Read more

The “Should be easy for a junior developer to understand” argument [closed]

I highly disagree. Junior developers will end up being Senior developers. How? By encountering advanced topics that aren’t taught in school. My code base now makes heavy use of Inversion of Control containers. I would never revert my code to the old way because a junior developer had issues groking IoC. Instead I would take … Read more

How to comment/uncomment in HTML code

Yes, to comment structural metadata out, Using <script>/* … */</script> in .html Comment out large sections of HTML (Comment Out Block) my personal way in a .html file is opening: <script>/* and close it with */</script> <script>/* hiding code go here */</script> Is a workaround to the problem since is not HTML. Considering your code … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)