I'm looking for a complete solution that will also sync automatically with the server, detect network status, etc. If I was going to implement that myself I would consider localForage instead of directly dealing with indexedDB.
@pier
Nothing here yet.
Nothing here yet.
No blogs yet.
I'm looking for a complete solution that will also sync automatically with the server, detect network status, etc. If I was going to implement that myself I would consider localForage instead of directly dealing with indexedDB.
In my experience writing readable and maintainable code is like trying to tell a story to a 10 year old. Keep it simple, be obvious. Don't try to be smart. Don't focus on performance or efficiency (which I call optimizationitis ). Whenever you really have to deviate from those rules, comment. Not only on what you are doing but specially why you are doing it. Young programmers have a hard time following those. Juniors can't recognize when they are making a mess, but more experienced devs because they like pumping their ego showing the world how smart they are with convoluted code.
To give you a perspective the logout button knew, how to logout, login, add user, delete user, add organization, remove organization, assign users to the organization, and maybe run rm -rf / on the server. I've been arguing against this approach for a long time. Components should only know about painting stuff to the DOM and receiving user input. Period. The store should know only about managing central state. Period. A lot of examples put the API logic with the store logic. The rest of the logic should be somewhere else. I've started to develop a pattern where I have modules in my front end app that actually do the different jobs (auth, api, etc) and then I have mediators which are the puppetmasters of the application modules and mediate all traffic between components, state, and modules.
I tried it for 15 minutes and went back to the old design. It feels fresh on a UI level, but in the end usability is what really matters for a tool. In general I think UX is worse now. Text is harder to read with the new font. Also there is just too much white, everything is floating with no visual structure, no contrast. Icons are smaller. Animations aren't smooth in my top of the line 5K iMac. Etc. This new Gmail doesn't have the quality and polish that we've come to expect from Google's web apps.