DEV Community

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

Posted on

February 19th, 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.

![Yoda wooping someone's butt](https://media.giphy.com/media/yDYAHbqe5DfyM/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.👇👇🏻👇🏼👇🏽👇🏾👇🏿

![Little kid making a fist as if to say "Yes!"](https://media.giphy.com/media/6brH8dM3zeMyA/giphy.gif)

Latest comments (48)

Collapse
 
bitzania profile image
Ficky Irwanto

I've converted existing VueJS SPA into Android apps with CapacitorJS. The guides was easy to follow and the application is working good. Just need to change the icons and enable camera for file upload.

Collapse
 
nickytonline profile image
Nick Taylor

Lego astronaut saying awesome!

Collapse
 
vaibhavkhulbe profile image
Vaibhav Khulbe

Learned a bit about Twilio and its Conversation API. Will be using it in the next freelance project.

Collapse
 
nickytonline profile image
Nick Taylor

Chow Yun-fat giving a thumbs up

Collapse
 
eduardonwa profile image
Eduardo Cookie Lifter

Wouldnt say “learnt” but i deployed my blog on Heroku that was special :-)

Collapse
 
nickytonline profile image
Nick Taylor

It's True - Dwight Shrute

Collapse
 
ferdianatmadiputra profile image
Ferdian Atmadiputra

Learning vuex and socket.io #todayilearn

Collapse
 
nickytonline profile image
Nick Taylor

TV personality saying Frickin' awesome!

Collapse
 
brianwisti profile image
Brian Wisti

I learned I really need to clean up my site's RSS feed if I want to forward posts here.

Collapse
 
nickytonline profile image
Nick Taylor

Kirk and Bones nodding to each other in Star Trek

Collapse
 
michelledev3 profile image
michelledev

Heatmap Analysis to see how my website is performing

Collapse
 
nickytonline profile image
Nick Taylor

Gym teacher from Glee saying amazing!

Collapse
 
michelledev3 profile image
michelledev

Thanks Nick!

Collapse
 
vonheikemen profile image
Heiker

I've been playing around with repl.it since I found out you can use it to deploy web servers. This means that is basically like a "full stack codepen".

I learned how to setup a tiny web server with 6 lines of code*.

(*) not counting the dependencies.

// index.js

const router = require('find-my-way')();
const static = require('serve-handler');

const assets = (req, res) => static(req, res, {'public': './public'});

router.on('GET', '/hello', () => 'Hello!');
router.on('GET', '/*', assets);

module.exports = (req, res) => router.lookup(req, res);
Enter fullscreen mode Exit fullscreen mode

And 1 command.

node_modules/.bin/micro -l tcp://0.0.0.0:3000 index.js
Enter fullscreen mode Exit fullscreen mode

Ok, technically you need to install things first. That'll be 2 commands.

npm install micro@9.3.4 serve-handler@6.1.3 find-my-way@4.0.0
Enter fullscreen mode Exit fullscreen mode

There you have it a (useless) web server with a fully functional router and capable of handling static assets. Here's a more exciting example in repl.it: micro-quote-machine.

Collapse
 
nickytonline profile image
Nick Taylor

Actor Zach Galifianakis giving a thumbs up in a convertible car

Collapse
 
drumor profile image
Ludovic Taffin

I did my first Dockerfile 👌💪

Collapse
 
nickytonline profile image
Nick Taylor

Actor Leonardo DiCaprio as Gatsby doing a cheers

Collapse
 
timothydjones profile image
Tim Jones

How to create buffers and splits in Vim. I made some notes on my findings in my TIL repository here.

#vim

This is for posts relating to vim, as well as vim plugins, integrations and workflows!
Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Some comments may only be visible to logged-in visitors. Sign in to view all comments.