This is a weekly roundup of awesome DEV comments that you may have missed. You are welcome and encouraged to boost posts and comments yourself using the #bestofdev tag.
Starting with npm 5 -
npm i will save by default (
-S is redundant).
If you want to install a package without affecting package.json file, however, you'll need to run
npm i package --no-save
What advice would you give someone looking to use their keyboard more and their mouse less? @giant995
offers some advice for those of us looking to keep our hands on the keyboard:
Learn vim by setting your default terminal editor as vim and download a vim keymapping for your favorite IDE. You can even further the experience by downloading vimium for Firefox or Chrome. It will get you far in most systems.
If vim isn't your thing, learn the shortcuts of your favorite IDE and of your OS.
If like me you typed for the last 20 years with weird bad habits, now is a good time to learn touch typing. It makes typing easier and you'll learn your shortcuts faster.
It is a habit thing, first week feels clunky but surprisingly you muscle memory builds up rapidly.
Replying to Things I Wish I Knew Before I Started Web Development, @workingwebsites
plucks out and reinforces an especially poignant line:
Great article! I love the line "To be a web developer, you have to learn how to learn without missing deadlines."
Yup, that's it in a nutshell.
Great post! It's amazing how many simple, repeatable concepts are used from the beginning of our careers all the way through.
I wanted to add an additional tip about tutorials. Try renaming the variables/functions in the tutorial you're doing. Then you can't copy/paste. You have to understand the connections in order to successfully complete the tutorial. This is even better with tutorials that use the same variable names in different scopes. If you just blindly follow, you may not even notice the context of usage is different!
adds another "lie" to The lies and lack of self respect that lead to burnout:
I would add another lie:
This can range from casual to overtly aggressive:
- you and your work are being "gently" mock by other team members
- you are left out of discussions because of your gender/sexual orientation/ethnicity...
- you are told you're not left out of these discussions because of your gender/sexual orientation/ethnicity but because of [insert shitty excuse here].
- you're are threatened (orally or in writing)
- sticks and carrots all the time
- you're never doing enough
If you feel sick when going to work or if you keep thinking about your teammates' remarks when you're home chilling (or worse, sleeping), don't tell yourself it's normal. Or that you're being a wuss. You're not and you're probably surrounded by toxic people. Leave before being dragged in an uphill battle that'll leave you dead inside.
See you next week for more great comments ✌