DEV Community

Cover image for March 31st, 2022: What did you learn this week?
Nick Taylor
Nick Taylor Subscriber

Posted on

March 31st, 2022: 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.

![Image of the brain](https://media.giphy.com/media/ojmB7lOn3VUU8/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.

Top comments (33)

Collapse
 
deciduously profile image
Ben Lovy ‱

By default, bash hashes the location of executables you call the first time you run them. This means that if you place a different version with the same name at some location in your $PATH even with higher precedence, you'll still get the first one by default. You can toggle this off with set +h.

Collapse
 
nickytonline profile image
Nick Taylor ‱

TIL!

Today I learned

Collapse
 
naveennamani profile image
naveennamani ‱

I learnt to deal with CJS vs ESM, and migrating from CJS to ESM. And also about vite plugins, roll-up build configuration and something more.
dev.to/naveennamani/using-vite-plu...

Collapse
 
nickytonline profile image
Nick Taylor ‱

BB-8 giving a thumbs up

Collapse
 
thomasbnt profile image
Thomas Bnt ‱

Saaaass ! 😁

For my next project on my training, I need to create a simple website on mobile first with SASS.

Collapse
 
juniordevforlife profile image
Jason F ‱

Look in to how Sass mixins might be able to help you out with handling media queries.

Collapse
 
nickytonline profile image
Nick Taylor ‱

Nice!

A kangaroo playing an electric guitar

Collapse
 
ben profile image
Ben Halpern ‱

I've been progressively learning more about the Hotwired stack. I've known the gist for a while, but am progressively taking the time to truly understand it. Since it's becoming more popular and/or default in Rails, I think it's worth keeping up with, even if I'm not doing any active development with it.

Collapse
 
nickytonline profile image
Nick Taylor ‱

Stephen Colbert saying Awesome Sauce

Collapse
 
cmgustin profile image
Chris Gustin ‱

In Javascript, document.designMode = “on” will allow you to edit the text on a web page like you would in a Word doc.

Huge timesaver if you want to mock up content changes quickly, drop that in the console and edit away.

Collapse
 
nickytonline profile image
Nick Taylor ‱

Dog from GoT with friend chicken

Collapse
 
onlyphantom profile image
Samuel Chan ‱

Launched a python package (npm install taskquant) that weighs less than 8kb.

It adds a layer of gamification and scoreboards on top of TaskWarrior, and what I’ve learned was how heavy the dependencies of numpy / pandas are just to be able to do something like group by, aggregation, pivot table, indexing etc. So took a couple of hours out to build out the package with no dependencies — everything in vanilla python.

Yes, pandas alone (numpy being a dependency) sits at 250mb. So stripping away all of that and doing it in vanilla takes it all the way down to 8kb.

The end result is a python library that is extremely lightweight (<10kb), installs in under one second. I created a video to walk through the whole process as a tutorial:
youtu.be/lT2jqmhRkxo

Code is on my GitHub as well! GitHub.com/onlyphantom/taskquant

Collapse
 
nickytonline profile image
Nick Taylor ‱

Prince Harry Saying Boom! while beside his grandmother, the queen

Collapse
 
pontakornth profile image
Pontakorn Paesaeng ‱

I learned some F# for fun and profit. I don't know what to do with it yet. I think F# is a pretty fun language to code.

Collapse
 
nickytonline profile image
Nick Taylor ‱ ‱ Edited

Hot Rod saying Cool beans!

Collapse
 
v1rani profile image
Dmitry Shamshurin ‱

Started digging into the Golang by finishing the Tour of Go, since I really want to try this language out. So far it's been alright, but I'm yet to implement something in it. Also, I was learning about how to write good articles

Collapse
 
nickytonline profile image
Nick Taylor ‱

Borat saying Great Success!

Collapse
 
k_penguin_sato profile image
K-Sato ‱

Finally learnt CSS grid layout 😊😊😊
A lot simpler and more useful than I anticipated.

Collapse
 
nickytonline profile image
Nick Taylor ‱

Nice!

Nice

Collapse
 
pontakornth profile image
Pontakorn Paesaeng ‱

That's impressive.