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

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

nickytonline profile image Nick Taylor (he/him) ・1 min read

Weekly Learnings 2020 (30 Part Series)

1) Jan. 3, 2020: What did you learn this week? 2) Jan. 10, 2020: What did you learn this week? 3 ... 28 3) Jan. 17, 2020: What did you learn this week? 4) Jan. 24, 2020: What did you learn this week? 5) Jan. 31, 2020: What did you learn this week? 6) Feb. 7, 2020: What did you learn this week? 7) Feb. 14, 2020: What did you learn this week? 8) Feb. 21, 2020: What did you learn this week? 9) Feb. 28, 2020: What did you learn this week? 10) Mar. 6, 2020: What did you learn this week? 11) Mar. 13, 2020: What did you learn this week? 12) Mar. 20, 2020: What did you learn this week? 13) Mar. 27, 2020: What did you learn this week? 14) April 3, 2020: What did you learn this week? 15) April 9, 2020: What did you learn this week? 16) April 17, 2020: What did you learn this week? 17) April 24, 2020: What did you learn this week? 18) May 1st, 2020: What did you learn this week? 19) May 8th, 2020: What did you learn this week? 20) May 15th, 2020: What did you learn this week? 21) May 22nd, 2020: What did you learn this week? 22) May 29th, 2020: What did you learn this week? 23) June 5th, 2020: What did you learn this week? 24) June 12th, 2020: What did you learn this week? 25) June 19th, 2020: What did you learn this week? 26) June 26th, 2020: What did you learn this week? 27) July 3rd, 2020: What did you learn this week? 28) July 10th, 2020: What did you learn this week? 29) July 23rd, 2020: What did you learn this week? CodeLand Edition 30) July 31st, 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

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

Discussion

markdown guide
 
 
 

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 😡

 

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.

 

This is amazing 😍😍😍😍😍. GREAT WORK πŸ‘ŒβœŒ

 
 

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.

 
 

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.

 

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

 

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

 

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.

 

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.

 

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

Borat saying Great Success!

 

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 ;-(

 

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!

 

I learned how to setup a caching system in Php that works with the Prismic.io CMS.
I encountered some challenges such as how to delete a single cached page when it is updated since Prismic's webhook system doesn't tell you any information about what is updated. I had to save a snapshot of the site (optimized of course) and then compare what changed.

Other funny issues/oversights were saving the files according to the URI but without taking into account queries. Imagine my face when I found a lot of cached facebook referred pages...

But yeah, it was really fun to learn about!

 
 
 

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

 
 

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.

 
 

I learned that inside the accessibility tab in Firefox you can look for color contrast 🎨 Awesome tool, I'm happy to make my future web projects more accessible !

 
 

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!

 

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

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

 
 
 
 

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 😎