DEV Community

Cover image for June 26th, 2020: What did you learn this week?

June 26th, 2020: What did you learn this week?

Nick Taylor on June 26, 2020

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc. ![PSA "Lear...
Collapse
 
nksprzak profile image
Nick Kasprzak

A lot of terminal stuff it seems.

I learned that instead of using > you can use >> to concat an output to a file.

For grep I learned a bunch of options like -v (ignore case), -A (lines after), -B (lines before), -o (get just the specific searched string) and this cool one -Eo '.{0,20}a href.{0,70}' to get the amount of chars before and after an occurrence of a string, 'a href' in that case.

Learned of a type of program called terminal notifier, which notifies you when a long task like compiling finally finishes. Though I couldn't figure out how to get that to work w/ my server I SSH into.

Learned about Insomnia, alternative to Postman.

This git command, git diff -U0 HEAD~1 , which will just show you the difference and no lines before like git diff usually does. Helpful for when I pipe for a change like git diff -U0 HEAD~1 | grep crm to see if I missed a search and replace.

Lastly how to find the top 5 directories , du -hs * | sort -rh | head -5. This helped me when my VM that I use for my staging Cassandra instance got full and nothing could connect anymore. I learned where Cassandra keeps the data on the disk, /var/lib/cassandra/data

Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove

Collapse
 
etienneburdet profile image
Etienne Burdet

Realised that DE-NO is NO-DE reversed. Changed my life.

Collapse
 
gillarohith profile image
Rohith Gilla • Edited

Did you mean :p

"node".split("").sort().join("")
Collapse
 
nickytonline profile image
Nick Taylor

Bobby Moynahan character from SNL saying awesome!

Collapse
 
dmahely profile image
Doaa Mahely

I learned about linters and started setting up ESLint for one of my repos.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
benpearo profile image
BenPearo

Great week for me! I set up pre commit hooks for linting and running tests for staged files, set up a Jenkins pipeline, and got docker compose running for my services. I want to write my first post/guide on one of them later this week

Collapse
 
vonheikemen profile image
Heiker

I learn how to add forms to an observable notebook (it's like a coding playground) and modify their behavior. I used them to make interactive examples in here: Using the Maybe type in js

This was last week but I'm still proud I figure out how to do it.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
denise_sommer_posts profile image
Denise Sommer

this week i learned how to block ip addresses in wordpress and implmented it on my site as well. It is an important security aspect which site owners sideline. Was required from security aspect on our blog .have also come up with a post here dev.to/celyn_davis/how-to-block-ip...

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
premjeet profile image
PremJeet • Edited

I made a visualisation of the clustering algo ${ baby-oopsy-daisy.github.io/sketche...
Give this a look, and the most important, you feedback
(Doesn't work in firefox mobile, if you know the reason please enlighten me)
✌️🧐

Collapse
 
nickytonline profile image
Nick Taylor

Hot Rod saying Cool beans!

Collapse
 
waylonwalker profile image
Waylon Walker

actions/cache@v2

GitHub actions cache. My gatsby site now builds in about half the time, much of which is now installing node_modules and deploy.

REGEX

I got comfortable enough with a few regex commands to use it to filter data catalogs.

Collapse
 
nickytonline profile image
Nick Taylor

GitHub actions cache be like

The Flash running

Collapse
 
sduduzog profile image
Sdu

I finally learned how to use docker for local development. I always pushed this aside until I needed to use postresql which is a pain to setup locally on a linux environment. So I learned how to use

WSL + Docker + Docker compose

Local development has hit a whole new level for me

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Nice

Collapse
 
basuradeluis profile image
basuradeluis

I learned how to use bookmarks and Mark All/find feature in Notepad++ to select lines that contains/not contains some string in a huge log file.
winhelponline.com/blog/remove-line...
Then, I remembered I could have used grep utility instead :-)

Collapse
 
junlow profile image
jun

I learned about - that this simple js code
window.print();
you can print the screen 🔥

Collapse
 
nickytonline profile image
Nick Taylor

Jet Ink printer printing

Collapse
 
kelvin9877 profile image
Kelvin Liang

I finish one article writing about React Testing and start to explore the Static Site Generator - Gatsby.js's concepts and starting guide.

Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
samuelalsn profile image
SamuelALSN

As newbies in React js , i've learned React imposible states error handling , React REDUCERS HOOKS and use of Third party library

Collapse
 
nickytonline profile image
Nick Taylor

Stephen Colbert saying Awesome Sauce

Collapse
 
rakshakannu profile image
Raksha Kannusami

Learnt about Tree data structures. Diving into binary search trees. Will be publishing a devpost every Saturday.

Collapse
 
nickytonline profile image
Nick Taylor

That's awesome! 🔥

Yes, that's awesome!

Collapse
 
gillarohith profile image
Rohith Gilla

After long procrastination and constant notifications from Notion and TickTick, I finally started to learn TypeScript 🔥
Any paths or suggestions for me to learn it are always welcomed 🙌🏻
TypeScript
P.S: Any other typescript memes are always welcomed 🚀

Collapse
 
psiho profile image
Mirko Vukušić • Edited

Learned how to setup all AWS resources using templates and AWS Sam. It's easier (once you get the hang of it), it can be put in source control, it can be included in build scripts, it can be launched locally. Really happy with this. Wrote a post about it too: dev.to/psiho/build-deploy-all-aws-...

Collapse
 
macca profile image
Macauley Parry

I learned some more C#/XAML styling techniques 😁

Collapse
 
nickytonline profile image
Nick Taylor

Lego astronaut saying awesome!

Collapse
 
voralagas profile image
Pravin Poudel

This week i learnt about lighting in webgl and yesterday designed reaponsive navbar using flexbox.

Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
scooperdev profile image
Stephen Cooper • Edited
Collapse
 
message profile image
i am message

Node.js, Express.js, MongoDb and the beauty of MVC architecture never felt so good and eventful in while now.

Collapse
 
borama profile image
Matouš Borák

I learned how partial page updates work in Hey site. Pretty cool stuff, indeed!
dev.to/borama/a-few-sneak-peeks-in...

Collapse
 
nickytonline profile image
Nick Taylor

Lego astronaut saying awesome!

Collapse
 
peter279k profile image
peter279k • Edited

I've learned about how to setup a Packagist mirror for composer fans in my country :).

Check this blog post.

Collapse
 
nickytonline profile image
Nick Taylor

👍

You did it!

Collapse
 
tilakmaddy_68 profile image
Tilak Madichetti

Using face-api.js ! I read the docs(I'd say they are great) and I made Try not to laugh challenge(under AI supervision)
tilakmaddy.github.io/Try-Not-To-La...

Collapse
 
nickytonline profile image
Nick Taylor

Chow Yun-fat giving a thumbs up

Collapse
 
wolfhoundjesse profile image
Jesse M. Holmes

I re-learned that just because a library promises zero-configuration, it isn't necessarily so, and sometimes it's easier to roll your own.

Collapse
 
nickytonline profile image
Nick Taylor

They said zero config...

Large Jenga falling on a boy

Collapse
 
prashanthpprabhu profile image
Prashanth Prabhu

Upgrading to Angular 10 from 9 (which was done just a week ago). Thinking Angular should be named as Zoomgular due to speed of releases.

Collapse
 
nickytonline profile image
Nick Taylor

Zoom zoom zoom!

1st place in Mariokart