Discover and read the best of Twitter Threads about #NodeJS

Most recents (24)

Segunda feira é dia de dica de ouro e essa aqui é uma técnica para te ajudar a extrair elementos de um Array (ou qualquer objeto) usando destructuring em #JavaScript 🔥🧵 /1
Destructuring é uma forma sensacional de extrair somente o necessário dos objetos, como no exemplo:

const obj = {name: 'test', a1: 1, a2: 2, a3: 3}

const { name } = obj // extrai apenas o nome e ignora o resto /2
ou até, remover uma propriedade e assinar as propriedades restantes à outra variável:

const {name, ...allWithoutName} = obj
// allWithoutName terá todas as props exceto o name /3
Read 8 tweets
Si vous connaissez les Promise en Javascript, vous avez forcément entendu parlé des directives async/await.

Mais savez-vous exactement leur fonctionnement, leur utilité et leur impact sur le code ? 🧵
#dev #code #web #javascript #nodejs
L'avantage d'une promesse, c'est de pouvoir normaliser le retour d'une fonction asynchrone.

Et donc d'offrir une API pour traiter ces retours avec des fonctions comme .then(), .catch(), Promise.all(), etc... et de pouvoir les chainer. 🔗
Mais parfois, on aimerait simplement pouvoir traiter ces appels asynchrones de manière synchrone plus simplement qu'en enchainant les .then() par exemple.

Voilà pourquoi il existe les directives async/await ! 👇
Read 6 tweets
🌟 ¡Despeja tus dudas con las funciones BIND, CALL y APPLY de #JavaScript!

¡Te las explico a continuación! 🧵👇 Image
"Bind", "Call" y "Apply" son funciones de JavaScript que nos permiten trabajar con el objeto THIS cuando éste pierde la referencia al contexto que queremos.
👇
Cuando tienes por ejemplo un objeto con funciones que hacen referencia a otros parámetros internos, y esta función es llamada desde fuera, THIS hace referencia a otro contexto (Como por ejemplo "window" si estas en el navegador o "global" desde #NodeJS)
👇
Read 8 tweets
🔹Hello #DigiByte Familly. Today we want to introduce you to our most recent project. An #OpenSource DigiByte #wallet. More details in our next thread! @DigiByteCoin @DGB_Foundation @DGBAT_Official @digiassetX @jaredctate (1/7) github.com/RenzoDD/digi-w…
🔹This is a CLI wallet and it's intended for educational purposes, that's why it's coded in a very simple way. Also, it has been developed with #JavaScript in the #NodeJS platform and we used our DigiByteJS package. (2/7) npmjs.com/package/digiby…
🔹This is a standard compliant wallet, because we followed all the industry protocols such as BIP39 for mnemonic phrases, BIP32 for hierarchical deterministic derivations, BIP44, BIP49 and BIP84 for legacy, native and segwit addresses and Digi-ID authentication. (3/7)
Read 7 tweets
¿Quieres saber cómo está el mercado de talento #tech en Latinoamérica? (incluyendo salarios)

@getonbrd lanzó su reporte anual con datos de:

23,000+ trabajos
900,000+ aplicaciones
250,000+ professionales

❤️ RT

👇🏽 HILO
🥷🏽 ¿Cuáles son los skills más solicitados por las empresas?

En programación en general:

💛 #JavaScript de primero (obvio Boby)

2️⃣ #CSS, #Git y #React peleándose el segundo lugar

🇺🇸 "English" en un sólido tercer lugar. Image
👩🏽‍🎨 En Diseño / #UX

El primer lugar es una pelea a cuchillo entre @figmadesign y @Adobe

Seguido de #UIDesign, #wireframes y @sketch

Y por supuesto Inglés. Image
Read 13 tweets
3 days to finish the year, and I decided to do a countdown with the TOP 3 blog posts I've written in 2021. And some context. 🧵

Direct to #3: DOs and DON'Ts of Web #Scraping

zenrows.com/blog/dos-and-d…
Published December 21, the last one of the year, and straight to #3! No way we could have seen it coming.

SEO wasn't relevant here, no time for it to work either. #GoogleDiscover launched us there in our official blog. But even in other sites we publish, it has great numbers.
Coming in at #2 is Web Scraping with #Javascript and #NodeJS

Probably the longest and with more code in the whole lot. Published on September 1, the primary source in Google through SEO. Many interesting keywords in high positions.

zenrows.com/blog/web-scrap…
Read 7 tweets
Today learnt about the CRUD operations using the fs module in node.js.
By @devsnest_
#100DaysOfCode #Nodejs
@devsnest_ The Basic CRUD Operations
CRUD Operations On Folders

fs.mkdirSync() // make directory
fs.rmdirSync() // remove directory
Read 3 tweets
New post! Web Scraping with #Javascript and #NodeJs.
Learn how to build a web scraper, add anti-blocking techniques, a headless browser, and parallelize requests with a queue.
zenrows.com/blog/web-scrap…
You'll first build a web scraper using Axios and Cheerio, then a headless browser - Playwright.
Start by getting the HTML and parsing the content for new links to follow, applying Cheerio and CSS Selectors. Extract also content similarly.
Follow the gathered links and start a loop that will iterate over all links we find.
To avoid problems, set a maximum limit and store a list with the already visited URLs to prevent duplicates.
Read 7 tweets
So, what happened to #NodeJS in 2020? Our top 5 meetup video selection will have the answer you're probably looking for. You can check our roundup here and under this tweet as well.

blog.meetupfeed.io/nodejs-top5-me…
First up: @jotadeveloper at @GitNationOrg talked about building a #NodeJS registry with the help of #React. You can check it out below.

meetupfeed.io/talk/nodejs-re…
together? This talk will highlight opportunities by bringing #MachineLearning, #linearalgebra and #NodeJS with #TensorFlowJS. Learn more about using pre-trained models, training your own models, and running TensorFlow.js in various Node environments.

meetupfeed.io/talk/nodejs-ma…
Read 7 tweets
Yesterday I posted some of the amazing graphics that @ManningBooks have done for my book Bootstrapping Microservices!

Today I show you some examples of how awesome the code listings are with annotations rendered in their final form...

👇
@ManningBooks A simple Node.js microservice:

#nodejs #microservice Image
@ManningBooks Adding a microservice to your Docker-Compose file:

#microservice #docker Image
Read 7 tweets
🧵 M E G A T H R E A D

Check out all of my amazing threads that cover various topics like #JavaScript, #React, my favourite podcasts and many more...

👇#100DaysOfCode #CodeNewbie
Thread #1: This is the place where you can find most of the amazing resources, tutorials, code snippets, tips and tricks about #JavaScript. Happy Coding Days 😎

👇#100DaysOfCode #CodeNewbie #React
Thread #2: This is the place where you can learn most of the thing about #React. Find out some of the best resources, tutorials, code snippets, tips and tricks to enhance your React skills.

👇#100DaysOfCode #CodeNewbie #JavaScript #ReactHooks
Read 21 tweets
I'm about to buy a new MacBook Pro 13" with the famous Apple M1 SoC.

Let's see how ready it is for developers.

A thread ⤵️

Legend: 🔴 = not working, 🟢 = working

#AppleSiliconM1
🟢 Rust is working!

`aarch64-apple-darwin` is part of the Tier 2 platforms, doc.rust-lang.org/nightly/rustc/….

See the PR, github.com/rust-lang/rust….

#AppleSiliconM1 #rustlang
🟢 Python is working!

It is part of macOS Big Sur.

#AppleSiliconM1 #python
Read 26 tweets
Yesterday one of my colleagues asked me about how to boost MongoDB performance.
I explained to him, and now it's worth sharing:

Performance tuning for #MongoDB :

1. Create custom indexes for your queries.
see: docs.mongodb.com/manual/indexes/

Thread 👇

#javascript #Nodejs
2. If you use mongoose always use "lean", by default mongoose queries return an instance of Mongoose Document class, and these are much heavier than vanilla javascript objects.

#javascript #Database #MongoDB #NoSQL
3. Reuse connections (Connect once, use multiple times):

Don't connect and disconnect DB every time you query something. You should connect once,
at the beginning of your app.

Setting up a new TCP Connection is expensive time-wise, memory, and network wise.
Read 7 tweets
A thread on #HeadlessCMS where you will know most of things about what it is, how is it different to traditional #CMS, why it matters, pros & con's, and the most popular Headless CMS.

👇 #100DaysOfCode
So before you understand what this #HeadlessCMS is all about, in the first place you should know need to understand the difference between a Headless CMS and a conventional (or traditional) #CMS.

👇 #100DaysOfCode
Traditional #CMS platforms, like Joomla for instance, come with a front-end delivery layer, otherwise known as the “head” — that dictates how the content is presented to the end-user (1/3).

,👇 #HeadlessCMS #100DaysOfCode
Read 20 tweets
We're proud to publish our first State of Serverless report!
Thank you to our partners: @serverlessgurux, @snipcart, @triggermesh, @lvlupeng, @MeetupFeedio, @Cooperpress, @getiron, @Lumigo, @WebinyPlatform
#ServerlessSeptember #Serverless
Check it out: codingsans.com/blog/serverles…
Here's a collection of several key findings based on the community's answers:

1. Currently AWS @awscloud is the leading provider followed by @Azure and @GCPcloud
2. The two biggest benefits of using #Serverless architecture are flexibility in scaling and speed of development.
Read 7 tweets
Free web hosting for your web apps.
These services can help you host the front-end and or the backend of your web app.
They also provide a random free subdomain so you can share your app.

#100DaysOfCode #javascript #NodeJS #Python #webdevelopment

Thread 👇
vercel.com
A free platform where you can host both the front-end and Backend of your app.
Supports NodeJS, Python, golang, ruby.
Provides free SSL certificate and a free domain.
Easy to use
Has a CLI and integrates with version control
Allow cloud functions
gstatic.tech

A free static site hosting service for your apps.
It's provides a free SSL certificate
You get a free random subdomain name.
Can host only static front-end.
Has a CLI.
Integrates with version control
Read 13 tweets
Thank you @SheCodeAfrica @Kolokodess for giving me the opportunity to mentor amazing devs in the recently completed #cohort2 NodeJs track.
I am so proud to share the progress status of @OremeiPraise @lolalambe to mention a few 👇

#NodeJS #javascript #GirlsWhoCode
A THREAD
1 /n
API docs 👇
documenter.getpostman.com/view/12464626/…

documenter.getpostman.com/view/8738160/T…

looking forward to making more impact in the tech community in my little way.

THANK YOU ☺️
#100DaysOfCode #NodeJS #javascript #shecodes
Read 4 tweets
I have been teaching #FullStack #WebDevelopment for over 5 years, and taking interviews for #FullStack developers for over 3 years now.
Here is a tiny thread 🧵 for aspiring #Developers 👇
1. 📜 Take up frontend first, easier to see results. Take up backend later

I personally learnt #NodeJS to support my #Android work, and later got into #Frontend. But if I only had to be a web developer, I'll redo it with frontned first.
2.💡 Focus on basics before frameworks. Framework ninjas with 0 in basics get thrown out in interviews

It is nothing short of depressing how many people cannot even start making a simple project with #react or #vue scaffolding. Don't be that guy.
DOM events, semantic HTML ftw!
Read 14 tweets
I love to use @StandardJS to enforce consistent code style in all my #JavaScript / #NodeJS projects. You can easily do that with:

```
npx standard
```

But I prefer to setup @geteslint for more extensibility.

🧵 Here's how I do it... 👇
1. Initialize a new project with:

```
mkdir new-project
cd new-project
npm init -y
```
2. install #eslint with the following command:

```
npm i --save-dev eslint
```
Read 9 tweets
Building a #nocode platform is a lot of work. Especially for a #solofounder. Here's how I'm doing it. ⤵️
1/6. I need to make some money on the project while the full nocode platform is being built. I've released "half" of the application as a #developer tool to auto generate a backend (#nodejs #rest #api) without writing code.
2/6. Using developers as the user base for the initial product is not random. They're easier to teach nocode tools to because they already know about software development. Concepts like a database schema aren't foreign to them. This lowers the customer support burden
Read 8 tweets
What have you learned by using/studying different programming languages?

Here's my personal 🧵thread🧵, but I look forward to seeing your version of this :)

#learning #coding
#PHP: sandboxing the lifecycle and data related to every request is often a good idea.

(@official_php)
#basic (specifically #qbasic): my first language. Thought me to do "basic" things like variables, loops, functions and random numbers.

But, most importantly, it thought me that you can be #creative with #code as I started to use my learnings for generative graphics and audio.
Read 7 tweets
@nim_lang just did a quick (& stupidly simple) benchmark comparing asyncHttpServer with a plain @nodejs http server. The #Nodejs server seems ~3.5x faster than the #nim one... I did expect opposite results! Am I doing something stupid or is this expected? ImageImageImage
After setting up the @nim_lang "-d:release" flag and changing the @nodejs implementation to use the cluster module, these are some new results. ImageImage
@nim_lang is winning (as expected) but just slightly (62k vs 51k req/sec). Again, this is a silly benchmark, but nonetheless a good proof of @nodejs raw performance with async workflows!
Read 4 tweets
21 Best Productivity Tools that you must be using if you're a programmer

You can find the tools in this thread.

#javascript #productivity #webdev #reactjs #nodejs #deno #flutter #android #100DaysOfCode #CodeNewbie #freeCodeCamp #devopsjob #career #learntocode #DEVCommunity Image
1. [Notion.so](notion.so)

All-in-one workspace. Write, plan, collaborate, and get organized — all in one tool. Notes & docs, Wikis, Projects & tasks.

_Free plan available_

#productivity #javascript #100DaysOfCode
2. [Basecamp](basecamp.com)

The All-In-One Toolkit for Working Remotely. Companies change for the better when they work in Basecamp.

_Limited free plan available_

#productivity #javascript #100DaysOfCode
Read 22 tweets
#Nodejs is a monstrosity, a Mordor of architectural pitfalls, the plastic of programming languages - ubiquitous, toxic, and sadly here to stay.
Like plastic, it started off as useful and has now become ubiquitous & noxious.
1/18
1. There is no arguing NodeJS lowers the barrier to entry for application development. However that's where it should stay, an entry only
2. The lower barrier gives the same set of people from previous point a confidence that is misplaced at best and noxious at its worst.
2/18
3. The ecosystem fosters a culture that everything is a "component". Tell a NodeJS developer that what they are using is a "library" and they trot out their high horse, thumb their noses high in the air, and noisily claim that it is a component and not a library.
3/18
Read 18 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!