Running Selenium scripts to do automated testing of web pages greatly reduces the time it takes to test a web application. Also, the quality of the tests becomes very high and gets us closer to TDD, Test Driven Development.
Kudos to the Visual Studio Code team at Microsoft for helping coders with tools for creating more Accessible websites!
When looking at the https://sass-guidelin.es/#the-7-1-pattern, I am not inclined to use it exactly.
I am using https://scotch.io/tutorials/using-sass-with-the-angular-cli tuturial to remember how to do stylings with scss and Angular.
JSON.parse to be highly valuable tools of the trade.
There is a tendency to push for the smallest, most compact code at all times. But, that is a mistake.
Instead of putting logic and structures directly into a component, function, or class, I find it best to begin with moving those structures whether as :
- data type
- mock data
- initial data
- discrete logic
- call to database
- call to third party
- storing data in cookies, session, or local storage
When refactoring code, keep in mind that moving logic to smaller discrete files/classes/methods/functions will help you and other humans understand the code better six months from now.