DEV Community

Cover image for May 13th, 2021: What did you learn this week?
Nick Taylor
Nick Taylor Subscriber

Posted on

May 13th, 2021: What did you learn this week?

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.

![Boss from the Office Space movie sipping his coffee in front of a cubicle](https://media.giphy.com/media/lSVL6vdhdZVPW/giphy.gif)

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

#todayilearned

Summarize a concept that is new to you.

And remember, if something you learnt was a big win for you, then you know where to drop it as well.๐Ÿ‘‡๐Ÿ‘‡๐Ÿป๐Ÿ‘‡๐Ÿผ๐Ÿ‘‡๐Ÿฝ๐Ÿ‘‡๐Ÿพ๐Ÿ‘‡๐Ÿฟ

![A show host dancing a winning in their seat](https://media.giphy.com/media/l3q2Z6S6n38zjPswo/giphy.gif)

Top comments (19)

Collapse
 
bekahhw profile image
BekahHW

I learned how to do my Github readme!

Collapse
 
nickytonline profile image
Nick Taylor

Actress Anna Kendrick in a film saluting as her character

Collapse
 
vonheikemen profile image
Heiker

I found out about key-tables in tmux.

Funny thing, I basically have no space for keyboard shortcurts when using tmux so... key-tables to the rescue. This is like a hacky way of having yet another "prefix key" which can trigger another set of actions.

For the moment I only have one custom key-table with two shortcuts.

# Ctrl+b changes the key-table to `x2`
bind -T root C-b switch-client -T x2

# `Ctrl + b` then press 1 to go the session with the name main 
bind -T x2 1 switch-client -t main

# `Ctrl + b` then press 2 to go the session with the name pomodoro 
bind -T x2 2 switch-client -t pomodoro
Enter fullscreen mode Exit fullscreen mode
Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove

Collapse
 
zackdotcomputer profile image
Zack Sheppard

How to build a server work queue on my own. I knew what they were and why you might want one, but Iโ€™d never had to stand one up from zero by myself before.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
nickytonline profile image
Nick Taylor

I'm continuing to learn Rust. I stream on Twitch if anyone is interested in learning with me at livecoding.ca. If you can't make the streams, I polish them and post them to YouTube, youtube.iamdeveloper.com.

Here's the latest one!

Collapse
 
janmpeterka profile image
Jan Peterka

I learned more about RESTful and HTTP methods, and how to change (and split) my controllers so they are more RESTful (and more readable and better structured).

I was inspired by this article to refactor my controllers. And I'm quite happy about this - every controller is short, concise, it led to some more refactoring and fixes I overlooked in my old messy controllers.

Collapse
 
tuanacelik profile image
Tuana Celik

I learned that when there's a dependency issue because of another dependency you have in node...It's NOT easy to fix.. I need help! And some hot chocolate ๐Ÿ˜ข

Collapse
 
nickytonline profile image
Nick Taylor

Puppet bird looking through binoculars

Iโ€™m curious which npm package it is and which dependency?

Collapse
 
tuanacelik profile image
Tuana Celik

Alright, ready for this? So, it's a dependency of


  (I was adding TS types to our npm package: https://www.npmjs.com/package/cumulio) And dts-gen has

 ```yargs-parser```

 as a dependency. But that dependency is being flagged as vulnerable. And you can't fix it via npm audit because it's a dependency of a dependency. Seems I'm not the only one in this pickle, found many more: https://github.com/JeffreyWay/laravel-mix/issues/2389

BUT, since my types are already created now I think I can just remove dts-gen from my dependencies and call it a day? Not sure.. And then.. I gotta figure out how to upload a new version to npm ๐Ÿ˜‚

I've come to the world of web dev from a low level C++ developer background and most of the time it feels like a breath of fresh air... Until NPM hits you with this ๐Ÿ’ฉ still learning... :)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
pixman92 profile image
pixman92

I found out that \t is great for tabs, bad when they're in a string for Windows C:\ Path

Collapse
 
nickytonline profile image
Nick Taylor

Dog slipping ice and sliding on their belly

Collapse
 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

I have learned about how to grow an Instagram page and started growing check once ๐Ÿ‘‡๐Ÿพ
IG Profile

Collapse
 
nickytonline profile image
Nick Taylor

Actor Zach Galifianakis giving a thumbs up in a convertible car

Collapse
 
andrewbrown profile image
Andrew Brown ๐Ÿ‡จ๐Ÿ‡ฆ

In AWS you can get fractional GPUs using Elastic Inference which is hardware device you can attach to a EC2 CPU based instance. Save so much money not having to use an EC2 GPU instance.

Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
cerchie profile image
Lucia Cerchie

I learned the definition of a closure in Golang-- they are anonymous functions that use at least one variable defined outside of the function.

Collapse
 
nickytonline profile image
Nick Taylor

Amy Poehler being cool