DEV Community

Discussion on: My 5 key takeaways from reading the Pragmatic Programmer

Collapse
 
patryktech profile image
Patryk

I know for me personally right now I’ve been very focused on React due to my job, but I do want to branch out into checking out other frontend frameworks and technologies like Svelte, Preact or Vue.

If you know React and ES6 well, Vue.js should be a piece of cake.

I'm kind of the other way around - focused on Vue, because I like JavaScript and don't care to learn JSX -- but there's so many full-stack/front-end jobs that demand react. 😒

I know how to comment and un-comment a line, but I have no clue how to select a select a word at a time or line at a time (I just use my mouse to select things) so I know this is something I need to work on.

Don't know about specific editors you may use, but for everyone who needs this... At least on Linux and Windows, you can often select with Shift and arrows - up and down arrows select a line, left and right select a character. Adding the Ctrl modifier selects a word (left-right) or paragraph (up-down).

Collapse
 
emma profile image
Emma Goto 🍙

Thanks! I use VSCode - maybe I'll do another post about the shortcuts :)

Collapse
 
patryktech profile image
Patryk

Well, ctrl-shift-{left|right} works to select a word at a time. Shift-{up|down} selects a line. Ctrl-shift-{up|down} enables multi-line editing. Useful if you want to replace a variable name on multiple consecutive lines.

I'm a big fan of Alt-{up|down} ... It moves the current line (or selection) up or down the file. Re-order your file without copy/pasting.