DEV Community

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

July 3rd, 2020: What did you learn this week?

Nick Taylor on July 03, 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. ![A surpris...
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!

Collapse
 
jhadheeraj1986 profile image
Dheeraj Jha

I learned how python executes a program and tried to write it down.
Have a look,

dev.to/jhadheeraj1986/how-does-a-p...

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Nice

Collapse
 
fluffynuts profile image
Davyd McColl

this: cezarypiatek.github.io/post/method...

I knew there was duck-typing in C# -- I've taken advantage of it and written a generic duck-typer (PeanutButter.DuckTyping which happens at runtime), but there were still some interesting bits in there!

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
abhay676 profile image
Abhay Goswami

Start learning Golang

Collapse
 
nickytonline profile image
Nick Taylor

Stephen Colbert saying Awesome Sauce

Collapse
 
nickytonline profile image
Nick Taylor • Edited

Lego astronaut saying awesome!

Collapse
 
itsjzt profile image
Saurabh Sharma • Edited

I learned more clojure and solved euler problem github.com/itsjzt/euler-project/bl...

Collapse
 
nickytonline profile image
Nick Taylor

Chow Yun-fat giving a thumbs up

Collapse
 
ashikpaul42 profile image
AshikPaul42

This week I started learning Github actions. I implemented a CI-CD workflow for Sharepoint framework Apps(Online). The journey was hell 😤. But the effort did pay off 😎

Collapse
 
nickytonline profile image
Nick Taylor

Hot Rod saying Cool beans!