In the last few years, I've seen a lot of code. As a freelancer working on multiple big projects with a lot of people, you'll inevitably see all varieties of code styles. But I also realized how much writing JavaScript changed over the past years.
Having learned JavaScript before ES6 was there, a great mentor (Hans Christian Reinl) taught me the most important lesson: Always write clean, understandable code. Avoid ternary operators, declare variables in one place, make functions as simple as possible. Basically things that so many JavaScript style guides also advise. But with the growing adoption of ES6/ES2015, I also saw an increase of code where most of these principles (except for keeping functions small) are ignored.
The post Web Development Reading List #151: Microinteraction UX, Feature Policy, And Passport.js appeared first on Smashing Magazine.
No comments:
Post a Comment