notwaldorf / ama

:raising_hand: Ask @notwaldorf anything!
94 stars 13 forks source link

Polymer Patterns #74

Closed megamegax closed 6 years ago

megamegax commented 6 years ago

Hi!

I made a lot of search according to this subject but found nothing promising. If I want to do complex apps in Polymer. (I know I could there are a lots of components for that) I always run into the issue of it just become a mess.

In Android I can use architecture patterns like MVP, MVVM to keep my code in shape. I was looking for a tutorial of MVVM for example using Polymer but found nothing. Also In every example everything is in one file. one my-element.html with css, html, js included. Why is this the best practice? It would be so nice to separate stuffs because I see for one elmenet it is good to have everything in one file. But when I want to do something more than just one small component... then mess comes very very soon :)

Do you have any advice?

notwaldorf commented 6 years ago

Hiya!

Sorry, I completely forgot to check this repo recently. A couple of answers, out of order:

megamegax commented 6 years ago

thank you! :) Since then I was watching videos about polymer + redux, I feel like it is a good solution for communicating between components ^^