DEV Community

Cover image for July 3rd, 2020: What did you learn this week?
Nick Taylor
Nick Taylor Subscriber

Posted on

July 3rd, 2020: 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.

![A surprised seal](https://media.giphy.com/media/ZYdUijuxHE5eU/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.👇👇🏻👇🏼👇🏽👇🏾👇🏿

![Al Roker hands clasped together going back and forth suggesting a win](https://media.giphy.com/media/3o7bu57lYhUEFiYDSM/giphy.gif)

Top comments (35)

Collapse
 
matteobruni profile image
Matteo Bruni

I learnt how to send mouse events programmatically to create something like this:

It was requested by a user that needed something like that for disabled users that couldn't handle a mouse.

Collapse
 
ashikpaul42 profile image
AshikPaul42

This is amazing 😍😍😍😍😍. GREAT WORK 👌✌

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
thomasbnt profile image
Thomas Bnt

Time is really precious.

Collapse
 
nickytonline profile image
Nick Taylor

It's True - Dwight Shrute

Collapse
 
thomasbnt profile image
Thomas Bnt

I got a job since June, and when I back to home, I have a little time for me and forward to my projects in dev. But... Time pass really fast 😵

Thread Thread
 
nickytonline profile image
Nick Taylor

Congrats on the new job!

Thread Thread
 
thomasbnt profile image
Thomas Bnt

Thank you ! 🌱😋

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I have learnt this for a while, but just to recap.

Run npm ci or yarn --frozen-lockfile inside Dockerfile, but before that, don't forget to copy lock-file.

COPY package.json yarn.lock ./
RUN yarn --production --frozen-lockfile

And, I also noticed that Yarn is already installed by default in the Docker image, no need to apk add yarn.

Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove

Collapse
 
_garybell profile image
Gary Bell

Websites have far too many adverts and other spammy rubbish on them. More than I realised.

I only noticed after visiting some sites I frequent after adding Pi Hole to my network and seeing the number of intercepted requests.

Collapse
 
kerldev profile image
Kyle Jones

Do some websites stop loading the main content if the ads don't load? Would've expected this to be the case for some at least

Collapse
 
_garybell profile image
Gary Bell

I've not seen that happen yet. The main issue is clicking some links from Twitter and Google Shopping because the analytics part kicks in

Collapse
 
vonheikemen profile image
Heiker • Edited

I continue my journey into the "functional side" of javascript. I've been playing around with sanctuary, which is like a hardcore version of ramda (which in turn is the functional version of lodash). It's been interesting and weird, you get this cool utility functions but you also get error messages like this.

 error: Uncaught TypeError: Type-variable constraint violation

 insert :: String -> a -> StrMap a -> StrMap a
                     ^           ^
                     1           2

 1)  true :: Boolean

 2)  "Incorrect" :: String

 Since there is no type of which all the above values are members, the type-variable constraint has been violated.

I guess this is good if you know haskell (that type signature is a haskell thing for sure), but it takes time to get used to if you don't.

I made a little guessing game with it. Click on a hex color and an alert pops.

Collapse
 
peter279k profile image
peter279k • Edited

I've learned about how to use Python and PHP to send notification via incoming Slack WebHook to monitor our crawler services.

Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
king11 profile image
Lakshya Singh

I learned about nuxt js and am currently working on using my already developed api to develop an app with it. It was tough use your custom api with nuxt/auth the docs are still lacking.

Collapse
 
nickytonline profile image
Nick Taylor

If the docs are lacking, sounds like that would make for a great open source contribution that would help others! 😺

Borat saying Great Success!

Collapse
 
hangindev profile image
Jason Leung 🧗‍♂️👨‍💻 • Edited

I learned there are HTML canvas APIs equivalent to the CSS filter and mix-blend-mode properties which enable me to create this Instagram filter clone with Export function. 🥳

Collapse
 
nickytonline profile image
Nick Taylor

That's awesome! 🔥

Yes, that's awesome!

Collapse
 
peterwitham profile image
Peter Witham

I started learning Combine this week on the Apple platforms and discovered it's not as scary as it first seems. But I also want to believe it's because I've been using a fair amount of JavaScript lately that helped me get that functional reactive head space working.

Collapse
 
nickytonline profile image
Nick Taylor

Borat saying Great Success!

Collapse
 
chakrihacker profile image
Subramanya Chakravarthy

This week I wrote test cases for the flutter app, I am still struggling to write test cases. Maybe next week I can write some better ones. Also this week I haven't took time to write any blog posts ;-(

Collapse
 
nickytonline profile image
Nick Taylor

That’s great that you got some test cases out. In regards to blog posts, write them when you have time. Don’t stress out about it. Life’s too short!