DEV Community

Cover image for My 5 key takeaways from reading the Pragmatic Programmer

My 5 key takeaways from reading the Pragmatic Programmer

Emma Goto 🍙 on February 06, 2020

Last month I finished reading The Pragmatic Programmer. I will admit I don’t necessarily enjoy reading software development books in my spare time,...
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.

Collapse
 
murrayvarey profile image
MurrayVarey

I will admit I don’t necessarily enjoy reading software development books in my spare time

Oh indeed! Why do software books have to be so dry?!

The Pragmatic Programmer was the first -- and still best -- software development book I read. My main takeaway (possibly from the introduction) was: always ask "Why are we doing this?" I feel this book is filled with answers to that question.

Great write-up Emma!

Collapse
 
emma profile image
Emma Goto 🍙

Thanks Murray!

Collapse
 
kildareflare profile image
Rich Field

Thanks for the write up Emma. I've been meaning to do something similar for all books I read.
Another kind of knowledge bank; I've not really succeeded yet though!

I like the idea of an engineering daybook, I've dabbled with this in the past too, but yet to find a way of doing it that is both easy to write and easy to search. That said I've been using Nuclino at work for a while now and that could be a good candidate.

My hand-writing is abysmal so I doubt I would use paper personally.
It would also make searching for info impractical.

Collapse
 
emma profile image
Emma Goto 🍙

Yeah I've been chucking my notes into Bear right now, which I'm finding is okay but I definitely have a lot of notes that kind of just get lost in there too.

Collapse
 
canro91 profile image
Cesar Aguirre

I read TPP a couple of years ago, one takeaway for me is not to live with broken windows.

Collapse
 
fronkan profile image
Fredrik Sjöstrand

I just finished the book last week. I think the engineering daybook, property-based testing and think about programs as transformation topics were my favourites.

Collapse
 
ghost profile image
Ghost

test a bunch of different, random combinations to try and see if the property ever fails

Just make them randomly but always the same random data or you may get also random non repeatable tests fails which is annoying at best :)

Collapse
 
aweysahmed profile image
Aweys Ahmed

Thanks for sharing. It is on my list of books to read. I'm currently reading Code Complete Volume 2.

Collapse
 
agilevic profile image
Victor Olex

Good post, thanks. As a side note, with your last name you were destined to become a programmer. Good luck!

Collapse
 
emma profile image
Emma Goto 🍙

Thankyou! I guess you're right 😆