teleren/devto huggingface dataset:
JavaScript for...of loop
Tags: javascript, beginners, programming, tutorial
Published: 2022-10-04 10:30:50

## For…of loop

The `for…of` loop was introduced in the later versions of JavaScript ES6.

The JavaScript `for…of` loop is used to iterate over the values of the iterable object. These Iterable objects include instances of built-ins such as _Array_, _String_, _TypedArray_, _Map_, _Set_, _NodeList (and other DOM collections)_, as well as the _arguments _object, _generators_ produced by generator functions, and user-defined iterables.

A `for...of` loop operates on the values sourced from an iterable one by one in sequential order. `for…of` loop provides clean code and minimizes the clutter of JavaScript `for` loops.

&nbsp;

### `for` loop
&nbsp;

```js
let colors = ['red', 'green', 'blue'];
for (let i = 0; i < colors.length; i++) {
    console.log(colors[i]);
}
```

**Output:**

```
red
green
blue
```

&nbsp;
### `for…of` loop

&nbsp;
```js
let colors = ['red', 'green', 'blue'];
for (let i of colors) {
    console.log(i);
}
```

**Output:**

```
red
green
blue
```


&nbsp;
## Syntax

```js
for(variable of iterable){
    // body of for…of loop
    statement(s)
}
```

**`variable`**
JavaScript variable declared with either `const`, `let`, or `var`, which receives value from the sequence on each iteration.

**`iterable`**
Iterable is the iterable object on which the loop operates. It is the source for the sequence of values.

**`statement`**
It could be a single statement or multiple statements that are to be executed on every iteration.

&nbsp;

## `for…of` with Arrays

The `for…of` loop can be used to iterate over the values of an Array. For example:

```js
// array
let colors = ['red', 'green', 'blue'];

// using for...of loop
for (let i of colors) {
    // display the values in console
    console.log(i);
}
```

**Output:**

```
red
green
blue
```
 

&nbsp;
## `for…of` with Strings

The `for…of` loop can be used to iterate over the values of an Array. For example:

```js
// string
let myString = "Hello";

// using for...of loop
for (let i of myString) {
    // display the values in console
    console.log(i);
}
```

**Output:**

```
H
e
l
l
o
```


&nbsp;
## Wrapping up!

The `for...of` loop cannot be used to iterate over an object and this is where `for…in` loop comes in. The `for...of` loop was introduced in ES6. Some browsers may not support its use.


#####💻 Happy Coding

---

{% user moazamdev %}
"Everything went well but they did not hire me...". Here's why:
Tags: hiring, hr, interview
Published: 2022-10-04 10:23:39

We are suckers for the good signs.
We are easily attracted to comfort, friendly people, and a respectful environment.

An experienced hiring manager will make you feel right at home, just to crack your personality.

> Don't fall for the good signs, they are unpredictable.
> Look for the bad ones and stay away from such companies.

Every decent HR or hiring manager will tell you about the process, the company, and the team. They will tell you jokes and laugh with you. They will mention the school or a hometown if you have it in common.

That happens for the 3 main reasons

* Learning as much as possible about your personality is done best if you feel comfortable. Hence the laughter. An experienced hiring manager establishes a relationship with the candidate at the hiring table. They would imitate situations that frequently happen in the team.

* Hiring a person is not buying milk at the grocery store. The selling process goes in both directions all the time and telling you about the team, product, or development process is attaching you emotionally to the process for a longer time.

* Keeping the high bar. A successful hire contributes to the company's value, while rejected hires contribute to the company's image. That's why every company that cares about its name will respect every candidate by maintaining a high level of positive experience no matter the immediate feeling. They will do anything so you spread the excitement further.

So what should you do to get a better understanding?

**The following are 100% proof things went wrong for you**
* The interview ends earlier than scheduled.
15 minutes are usually set for a pre-sync before the process, 30 for an intro, 45 for HR or org level, and 60-90 minutes for technical or architecture sessions.
An experienced interviewer knows how this time should be used. In case the meeting ends in the middle, they have no interest in you.
* There's no follow-up call for more than 2 weeks. Good candidates are always hard to find. No matter the size of the company, in case they like you, a quick call or a message will always follow within a week's time range.

**Bonus.
The list of signs to be avoided**
* The person is late for the meeting and nobody apologizes.
* The manager who interviews you is strict and unsmiling. In case the interviewer is your direct supervisor, he/she tries to tell you "this is my style, love it or hate it".
* The questions you've been asked are out of your position's responsibility. A manager is being assigned development questions, a developer's assignment includes a lot of SQL queries, end so on. The company either does not know how to hire or has no clear definition of the requirements. Both are to be avoided.
AWS, Azure or maybe Google Cloud? Which provider has the best CI/CD system?
Tags: aws, azure, cicd, googlecloud
Published: 2022-10-04 10:16:08

Choosing the best cloud for our business is very difficult. This is because each has its pros and cons. One important element to consider is also the CI/CD tools provided, which we can use to build and deploy solutions. 

I recently prepared a summary of the 24 most popular CI/CD tools. The list is available on this page: [Best CI/CD tools](https://www.czerniga.it/2022/03/27/find-your-best-ci-cd-tool).

![Best CI/CD tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yu4coorvidc0qge75rxb.jpg)

The list also includes 3 clouds (AWS, Azure, GCP), which I just want to compare in this article in the context of CI/CD.

## AWS CodePipeline

![AWS CodePipeline](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nmi9wm1drfxusu4rbnzw.png)

**AWS CodePipeline** is a fully managed CI/CD service that helps automate release processes to update applications and infrastructure quickly and reliably. It is a service that takes advantage of Amazon AWS cloud advantages such as integration with other internal services or the ability to pay for the service only as long as you need it.

A guide on how to get started with AWS CodeBuild which is a component of CodePipeline can be found here: [How to prepare your first CI project in AWS CodeBuild](https://www.czerniga.it/2022/02/21/prepare-the-first-ci-project-in-aws-codebuild)?

{% gist https://gist.github.com/czerniga/ad44003253d2f4aa4e80a3f3bea8e8f5 %}


## Azure Pipelines

![Azure Pipelines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5bmdzo84vcxlrrx6hqwh.jpg)

**Azure Pipelines** is a CI/CD service managed within the Microsoft Azure cloud. It enables the creation of CI processes in the cloud for Linux, macOS and Windows. In addition, it supports the development of web, desktop as well as mobile applications.

{% embed https://gist.github.com/czerniga/bd6a2f18a147198fed1f3b21233fb467 %}

A guide on how to get started with Azure Pipelines can be found here: [How to prepare the first CI project in Azure Pipelines?](https://www.czerniga.it/2022/05/16/how-to-project-ci-in-azure-pipelines)?

## GCP Cloud Build

![GCP Cloud Build](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73f8fxh7b73sxi0utsfe.jpg)

**GCP Cloud Build** is a CI/CD service managed within the Google Cloud Platform cloud. It allows fast software development in all programming languages, including Java, Go, Node.js and others. In addition, it allows for deployment in multiple environments, such as virtual machines, Kubernetes or Firebase.

{% embed https://gist.github.com/czerniga/93d44b9ac3d392ee481e2c7d3d5486f7 %}
It depends is the magic phrase 👉 4 public speaking tips
Published: 2022-10-04 10:10:44

It's been a long time since my first talk in 2018 and since that day I have never stopped trying to improve my way of communicating. 
I want to share with you 4 tips that I learned in my journey.

---

### 1 - Each person has his way

Each person has his way of communicating and describing things and this is why even if a topic has already been treated, it is not said that you cannot do a talk about it.
Experience on the subject, way of seeing things, and way of communicating are making each talk unique.

### 2 - We can't know everything

We would like to know everything and this often prevents us from addressing certain topics, for sure the Q&A time is the scariest part of any session, but you cannot know everything so on that occasion you can say: **it depends!**
Am I joking? Yes and... No.
Often the questions we are asked are particular and set in a context that we do not know, the only thing to do in these cases is to answer by drawing on your own experience and perhaps postpone the conversation over a good coffee.

### 3 - Start from the message

When I prepare a talk I usually start with the list of topics I would like to cover and the tips I would like to share.
Having these points in mind, I start to imagine the slides and the layout I would like to obtain, this imaging activity allows me to save a lot of precious time.

### 4 - Don't prepare it too early

For my first speech, I started the preparation early, 2 months earlier, the result was that I studied a ton of articles and videos on the subject to be prepared for everything, two weeks before my speech I repudiated the topic I had to cover.
So the lesson here is to calibrate your effort in the talk preparation, now I learned the lesson and I prepare my talks a week or two before the conference.
Here you have to calibrate the talk construction at your own pace, but keep in mind my error because that feeling is really bad.

🎉 Here are my 4 tips about public speaking 🎉

You can [follow me on Twitter](https://twitter.com/giorgio_boa), where I'm posting or retweeting interesting articles.

If you enjoyed this article don't forget to give ❤️ and if you have any questions or feedback then don't hesitate to drop them in the comments below. Bye 👋

{% embed https://dev.to/gioboa %}
python code to connect to a website "msw" is conneted with this code
Tags: python, programming, beginners, django
Published: 2022-10-04 10:07:20


#
beginners
#
python
#
ai
#
career
import urllib
import urllib2

params = {'param1': 'value1'}
msw = urllib2.Request("
[https://6t-ph.com/msw/](https://6t-ph.com/msw/)", urllib.urlencode(msw))
res = urllib2.urlopen([fish-game](https://6t-ph.com/msw/))

data = res.read()
python code to connect to a website "fish-game" is conneted with this code
Tags: beginners, python, ai, career
Published: 2022-10-04 10:05:13


import urllib
import urllib2

params = {'param1': 'value1'}
fish-game = urllib2.Request("
[https://6t-ph.com/slot-machines-tipster-corner/](https://6t-ph.com/fish-game/)", urllib.urlencode(params))
res = urllib2.urlopen([fish-game](https://6t-ph.com/fish-game/))

data = res.read()
Redactle: A new Wordle game
Tags: gamedev, redactle, webdev
Published: 2022-10-04 08:59:56

If you've ever used Wordle, you'll know it's a great way to get your creative juices flowing. The game casts you as an editor for a magazine filled with word puzzles and secret meanings. You go through a paper and find words that are concealed in the text. However, if you like a challenge, or just want to spend more time pondering about hidden meanings rather than playing Wordle, Redactle is for you!

[Redactle](https://redactleunlimited.com) is simply a word game in which you must find out the secret redaction code of the other players in order to win. You must predict letters and mix them with word fragments and empty spaces given by other players to do so. If it seems unclear, continue reading for a more in-depth description of the game or watch the video above.

This is a quick-paced party game for 3 to 6 players that lasts around 30 minutes. Each participant gets a card with a secret redaction code (a hidden word) and numerous cards with letter combinations (such as "V + ER"). On your turn, you either pass one of your letter cards to another player or ask them to pass one of theirs to you. Then you expose your redaction code and check whether yours and their response share a word. If there is, you mark it with an X; if there isn't, you guess until you locate it or run out of alternatives. The team that discovers all of their opponent's codes first wins the game!
Here are 24 websites to learn Linux for free - 7h3h4ckv157
Tags: linux, beginners, free, techtips
Published: 2022-10-04 10:02:32

####   Original Tweet from [@7h3h4ckv157](https://twitter.com/7h3h4ckv157)
{% embed https://twitter.com/7h3h4ckv157/status/1576612336902627328 %}
Here are 24 websites to learn Linux for free:

Credit: [@danielmakelley](https://twitter.com/danielmakelley) 

Thread 🧵 ↓ #infosec #Linux 

1. Tecmint
2. Linuxize
3. nixCraft
4. It's FOSS
5. Linux Hint
6. FOSS Linux
7. LinuxOPsys
8. Linux Journey
9. Linux Command
10. Linux Academy 

11. Linux Survival
12. Linux Handbook
13. Ryan's Tutorials
14. LinuxFoundationX
15. LabEx Linux For Noobs
16. Conquering the Command Line
17. Guru99 Linux Tutorial Summary
18. Eduonix Learn Linux From Scratch
19. TLDP Advanced Bash Scripting Guide 

20. The Debian Administrator's Handbook
21. Cyberciti Bash Shell Scripting Tutorial
22. Intellipaat Linux Tutorial For Beginners
23. Digital Ocean Getting Started With Linux
24. Learn Enough Command Line To Be Dangerous

Happy Learning! :) 

Additionally, OverTheWire - Bandit! 

#### 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)
python code to connect to a website "slot-machines" is conneted with this code
Tags: python, programming, devops, ai
Published: 2022-10-04 10:02:17


import urllib
import urllib2

params = {'param1': 'value1'}

slot-machines = urllib2.Request("
[https://6t-ph.com/slot-machines-tipster-corner/](https://6t-ph.com/slot-machines-tipster-corner/)", urllib.urlencode(params))
res = urllib2.urlopen([slot-machines](url))

data = res.read()
python code to connect to a website "6tph" is conneted with this code
Published: 2022-10-04 09:58:13


import urllib
import urllib2

params = {'param1': 'value1'}

6tph = urllib2.Request("[
https://6t-ph.com/6tph/](https://6t-ph.com/6tph/)", urllib.urlencode(params))
res = urllib2.urlopen([6tph](
https://6t-ph.com/6tph/))

data = res.read()
python code to connect to a website "6t game zone" is conneted with this code
Tags: beginners, programming, python, devops
Published: 2022-10-04 09:56:41


import urllib
import urllib2

params = {'param1': 'value1'}

6t-game-zone = urllib2.Request("[https://6t-ph.com/](https://6t-ph.com/)", urllib.urlencode(params))
res = urllib2.urlopen([6t-game-zone](https://6t-ph.com/))

data = res.read()
DP-900 Part 10
Tags: azure, cloud, cloudskills
Published: 2022-10-04 09:55:21

Hi again! 

### Azure Tables

Azure table is NoSQL based database, it makes use of key-value data items.
Each item is represented by a row.
It enables to store semi structured data.
All rows must have unique keys and after modification a timestamp column record is created to record data time.
Column in each row may vary
No foreign key, views, relationship exist in this azure table.
It has de-normalized data.
For fast access it splits azure table in partitions.
Partitioning groups related rows, rows with same partition key stored together.
Partitioning groups  related rows, rows with same partition key stored together.
Partition are independent of each other
We can add a partition key for fast search.

### Fundamentals of CosmosDB

- It is a NoSQL based database
- It supports multiple APIs, internal structure is abstracted
- Use index and partitioning to provide fast read
- It automatically allocates space in container for partitions 10GB maximum
- Index are created automatically

- Used for IoT and telemantics, retail marketing, gaming, web and mobile application

thanks for reading
Beyond Flask tutorials
Tags: flask, jinja, python, webdev
Published: 2022-10-04 08:57:10

### disclaimer
I have no idea what is the correct way to do things. I probably do some things really wrong, and I will be glad to learn that. Here I'm just sharing my experience and where I'm now in using Flask for multiple small projects (all basically CRUD apps). Your experience may be different, and I will gladly hear it.

### what's this about
As many (I guess), I started to learn Flask with [Flask Megatutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world) by Miguel Grinberg (who's for me a Flask guru). You can learn a lot from tutorials, but at some point you get to situations where you don't find a reference for how to do this a clean way, "Flask way". So, there are many things I tried and changed and changed again. It's not that the code is not working, but when you are thinking about how to keep your code sustainable, you are just trying to find a good way all the time.
I want to show how I use Flask. How I think about structure, what tools and packages I use for my app.

I will randomly add some articles as I'm handling different parts of my application/s. If I will see something to be worth sharing, I will try to do so.

I hope for this to become place for me to structure my thoughts and experiences, for you to be inspired, and for all of us to exchange thoughts, discuss and learn.

Let's start!

Questions for this post:
- Do you use Flask? And have you comparison with other web frameworks?
- Is there something you are stuck on, something that doesn't just "feel right" in you Flask project?
2022 React developer roadmap with +39 FREE resources to learn From - _georgemoller
Tags: techtips, react, beginners, webdev
Published: 2022-10-04 09:50:28

####   Original Tweet [@_georgemoller](https://twitter.com/_georgemoller)
{% embed https://twitter.com/_georgemoller/status/1576956039647354882 %}
⚛️ 2022 React developer roadmap with +39 FREE resources to learn from. ![Twitter Image 1](https://pbs.twimg.com/media/FeJ5HKYXwAIlm75.jpg) 

1/4 ![Twitter Image 1](https://pbs.twimg.com/media/FeJ5HduXwAEQF6V.jpg) 

2/4 ![Twitter Image 1](https://pbs.twimg.com/media/FeJ5IurWQAMFjWT.jpg) 

AdSpace Here!!

3/4 ![Twitter Image 1](https://pbs.twimg.com/media/FeJ5J_zXkAEXsG9.jpg) 

4/4 ![Twitter Image 1](https://pbs.twimg.com/media/FeJ5KRBXoAE0Ll8.jpg) 

#### 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)
refine Joins the Hacktoberfest Fun
Tags: hacktoberfest, opensource, react, programming
Published: 2022-10-04 09:45:24




## refine :heart: HacktoberFest



This year, for the first time, refine is excited to participate in Hacktoberfest! If you're not familiar with it, Hacktoberfest is a month-long event that encourages developers from all backgrounds to contribute to open source projects. It's a great opportunity for beginners to get started in coding and for experienced developers to share their knowledge. If you're interested in participating, check out the [Hacktoberfest](https://hacktoberfest.com) website for more information.

  
We've already labeled a bunch of **refine** issues with `hacktoberfest` so you can start hunting right away. The list includes easy ones to get familiar with **refine**, but we've also got more difficult ones for experienced developers:

[github.com/pankod/refine/labels/hacktoberfest](https://github.com/pankod/refine/labels/hacktoberfest)


![prize](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/84xoza2uvbsbvnavtjii.png)


Participating is not only fun, but you can also win prizes by taking part. If one of your PR's is merged to core framework, you'll be rewarded with a stylish  [refine t-shirt ](https://store.refine.dev/product/develop-tshirt).  In case you've got 2+ PR's merged, we'll send you a complete refine SWAG Kit, incl.[t-shirt, cap & bottle](https://store.refine.dev/)

Happy coding to everyone!
DP-900 Part 9
Tags: azure, cloud, cloudskills
Published: 2022-10-04 09:44:48

Hello!!!!

In this blog, we'll see Azure datalake Gen2 and will explore Azure files

Azure datalake Gen1 is a service for data storage in hierarchical manner for analytical data lakes used by big data analytical solution.

Azure data lake store Gen2

It is newer version, integrated into Azure storage, to take advantage of azure blob storage scalability.

### Azure files

There is no hardware cost, maintenance overhead, high availability, scalability.
Can share up to 100TB data in single storage account.
Maximum file size is 1 TB and it can be changed.
It supports 2000 concurrent connections per file.

- Standard tier
uses hard disk based hardware in data center

- Premium tier
uses solid state disk, great throughput changes at high rate

It supports 2 network file sharing protocol : 
1. Server message block (SMB)
Share files across multiple OS

2. Network file system (NFS)
Must have premium storage account
used by linux and macOS version

Thanks for reading, will see azure tables in next blog...
NextSketch 2: The next chapter
Tags: discuss, design, news, tooling
Published: 2022-10-04 09:40:30

Hello NextSketchers! 👋 

Over the last few months we've watched new trial users join the NextSketch community, and now, we need your feedback!

We've been hard at work on NextSketch 2, which we're planning to release in January 2023. Your opinions and feedback are what make the product better for everyone.

Comment below on how you use NextSketch and what features you'd like to see in NextSketch 2.

Happy October!

_Visit the NextSketch website at www.nextsketch.ca_
How to pass argument to your node script
Published: 2022-10-04 09:35:54

Sometimes you need to pass arguments to your node script so they can be more dynamic. Let's see how to do that. 
Let imagine you have a node project with script part like that

```
{
 "scripts": {
    "example": "echo 'hello world'",
    "webpack": "webpack serve"
  },
}
```
You can run 
`npm run example`
The you will have hello world  as result 
Or `npm run webpack` 
then you have a webpack server who starts running. 
Now if we want to pass arg when executing the CLI command, you can do that. 

```
{
 "scripts": {
    "example": "echo \"Hello world, i'm $npm_config_first npm_config_last\" ",
    "webpack": "webpack serve --first=’Amah’ --second=’Kwatcha’ "
  },
}
```

Then run:
`npm run example --last=Amah --first=Kwatcha`
or `npm run webpack`. 
With the first one you will get **Hello world, i'm Kwatcha Amah** 
Then in your project when we run the webpack script, you can access the arguments in your environment variables. 
`process.env.npm_config_[args_name]`
here in `process.env.npm_config_first & process.env.npm_config_last`.