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

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

pic
Editor guide
Collapse
thomasbnt profile image
Thomas Bnt

Time is really precious.

Collapse
nickytonline profile image
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 (he/him) Author

Congrats on the new job!

Thread Thread
thomasbnt profile image
Thomas Bnt

Thank you ! πŸŒ±πŸ˜‹

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

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
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 (he/him) Author

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
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 (he/him) Author

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
nehemek profile image
Nehemek

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!

Collapse
nickytonline profile image
Collapse
hangindev profile image
Jason Leung πŸ§—β€β™‚οΈπŸ‘¨β€πŸ’»

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 (he/him) Author

That's awesome! πŸ”₯

Yes, that's awesome!

Collapse
peter279k profile image
peter279k

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
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
Collapse
mlouis profile image
MLouis

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 !

Collapse
nickytonline profile image
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
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
Collapse
abhay676 profile image
Abhay Goswami

Start learning Golang

Collapse
nickytonline profile image
Collapse
itsjzt profile image
Saurabh Sharma

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

Collapse
nickytonline profile image
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