DEV Community

Cover image for October 14th, 2021: What did you learn this week?

October 14th, 2021: What did you learn this week?

Nick Taylor on October 15, 2021

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 t...
Collapse
 
juniordevforlife profile image
Jason F

This week I learned about an awesome package called yalc which has helped make testing an npm package I'm writing a bit easier. Essentially what yalc does is creates a local repo for the npm package you're developing and allows you to "install" it in to another project on your machine. This is easier than trying to troubleshoot symlinks, or dealing with ng pack and .tgz files. I'll write an article on it here in the next few days.

Collapse
 
nickytonline profile image
Nick Taylor

Captain America saluting

Collapse
 
kayis profile image
K

Learned a bit more smart contract development.

One moment of insight was: HTTP-gateway providers (Cloudflare, QuickNode, etc) to access a blockchain from a browser are used when no wallet extension is available in the client.

I had the impression they're always used, which was false.

Collapse
 
nickytonline profile image
Nick Taylor

TIL!

Today I learned

Collapse
 
kayis profile image
K • Edited

Code that illuminated me:

   window.addEventListener("load", async () => {
      // Modern dapp browsers...
      if (window.ethereum) {
        const web3 = new Web3(window.ethereum)
        try {
          // Request account access if needed
          await window.ethereum.enable()
          // Acccounts now exposed
          resolve(web3)
        } catch (error) {
          reject(error)
        }
      }
      // Legacy dapp browsers...
      else if (window.web3) {
        // Use Mist/MetaMask's provider.
        const web3 = window.web3
        console.log("Injected web3 detected.")
        resolve(web3)
      }
      // Fallback to localhost; use dev console port by default...
      else {
        const provider = new Web3.providers.HttpProvider(
          "localhost:8545"
        )
        const web3 = new Web3(provider)
        console.log("No web3 instance injected, using Local web3.")
        resolve(web3)
      }
    })
Enter fullscreen mode Exit fullscreen mode

In that case a local gateway is used, probably either for development purposes, or even a wallet that starts such a gateway server locally, but doesn't directly connect with the browser via an extension (like in the first case).

Collapse
 
coderamrin profile image
Amrin

Last week i planned to build my blog in MERN stack.
Things i learned is
1. make the scope of the project as much as you can handle.
2. start bulding as first as possible.
3. don't waste time watching video courses :)

the resoult i got is a blog backend in in node js. couldn't learn React so used ejs to write the html :)

I gotta write an TIL article too LOL :)

Collapse
 
nickytonline profile image
Nick Taylor

Chow Yun-fat giving a thumbs up

Collapse
 
nombrekeff profile image
Keff

I learned that people confuse opinions with facts.

Collapse
 
nickytonline profile image
Nick Taylor

Loki holding KFC

Collapse
 
nombrekeff profile image
Keff

great reaction, keep your distance lol!!!

Collapse
 
ifierygod profile image
Goran Kortjie

I learned about the many database services out there, SQL, MySQL, MariaDB, Cassandra, PostgreSQL etc...and there different use cases. Finally seeing how important it is to design your database structure and the importance of choosing the correct database service.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
maddy profile image
Maddy

This week I've learned about:

  1. Api-testing.
  2. Search Engine Optimization (for content writing).
  3. Found out about 429 status code (I accidentally came across this error when testing an endpoint on Postman 😆).
Collapse
 
nickytonline profile image
Nick Taylor

Bobby Moynahan character from SNL saying awesome!

Collapse
 
ben profile image
Ben Halpern

I learned a little bit about parsing Rails erb files when putting this PR together.

Add bin script to find untranslated text in erb files #15072

What type of PR is this? (check all applicable)

  • [x] Dev tool

Description

In hunting down all text that needs translation, I thought this tool might help!

Screen Shot 2021-10-13 at 12 59 41 PM

Related Tickets & Documents

github.com/forem/forem/issues/14888

If we merge this, I'll add this to the issue, and socialize this to the contributor community. From a documentation perspective, this seems most relevant because this will be most useful during this stage in the project.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Actor from Game of Thrones saying Nice!

Collapse
 
greaby profile image
Greaby

This week I learned how to use Github actions to automaticaly update my latest blog posts using gautamkrishnar/blog-post-workflow

Collapse
 
nickytonline profile image
Nick Taylor

A puppet Yeti clapping their hands saying congratulations

Collapse
 
hrishio profile image
Hrishi Mittal

I started doing the CryptoZombies course to learn Solidity. It's quite fun!

Collapse
 
cerchie profile image
Lucia Cerchie

my co-worker taught me another way to hack alpinejs to make an easy "form"!

Collapse
 
nickytonline profile image
Nick Taylor

Stephen Colbert saying Awesome Sauce

Collapse
 
waylonwalker profile image
Waylon Walker

I learned there is a cool library for finding urls in text in python called urlextract. I used it to fix some broken urls in a repo for hacktoberfest.

pypi.org/project/urlextract/

Collapse
 
nickytonline profile image
Nick Taylor

Kylo Ren on Undercover Boss giving a thumbs up

Collapse
 
nickytonline profile image
Nick Taylor

A crab dancing

Collapse
 
nickytonline profile image
Nick Taylor

Lego astronaut saying awesome!

Collapse
 
nickytonline profile image
Nick Taylor

Puppet bird looking through binoculars

Collapse
 
dohungthinhtin profile image
dohungthinhtin

Last week I learned how to build a proxy webdav server between client and s3. Now our client can edit document from our web app view directly without download it or mount s3 to local machine drive.