teleren/devto huggingface dataset:
Interview preparation strategies to get into MAANG - ATechAjay
Tags: career, job, programming, tutorial
Published: 2022-11-04 17:13:54

####   Original Tweet From  [@ATechAjay](https://twitter.com/ATechAjay)
{% embed https://twitter.com/ATechAjay/status/1588062930724978688 %}
 

###1|. How I discovered a guaranteed "process"​ to crack FAANG | LinkedIn

🔗 https://www.linkedin.com/pulse/how-i-discovered-guaranteed-process-crack-faang-deepak-aggarwal/

###2|. Skills You Must Have For FAANG Companies - GeeksforGeeks

 [https://www.geeksforgeeks.org/skills-you-must-have-for-faang-companies/](https://www.geeksforgeeks.org/skills-you-must-have-for-faang-companies/) 

AdSpace Here!!

###3|. How to Prepare for FAANG Interviews? - FAANG Interview Prep Plan - GeeksforGeeks

 [https://www.geeksforgeeks.org/how-to-prepare-for-faang-interviews-faang-interview-prep-plan/](https://www.geeksforgeeks.org/how-to-prepare-for-faang-interviews-faang-interview-prep-plan/) 

###4|. How to Crack a Coding Interview With 2 Months of Prep

 [https://www.interviewkickstart.com/blog/how-to-crack-coding-interview-in-2-months-preparation](https://www.interviewkickstart.com/blog/how-to-crack-coding-interview-in-2-months-preparation) 

AdSpace Here!!

###5|.  FAANG Interview Preparation - A Step-by-Step Guide to Crack FAANG Interview

 [https://www.interviewhelp.io/blog/faang-interview-preparation-guide/](https://www.interviewhelp.io/blog/faang-interview-preparation-guide/) 

That's all for now, we will meet in the next thread😍

🔔 Follow Me [@ATechAjay](https://twitter.com/ATechAjay)
 For:

🌐 Web Development
✨ JavaScript
⚛️ React JS
📝 Writing Skill
🔥 Motivation
💹 Growth
⛔ But Not For Only Resources &amp; Shitpost 😁

Thank you so much for staying to the end of this thread💚 



Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
Javascript Functions
Published: 2022-11-04 17:10:51

Functions are tools within the Javascript language that allow the user to create instruction within code in chronological order. You can declare variables within the code, which contain objects and other values, and you can manipulate the values using instructions specific to the language.

For example:

`function cake() {
	console.log("i like eating cake");
}

cake();`

is a function that instructs the program to output the string "i like eating cake" in the console. 

The first line declares the function's existence and name, with brackets to contain the code within. 
The second line contains instructions to print the string.
The final line actually calls the function and tells the computer that the code within should be executed. Without it, the function would just stand as inactive code.

Functions should be handled carefully in terms of visibility scope. When a variable is declared outside of a function, it's got global scope, and can be called through `console.log(var)`, if the variable's name is var. There is no problem to declaring a variable that way either, as the function searches line by line for the variable outside of itself. If it is declared within the function, then attempting to retrieve it outside of the function will result in an error message.

This is hopefully a good example of how to write a variable into a function without resulting in an error message:

`var gingerMan = "Ed Sheeran";

function badSinger() {
    console.log(gingerMan)
}

badSinger();`
First Blog
Tags: webdev, javascript, beginners, programming
Published: 2022-11-04 17:09:33

HI GUYS, I'm a 19 years old self-taught developer!
so when did I make my mind for programming well since I was a kid I always wanted to know how games work how internet work so I kept my focus in that but never understand anything but when I was 15 I start digging in this and I learn my first language it was JavaScript and its framework and libraries like react JS,Next js, Express JS Node Js and I become a web developer and learn C and C++ in my college year and  I always have a lot of passion for programming and I always wanted to learn new things and work on new technology  

I'm really happy to look forward what comes next for me making new friend and helping other learning new technology :)

Ali Osaid
Full stack Developer;
Pollen Robotics among finalists at XPRIZE
Tags: robotics, pollenrobotics, reachy, luos
Published: 2022-11-04 16:25:34

🔴 The Pollen Robotics team will be live this weekend for the ANA Avatar XPRIZE’s contest, as they are among the finalists.

They will defend Reachy, a humanoid robot powered by Luos. As a reminder, Reachy is one of the first projects co-created by Nicolas Rabault which gave him the idea and the desire to create Luos.

The whole team sends its encouragement to its friends at Pollen Robotics!
Hacktoberfest 2022 Rewind ▶▶▶
Tags: hacktoberfest, opensource, community, showdev
Published: 2022-11-04 16:21:08

## Introduction
Hacktoberfest 2022 just ended and I have decided to share this adventurous experience with you. I had contributed to open source in previous hacktoberfests as well but this time it was different. This time I was preparing for it in Preptember September. 
This time, I wanted to contribute to as many different projects and as many different organizations as possible...

![Section Divider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxnpclaf95g9spgn4ehm.png)

## Swag
Although this wasn't the main aim, I collected a lot of swag this time. Especially because I used [hacktoberfest-swag](https://hacktoberfest-swag.com) for scouting good organizations participating in hacktoberfest.

![Section Divider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25lmj5x2g9ibf54ptb2x.png)

## Contibutions
I'll be covering all my contributions in a tutorial like format. I'll be doing so in a series of articles which I'll keep linking here. I'll also be adding Github issue and PR references if you want to look into the entire process as well.

![Section Divider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxnpclaf95g9spgn4ehm.png)

## The Adventure
This time, my contributions ranged from writing documentation to learning a new programming language & writing a entire runtime in it.
I had to go `Plus Ultra!` [ Anime reference ] to make so diverse contributions. Making so many open source contributions while leading bigdata development at my day job and still keeping streaks at leetcode and duolingo was extremely difficult. My entire plan hinged on proper time management. I still fell a couple issues short as I wasn't able to do their PR on time. 
I got to experience what it'd feel like to work in these organizations. From bad documentation & bad maintaining to awesome documentation & great maintaining. I'm going to keep contributing to some of the projects and I just want to wipe off the memory of a couple of other projects.
It's all part of the journey...

![Section Divider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25lmj5x2g9ibf54ptb2x.png)

## November & beyond
I plan on working on my website, writing tech related articles, pumping leetcode, working on my origami skills and ofcourse, contributing to open source.
A sword that I made right before writing this article
![SWORD!!!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhu9dxyg7m7ps3ja0o6l.jpg)

Here's my Github profile: {% embed https://github.com/Azanul %}

![Footer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ll9sic32gug22pv1opj4.png)
Open Source (HackSquad)
Tags: hacksquad, opensource, hacktoberfest, webdev
Published: 2022-11-04 15:26:05

After successful participation in hacktoberfest,we have participated in hackSquad and,my team will get global rank 23 in hackSquad.I am very excited to share it,because it ours first open source and we are not too much aware about it.As it was our first go, and achieving 23 in Global is meant for us.
What I learned yesterday and will work on today
Published: 2022-11-04 15:09:06

Yesterday i continued work on msm queries and it has taken me embarrassingly longer than i thought it would take to complete. I seem to have shoveled enough coal by now to get the wheels turning and make some actual progress. However, I am aware that it can be short-lived. 
Today, I will continue working on msm queries and hopefully complete it by end of class. 
Specifically, I am hoping to complete the movies id and actors id section today.
"Once more unto the breach, dear friends..."
Elixir: Repeating the same function multiple times in pipe
Published: 2022-11-04 14:44:31

Piping is a trade mark for elixir developers, it makes the code cleaner, easier to read and overall more organized.
Instead of chaining function returns like this:

```js
foo(bar(baz(new_function(other_function()))))
```
Piping allow us to do this:

```elixir
other_function() |> new_function() |> baz() |> bar() |> foo()
```

Where the data flows from up to bottom.

Sometimes on our programming journey we need to perform the same function n times while piping. 

## 1. Performing the same function on enum items inside a pipe:

We have Enum of strings that we want to transform to uppercase.

```elixir
people = ["Qui", "Quo", "Qua"]
people|> Enum.map(&String.upcase/1)
```

## 2. Piping the same function multiple times on the same variable.

For example let's say we have a struct that we want to validate the fields.
In this case we can simplify the piping using a function 

```elixir
def validate_lengths(changeset, fields, opts) do
  Enum.reduce(fields, changeset, &validate_length(&1, &2, opts))
end
```

usage:
```elixir 
my_struct |> validate_lengths(fields)
```
Terminal-styled portfolio websites.
Tags: webdev, portfolio, javascript, tailwindcss
Published: 2022-11-04 14:41:33


## About The Project
 A Terminal Portfolio. 
 Project is live www.webprithviyewale.tech

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hrxy2porac7sgw4j709u.png)
{% youtube 8PvI-XDCyL8 %}

### Built With


* [Html5](https://developer.mozilla.org/en-US/docs/Web/HTML)
* [Tailwind CSS](https://tailwindcss.com/)
* [LastFM api](https://www.last.fm/api)
* [npm](https://www.npmjs.com/)


<p align="right">(<a href="#about-the-project">back to top</a>)</p>
Being a Developer Advocate: Week 9
Tags: devrel, learninpublic
Published: 2022-11-04 14:18:24

This week was only three days but nonetheless we got some things rolling which feels nice.

## Giving Feedback
One of the things I really like about my position is that I touch so many different things because of my developer-focused viewpoint.

* Our user portal gets an onboarding guide which I helped to structure in a developer-friendly way and provided the texts.
* For a motion graphics video about our product I talked to our designer and validated some ideas she had. So far it looks amazing and I could help her understand the technical background better.
* I noticed some inconsistencies in a feature we released. We do not have an established process yet for getting improvements implemented. But I managed to get the need for it recognized!

## Collecting Metrics for a Community & Advocacy Dashboard
High recommendation to watch [this panel about Key Metrics for DevRel](https://www.youtube.com/watch?v=VoxJ0itphpU).

With that in mind, we started to collect Metrics for the first draft of a dashboard. Hopefully we get it ready for the monthly _All Hands_.

## Docs improvement
Friday was filled docs (My favourite! 🥰). Removing clutter from the _Getting Started_ felt nice. I also changed the link from our homepage to the docs, so users do not have to get click another time to get to the real stuff.

Then I thought: `Let me implement a spellchecker real quick!`
And when we are there already: `Include it in the preCommit Hook.`

What could possibly go wrong?

Getting it running was a piece of cake but it turned out it ran for ages. That was because it scanned all the pictures also.

Afterward, I included it in our preCommit Hook and the fun began: shell-Scripting 🤯

I did want to run the spellchecker only on changed files which are easy to find out with `git diff --name-only --relative`. `--relative` is needed because git always returns path starting from the root-Folder and the docs are in a separate folder. And then if you have new untracked files you will need `git ls-files --others --exclude-standard`.

Only to find out I have to transform the returned files to a String with this format `"filepathone" "filepathtwo" ...`
There my shell-Foo met its limit and I opted for a simple _scan all files_ which is reasonable fast (about 2-3 seconds).

If you are interested. I used [spellchecker-cli](https://www.npmjs.com/package/spellchecker-cli) and I will write a post about my learnings 🧸
Símbolos de APL: atribuição
Tags: apl, programming, programacao, dyalog
Published: 2022-11-04 14:14:43

> AVISO! Essa série de artigos usará exemplos rodados em Dyalog APL, a implementação da Dyalog.

> AVISO 2! Esse artigo contém exemplos de código. Se você quiser rodá-los, copie e cole as linhas **identadas à direita** (as linhas identadas à esquerda são os resultados) nesse site: https://tryapl.org

O primeiro símbolo que vou apresentar é `←`.

Esse é o símbolo de "atribuição" ("Assignment" na [documentação](https://aplwiki.com/wiki/Assignment)). A maioria das linguagens de programação usam o símbolo `=` para esse fim. Em APL, `=` é reservado para comparação de igualdade.

```
      a←1
      a
1
```
A primeira linha atribui o valor `1` para a variável `a` e a segunda linha a exibe. A terceira linha é o retorno da segunda.

A atribuição não é restrita a valores escalares (que em APL são arrays com uma dimensão).

```
      a←1 2 3 4
      a
1 2 3 4
```

A atribuição também serve para outras coisas, como redirecionamento para o display usando o caracter `⎕` (é um quadrado mesmo, chamado "Quad", não é erro de encoding. Esse símbolo será elaborado em outro artigo).

```
      ⎕←a←1
1
```

Assim como em linguagens mais populares hoje em dia, é possível atribuir uma modificação, como por exemplo um incremento.

```
      a
1
      a+←1
      a
2
      a-←1
      a
1
      a×←10
      a
10
```

Também é possível fazer atribuição de arrays de mesmas dimensões. O efeito disso é a distribuição dos valores nas variáveis listadas.

```
      a b c←1 2 3
      a
1
      b
2
      c
3
```

Por enquanto é isso. Em resumo pode-se entender esse símbolo como um símbolo de transferência de valor, tanto para uma variável, quanto para o display.
WHY is this not showing 123???
Tags: javascript, this, logical
Published: 2022-11-04 14:10:31

```
var status = 23;

function yzx() {
  var status = 123;

  xyz = () => {
    setTimeout(() => {
      console.log(this.status);
    }, 100);
  };
  xyz();
}
yzx();
```
Twitter is expected to lay off about half of its workforce
Tags: news, socialmedia, career, discuss
Published: 2022-11-04 14:06:31

Per [this story by The Verge](https://www.theverge.com/2022/11/3/23439802/elon-musks-twitter-layoffs-start-friday-november-4)

> Musk is expected to cut roughly half of Twitter’s roughly 7,500-person workforce. His team of outside advisors has spent the last week determining which engineers and technical managers to keep based largely on their recent contributions to Twitter’s codebase, according to employees involved in the discussions.

[Stripe also underwent significant layoffs yesterday](https://techcrunch.com/2022/11/03/stripe-cuts-14-of-its-workforce-ceo-says-they-overhired-for-the-world-were-in/), as have others in the tech industry, in a "second wave" of sorts.

What are your thoughts about the latest in this situation? How are you feeling about things in general. Would love to hear from you.
Git
Tags: git, beginners
Published: 2022-11-04 14:05:20

#First-Time Git Setup

This is a summary of the [ git official docs](https://git-scm.com/book/en/v2)

##Your identity

The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:


```
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
```

##Your default branch name
By default Git will create a branch called master when you create a new repository with git init. From Git version 2.28 onwards, you can set a different name for the initial branch.

To set **main** as the default branch name do:

```
$ git config --global init.defaultBranch main
```
##Checking your settings
If you want to check your configuration settings, you can use the git config --list command to list all the settings Git can find at that point:

```
git config --list
```
Array Filter: How to Filter Values With Correct Types
Tags: typescript, programming, tutorial, javascript
Published: 2022-11-04 14:01:27

TypeScript doesn't infer the return type of an array filter operation in the same way that it does for an if statement to check whether a variable is defined.

Let's consider the following example:

```typescript
type User = {
  id: number;
  name?: string;
};

const listUsers = (): User[] => {
  // fetch users from some API and return them
  return [];
};

// names will be of type (string | undefined)[]
const names = listUsers()
  .map((user) => user.name)
  .filter((name) => !!name);
```

The type of `names` is inferred by TypeScript as `(string | undefined)[]`, although we explicitly filter out falsy values. TypeScript somehow doesn't interpret the condition inside the filter function.

To get TypeScript to infer the return type correctly, we need to use a custom [type-guard](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates).

```typescript
// type-guard to assure name is a string
const filterNames = (name?: string): name is string => {
  return !!name;
}

const names = listUsers()
  .map((user) => user.name)
  .filter(filterNames);
```

The return type `name is string` of this type-guard function will assure TypeScript that we have checked the type and can safely treat it as `string`. 

However, if we don't want to define a separate filter function, we can also use the type guard inside the inline filter function:

```typescript
const names = listUsers()
  .map((user) => user.name)
  .filter((name?: string): name is string => !!name);
```
Twilight of the 100
Tags: 100daysofcode, devjournal, codenewbie, productivity
Published: 2022-11-04 13:53:01

From here on, my entries for 100 days of code😭😭I've been waayyy too inconsistent with it all and it's put way too much pressure on me. I think I'll start journaling my coding journey life I've been doing but in a more relaxed way😌
Cron job creation using Node JS.
Tags: javascript, node, webdev, programming
Published: 2022-11-04 13:49:17


The **Cron** command-line utility is a job scheduler. So Cron do our same task that we are doing in daily life such as Sending emails, Notifications and other repetitive tasks.

> **Have you ever think that some of big tech company are doing backup on daily basis, So are they going to run script everyday?**

So, the answer is **Big No**. They are using cron job So that write script once, then run everyday. We can even customize it in our need.

---

**Prerequisites**

- Check Node version v16.2.0 (or more).

If not installed then [download from link](https://nodejs.org/en/download/) else good to go...

## Step 1 — Creating a Node Application and Installing Dependencies

Open terminal and run commands

```javascript
mkdir CronJob
```

```javascript
cd CronJob
```

Initialize npm package.json

```javascript
npm init -y
```

Install dependancy

```javascript
npm i node-cron
```

## Step 2 — Crating task

> So, here I want to make script to run ervery minutes.

create index.js by typing command in terminal(windows)

```javascript
type Null > index.js
```

Open `index.js` and add following code

```javascript
var cron = require("node-cron");

cron.schedule("* * * * *", () => {
  console.log("running a task every minute");
});
```

> The syntax of \* is base on [Crontab](https://en.wikipedia.org/wiki/Cron)

```javascript
 # ┌────────────── second (optional)
 # │ ┌──────────── minute
 # │ │ ┌────────── hour
 # │ │ │ ┌──────── day of month
 # │ │ │ │ ┌────── month
 # │ │ │ │ │ ┌──── day of week
 # │ │ │ │ │ │
 # │ │ │ │ │ │
 # * * * * * *
```

> Here If we apply \* for it will defaulty run every instance of time.

Ex.

```javascript
- * * * *  * *   --> Every seconds. (Second is optinal)
-   * * *  * *   --> Every minutes.
-   1 * *  * *   --> 1 min of every hours.
-   0 1 *  * *   --> 1 hours of every day.
-   0 0 3  * *   --> Every Wednesday 00:00 run.
-   0 0 18 2 *   --> Every 18,Feb day run.
```

### Run Script

```javascript
  node index.js
```

After Every minutes, you will see results like:-

```javascript
running a task every minute
running a task every minute
```

## Examples

```javascript
cron.schedule("0 0 18 2 *", function () {
  console.log("---------------------");
  console.log("Running Cron Job on 18 Feb");
  // send people on their birthday.
  sendEmail("myEmail@gmail.com", "Happy birthday");
});
```

Here, cron job run every 18-Feb day in every year. Once code run then send automatically send email to people on their birthday.

---

## Conclusion

In this blog, we have discussed about Cron Job creation using Node JS and use in real-life and schedule your repetitive task and save your time...
Introducing Automate the Boring Stuff with GO
Tags: go, beginners, programming, tutorial
Published: 2022-11-04 13:20:54


## Welcome to the Free E-book for Beginner Coders Interested in GO

If you're new to GO and a **Beginner** in programming then there's not really books or learning resources for you. Most GO related books expect you to have *some* programming experience and involve complex topics such as Web Application building. 

If you're looking around in the GO communities online for advice, you'll hear things like 'just do the tour' or 'build it yourself' or the worst 'GO is so easy you can learn it in a day', which for a beginner isn't helpful at all and is discouraging.

However, with [Automate the Boring stuff with GO](https://www.automatetheboringstuffwithgo.com/) we'll start from the basics of setting your development environment, go over GO, and then at the end build a bunch of useful programs.

Here's the outline for the **second part** of the book which contains the programming projects:

Part II. Ready, Set, GO
- Chapter 8.  Regex
- Chapter 9.  Reading and writing files
- Chapter 10. Massive File management
- Chapter 11. Downloading internet pages
- Chapter 12. Excelling with GO - working with Spreadsheets
- Chapter 13. Working with PDF and Word documents
- Chapter 14. Working with CSV and JSON
- Chapter 15. Getting a Grip on Dating
- Chapter 16. Automate E-mailing and Texting
- Chapter 17. Edit PNG and JPEGs

The first part will be all about the basics of GO and getting your computer ready to develop code. 

Part I. All you need to get *Going*
- Chapter 1. Setting up your Dev env
- Chapter 2. Basics of GO
- Chapter 3. Flow Control
- Chapter 4. Functions
- Chapter 5. Slices
- Chapter 6. Maps and Structs
- Chapter 7. String Manipulation

## Work in progress

I'm writing this book in the open and will deliver one chapter a week, but please bear with me as this is my first time taking on such a task, so the writing might not be perfect. 

But, that also means you can tell me when you're confused, and I'll go back to that chapter / section and add more to it or redo it altogether if it doesn't make sense.

So, without further ado here's the first chapter!
 
[Chapter 0. Introduction](https://www.automatetheboringstuffwithgo.com/chapter-0-introduction/)