Thứ Năm, 31 tháng 1, 2019

Youtube daily Jan 31 2019

The Silk Road was the most crucial economic route in the world prior to the Age of Discovery.

Many goods were transferred via the Silk Road, but the silk itself was the primary commodity

and was in high regard throughout the Old World.

This is the story of one of the earliest examples of industrial espionage, the story of how

the Roman emperor Justinian stole the technology of silk production from China.

Our sponsor today is Wix.

Wix is a website builder that gives you the freedom to create a website designed specifically

for your needs.

Wix's advanced Editor tool allows you to format your website to your liking, offering 100s

of templates and unique apps that you can add to your site, like Media Galleries, which

allows you to showcase images and videos in a fully customizable gallery.

We were able to build our new website using a professional Wix template, reworking it

to our liking.

Our website features all things Kings & Generals, where you can see all of our YouTube videos

--and subscribe, so you never miss one!--, see our Facebook feed to catch, access our

Merchandise, and connect with us on all of our social media channels.

Wix gives us another outlet to share our content with our followers.

Thanks to our followers for their continued support of our channel and thanks to Wix for

sponsoring us!

Build your own site by clicking on the link in the description or by entering the URL

wix.com/KingsAndGenerals

Wild silk is produced by many types of caterpillar throughout temperate regions of Asia and Europe.

The Chinese industrialised this process by domesticating the mulberry silkworm sometime

around 4000 BC.

This new product was of a much higher quality and was easy to dye, so it soon became a luxury

fabric in China.

The emperors guarded the secret of its production in order to keep it a monopoly.

In the 2nd millennium BC silk started appearing in Central Asia and found its way to Iran,

India, Egypt, and Europe by the end of the 1st millennium BC, becoming a staple luxury

of ancient trade.

The Scythians and the Achaemenid dynasty were making a fortune as the middlemen, and the

latter used their famous Royal Road as a continuation of the Silk Road.

Alexander of Macedon was the first to connect the Greek world to the Silk Road directly

when he founded Alexandria Eschate, and his successors used it to their advantage.

The Romans established trade with India through Egypt in order to acquire silk, and their

economy flourished from the high customs duty, as Roman nobility were ready to pay exorbitant

prices.

However, that meant that gold was flowing out of the Roman empire and to China and Iran.

Eventually, the lack of gold became fatal for the Romans and led to the Crisis of the

Third Century and then the fall of the Western Empire.

The Germanic conquerors also liked silk, so the Eastern Roman empire turned into a middleman

re-selling silk bought from China via the Sassanid Empire.

The Silk Road was hardly protected at this point; China was going through a period of

disunity from 420 to 589 and the risky journey from China to Constantinople was taking more

than seven months, while the sea route was full of pirates and other dangers of seafaring.

At the same time, the Sassanids and the Romans were at war almost all the time, and that

was slowing down or stopping the silk trade completely.

Emperor Justinian I attempted to change this situation in order to procure silk.

Alternative routes via Lazica and Axum were tried.

The first was relatively successful, but its length was decreasing the profits, and as

this route was passing through the less civilized lands, many caravans may have been lost.

The sea route from Ethiopia to India was blocked by the Sassanid fleet.

Entire Roman merchant fleets were confiscated by the Sassanids.

That wasn't good enough for the Roman emperor.

During that period Justinian restored control over North Africa, Italy, and Spain, which

was a political victory but strained the economy of the empire even more.

According to the famous contemporary historian Procopius, two Nestorian monks approached

Justinian sometime in the 550s.

They had traveled to China, Central Asia, and the Sassanid Empire and were returning

from India and to Constantinople.

They claimed that they could solve the emperor's silk problem for a price.

Justinian promised to bestow them with gifts, and the monks started their adventure.

The sources are conflicted here, as some claim that they traveled on a ship to India and

then to China and some say that they moved via the northern route.

Even the dates are not clear, but we know that these monks spent two years on the road

between 552 and 563.

The secret of silk industry was protected by the Chinese imperial dynasties, yet the

disunity that we noted previously was probably detrimental to this practice.

We don't know if these monks received any help from the locals, but they were allowed

to see and learn the process.

Mulberry silkworms are delicate creatures, so the Chinese probably weren't expecting

them to be stolen, as the perpetrators wouldn't be able to keep them alive.

But the monks had a plan: they secretly hid either the eggs or the larvae of the silkworms

in their canes and also asked the locals to gift them the mulberry bushes, that the worms

ate.

The monks also probably had help in Sogdiana, the Northern Caucasus and Crimea, as many

natives converted to Nestorianism in the 5th century.

One thing is clear: by the time they returned to Constantinople, there were enough mulberry

bushes there for the silkworms to eat and procreate, so the whole affair was well planned.

Justinian and his successor Justin II created silk industry centers in Berytus, Prusa and

Morea.

Although Chinese silk was still considered superior due to its quality, the Chinese and

Sassanid silk monopoly was broken and the Roman emperors had a new source of revenue.

The silk trade became central to the economic dominance of Constantinople and the rise of

the Italian merchant republics.

One of the earliest cases of industrial espionage was a success.

We will make more videos about economics and history, so make sure you are subscribed to

our channel and have pressed the alarm bell to learn more.

These videos are made possible by our brilliant Patrons over at Patreon and our Youtube sponsors.

Visit our patreon or press the sponsorship button to learn more about the perks.

This is the Kings and Generals channel, and we will catch you on the next one.

For more infomation >> How the Romans Stole Silk Production Secrets from China - Duration: 7:21.

-------------------------------------------

20 Laughs For 20 Years | FAMILY GUY - Duration: 1:52.

For more infomation >> 20 Laughs For 20 Years | FAMILY GUY - Duration: 1:52.

-------------------------------------------

Why It's Useful to Think of Yourself As a Sinner - Duration: 4:57.

For more infomation >> Why It's Useful to Think of Yourself As a Sinner - Duration: 4:57.

-------------------------------------------

আফগানিস্তানের জাতীয় দলের খেলোয়ারদের সুন্দরি বউদের দেখতে কেমন - ২০১৯ ! Afghanistan Cricketers - Duration: 3:13.

For more infomation >> আফগানিস্তানের জাতীয় দলের খেলোয়ারদের সুন্দরি বউদের দেখতে কেমন - ২০১৯ ! Afghanistan Cricketers - Duration: 3:13.

-------------------------------------------

El horóscopo de hoy, 31 de enero de 2019, por el astrólogo Mario Vannucci | Un Nuevo Día | Telemundo - Duration: 3:28.

For more infomation >> El horóscopo de hoy, 31 de enero de 2019, por el astrólogo Mario Vannucci | Un Nuevo Día | Telemundo - Duration: 3:28.

-------------------------------------------

¡Le dan el último adiós a Fernando Gaitán! | Un Nuevo Día | Telemundo - Duration: 2:59.

For more infomation >> ¡Le dan el último adiós a Fernando Gaitán! | Un Nuevo Día | Telemundo - Duration: 2:59.

-------------------------------------------

Preocupación en todo el país por la ola de frío extremo | Un Nuevo Día | Telemundo - Duration: 3:48.

For more infomation >> Preocupación en todo el país por la ola de frío extremo | Un Nuevo Día | Telemundo - Duration: 3:48.

-------------------------------------------

قاعدة وطريقة واحدة تسهل عليك شراء كل ما تريدين من ملابس واثات🤩🤩🤩المختصر المفيد ..المينيماليزم - Duration: 12:41.

For more infomation >> قاعدة وطريقة واحدة تسهل عليك شراء كل ما تريدين من ملابس واثات🤩🤩🤩المختصر المفيد ..المينيماليزم - Duration: 12:41.

-------------------------------------------

The squad number Denis Suarez will wear at Arsenal after joining from Barcelona - Duration: 2:58.

 It's official, Denis Suarez is an Arsenal player.  Well, at least until the end of the season as his loan move from La Liga giants Barcelona was confirmed just a few minutes ago on the Gunners' website and he becomes the sixth signing of the Unai Emery era

 The Spaniard played under the Arsenal head coach at Sevilla a couple of seasons ago and was an Europa League winner under the guidance of his compatriot

 Speaking about securing Suarez on a loan deal, Emery outlined exactly what supporters can expect from the attacking midfielder

 "We are very happy that Denis Suarez is joining us," Emery said. "He is a player we know well and I have worked with him at Sevilla

 "He brings us quality and options in many different attacking positions, so he'll be able to help the team

"  The Gunners have suffered numerous injury set-backs already this season and Danny Welbeck's broken ankle coupled with Henrikh Mkhitaryan's foot problem as left them a little short in attacking areas

 Suarez can operate on the flanks or through the middle so will be seen as a welcome addition

 At one stage this deal looked like it wasn't going to happen as Arsenal and Barcelona couldn't find an agreement which suited both parties, but in the end Suarez got his wish and could now make his Premier League debut away at Manchester City - his former club - at the weekend

Picture special: Denis Suarez's first day as an Arsenal player View gallery  Should he do so then it will be in the no

22 shirt as his squad number has now been revealed.  Last worn by Jeff Reine-Adelaide prior to leaving on a permanent basis last summer, it's not a shirt number which has been in use all that often since Gael Clichy's departure in 2011 as Francis Coquelin wore it for one season before Yaya Sanogo took it on from 2013 until 2017

 Hopefully Suarez has better luck in that number than some of his .  Keep up to date with the latest news, features and exclusives from football

london via the free football.london app for iPhone and Android .  Available to download from the App Store and Google Play

For more infomation >> The squad number Denis Suarez will wear at Arsenal after joining from Barcelona - Duration: 2:58.

-------------------------------------------

¡Karely y Joel Fridman ganaron la Medalla de Salvación! | Un Nuevo Día | Telemundo - Duration: 6:22.

For more infomation >> ¡Karely y Joel Fridman ganaron la Medalla de Salvación! | Un Nuevo Día | Telemundo - Duration: 6:22.

-------------------------------------------

Top 10 Easy Chocolate Cake Decorating Ideas | Oddly Satisfying Cake Videos | Cakes Style 2019 - Duration: 10:55.

Thank you for watching! Hope you enjoy & like it!

For more infomation >> Top 10 Easy Chocolate Cake Decorating Ideas | Oddly Satisfying Cake Videos | Cakes Style 2019 - Duration: 10:55.

-------------------------------------------

Pinterest Marketing for Beginners | Part 2 | Optimising Your Profile for SEO - Duration: 9:00.

Pinterest is a great source of traffic to your website.

But when it comes to SEO, you're not quite sure what you have to do in order to rank

higher in those searches.

Well, I'm about to show you exactly how to optimize your profile so that you can drive

heaps of new traffic to your website daily.

Before we jump into the video, I just wanted to quickly let you guys know about my awesome

new ebook, the Pinterest SEO Mastery Workbook.

If you just can't seem to wrap your head around this whole platform, and know it is a crucial

part of getting traffic to your website, then this book is for you.

Inside this value-packed ebook, I've included step-by-step tutorials, cheat sheets, worksheets,

and checklist to ensure you get the most out of it and start seeing results within two

weeks.

So before you start scrolling around, aimlessly on blogs and videos, trying to figure out

what to do next, grab the SEO Mastery Workbook and stop wondering how the pros do it.

Use code, NEWBIE10 for an exclusive 10% off today.

Hey guys, welcome back to Explore Horizons.

If you're new here, my name is Cassie, and on this channel, we talked about all things

social media marketing, blogging, and online business strategies.

So that sounds like something you want to learn more about, then don't forget to hit

that subscribe button and the little bell icon so you're notified of when I upload more

videos just like this.

So in today's video, like I said, we're going to be discussing how to optimize your profile.

And I mean your entire profile with boards and pins included on Pinterest.

So in today's video, we're going to be talking about optimization.

And we're going to be talking about your whole profile in general as well.

If you didn't see part one, I will link that down below also in a little card at the top

just in case if you missed it, because that one is crucial to learning how you're going

to optimize your profile in those searches, and how to optimize your profile in general,

because you need to know how the algorithms work in order to know what you're actually

optimizing for.

So the first thing that we're going to optimize is your profile.

And this is the first point that people usually see when they click onto a pin to see your

actual profile.

So to edit this, you need to go up to the settings, scroll down until you see the profile

section.

For your business name, you can only have three characters.

I did mine about a year ago, so this was before they actually bought in the 30 characters

rule.

So only put in either your business name or your actual name if your business name is

your name.

And if you can, squeeze in one or two little niche words, and niche words are basically

just like social media because I talk about social media marketing, or if you do health

recipes, then talk about then you want to add in recipes, or healthy living, or something

like that.

Underneath that, you want to upload a profile picture.

And this can either be your ... a picture of you if you are the face of your brand and

your business.

Or you can upload a logo if it's usually sometimes if it's a team, it's easier to just upload

a logo, but it makes a lot more relatable if it's just a photo of you.

Now the next one underneath that is your URL, and this is really good for when people want

to search for you like they would on site Instagram, for example, if they want to find

where you are, or who you are, or if you have a Pinterest account, then nine times out of

10, they'll probably type in your actual business name or your name to try and find you.

So I always put Explore Horizons for everything because that is my brand and that is my business

name.

I try to keep it like that as in the future, I hope to open up other things and one of

those is hopefully to be under my own name.

So I like to make my business name something completely different, but that was totally

up to you and you can use whatever you want in this.

So in the about me section, you only have 160 characters to quickly write down a few

points about yourself.

So I always try to use a template of what you do, who you do it for, and what's your

best offer.

Now you don't have to add in, they offer at the end because you can't actually add in

a clickable link.

It's just a URL that people will have to type in themselves.

And nine out of that 10, no one actually does it.

And I used to use bitly.com to link shorten it so the characters aren't so long, but I

found from the analytics of that no one was really clicking on to it.

So I wouldn't really bother too much with it.

You can just say a few little keywords and niche words about what you are about and what

your business is about.

So next, let's talk about boards.

Now, some people get a little bit crazy a little bit excited when they start naming

their boards.

For example, some people will name them yummy recipes, or things that I like to eat.

And this isn't really great for your SEO because when people come on to Pinterest, they're

not going to be searching for things that I like to eat.

Or sometimes they might add in yummy recipes, but people in general mostly search for specific

things.

For example, how to make a apple pie, or how to live with a vegan diet, for example.

Those specific things you want to make specific boards for, and you want to name them accordingly.

Also, in the description of your board, I don't think there is a limit.

There probably is, I just haven't reached the limit, but you can also do the same thing

that you would in your profile description in your board description.

So say some things about the key ... some keywords about the board, what it's about,

who it's for, and what you can expect from this board.

Now this one I try to make sure that everyone has it.

When I was a VA, I would always make sure that my clients had a blog board.

And basically what that is, is just a collection of all your pins that you have put out there

on Pinterest.

And this means pins that come from my website or my clients website.

There is a strategy that is coming out in part three that you will learn more about.

So searching for the next one, but I'll talk a bit more in depth about that later.

But you always want to have a blog board that people can come and see, and get all of your

ideas, and get a feel of what your whole brand, and what your whole business is about.

Plus, when you're making boards on Pinterest, not all of them are going to have every single

one of your pins.

There's only going to be certain, like if you have vegan recipes, and then you have

meat recipes, you're not going to have them both on the same board on all of your boards

because you generally have about five to 10 boards, even when you're just starting out,

and not all of them are going to be so broad, you're going to have a few that are broad,

and some that are very niche-specific to, say vegans, or meat eaters.

So you want to have a collection of different pins from other people and a few from your

own blog.

So lastly, is your pins.

And this isn't so much part of your profile as it is your strategy for SEO.

So I will talk a little bit more about it in the next video, in part three, and a bit

more in part four, but for now, you want to basically always add in a description and

try to sell your pin.

Don't try to just add in a few keywords and keyword stuff because Pinterest does not like

keyword stuffing.

And keyword stuffing for example is just people saying healthy recipes, vegan recipes, budget

recipes, blah, blah, blah.

If you keyword stuff Pinterest actually doesn't like it, and it will penalize your pin.

So try to keep your pins well described.

I tend to just grab a quick preview of what my blog post is about and add that into my

pin description, and you're good to go.

So that concludes the end of today's video.

So go out there and start optimizing your profiles.

In the next video, I will be talking about pinning strategies.

So that one is a pretty crucial one to your actual overall strategy.

So make sure you stay tuned for that one.

Don't forget to subscribe and hit the bell icon, so you're notified when I upload that

one.

Thank you so much for watching, and give this video a thumbs up if you found it helpful,

and I will see you in the next video.

Bye.

For more infomation >> Pinterest Marketing for Beginners | Part 2 | Optimising Your Profile for SEO - Duration: 9:00.

-------------------------------------------

Coloring 8 Ladybug | Painting for toddlers and drawing for kids | Amazing Kids Coloring Page - Duration: 3:13.

coloring 8 ladybug

For more infomation >> Coloring 8 Ladybug | Painting for toddlers and drawing for kids | Amazing Kids Coloring Page - Duration: 3:13.

-------------------------------------------

"Rakan-rakan tak percaya tapi saya kata ini betul-betul punya... betul-betul Bossku!" - Duration: 5:18.

 BARU-baru ini kecoh mengenai sijil kelahiran bayi lelaki yang kononnya didaftarkan dengan nama 'Muhammad Bossku', sehingga mencetuskan pelbagai reaksi

 Semuanya gara-gara penggunaan nama 'Bossku' yang kini semakin meniti di bibir masyarakat terutama netizen, malahan menjadi trend di laman sosial

 ARTIKEL BERKAITAN:   Terbaharu, tular di media sosial mengenai sebuah kedai yang ketika itu diumumkan bakal dibuka turut menggunakan nama Bossku menyebabkan ramai yang tertanya-tanya mengenai kesahihan nama tersebut, atau sekadar gimik untuk menarik perhatian

 Namun pembukaan kedai yang baru beroperasi pada Khamis (31 Januari 2019) di Puncak Jalil di Seri Kembangan, Selangor akhirnya menjawab teka-teki mengenai penggunaan nama Bossku, iaitu Kedai Kopi Bossku

 Pemilik restoran, Muhamad Aswad Abdul Rahim, 38, berkata, nama Bossku itu telah mula digunakan bagi gerai kecil menjual kepak ayam bakar yang dibukanya bersama keluarga sejak Oktober tahun lalu di sebuah restoran berdekatan

 Anak kelahiran Kampung Baharu, Kuala Lumpur ini menjelaskan bahawa nama Bossku digunakan tahun lalu kerana kepak ayam itu merupakan resepi suami adik ipar isterinya berasal dari Sarawak yang juga pernah bekerja di Labuan

 "Penggunaan nama Bossku telah lama digunakan adik ipar di Sabah dan Sarawak. Ini termasuk ibu mertua yang juga berasal dari Labuan

Nama Bossku sudah sebati dalam kehidupan mereka.  "Pada awalnya nak letak nama Lengkuas tapi bila buat carian di Google, dah banyak nama Lengkuas

Jadi, ahli keluarga kata kenapa tidak kekalkan saja nama Bossku untuk restoran baharu ini," katanya ketika dihubungi pada Khamis

 Muhamad Aswad yang bekerja dalam bidang hartanah selama lebih 15 tahun bagaimanapun menyedari nama Bossku semakin mendapat tempat dalam kalangan masyarakat hari ini, termasuk bekas Perdana Menteri, Datuk Seri Najib Tun Razak

 Justeru, bapa tiga anak itu menyifatkan penggunaan nama berkenaan sebagai tuah untuk pembukaan restoran yang dirancangnya sejak dua tahun lalu

 "Masa saya promosi kat kawan-kawan yang kedai ni akan dibuka, mereka macam tak percaya, sampai tanya betul ke atau sekadar bergurau

Tapi saya kata ini betul-betul punya, betul-betul Bossku.  "Bila papan tanda kedai dinaikkan dua hari lalu, kawan-kawan percaya dan mula panggil saya Bossku dalam grup sembang WhatsApp

Bossku. Bossku, dah melekat nama tu," katanya secara berseloroh.  Muhamad Aswad berkata, penggunaan nama kedai tersebut diluluskan oleh Dewan Bahasa dan Pustaka (DBP), sebelum memohon lesen papan tanda daripada pihak berkuasa tempatan (PBT), sambil menambah dia mendapat kelulusan seterusnya daripada Majlis Perbandaran Subang Jaya (MPSJ)

 Mengenai Kedai Kopi Bossku yang dibuka setiap hari dari pukul 9 pagi hingga 10 malam, Muhamad Aswad berkata, ia merupakan  permulaan untuk ahli keluarganya mencari sumber pendapatan ekoran keadaan ekonomi tidak menentu ketika ini

 "Memang nak buat untuk bisnes keluarga sebab nak bantu ahli keluarga jana pendapatan terutama mereka yang menganggur, ada yang pernah dibuang kerja dan ada yang sukar untuk dapat kerja

 "Tambahan pula, keluarga di sebelah isteri memang pandai masak. Dengan kepakaran masing-masing, kami boleh buka restoran berkonsepkan , masakan cara kampung, pengalaman pelanggan macam makan di rumah," katanya

 Sebelum ini tular mengenai sijil kelahiran yang didaftarkan nama Muhammad Bossku di media sosial, tetapi kemudian bapa bayi itu tampil mendedahkan kepada bahawa ia sebenarnya disunting sebagai bahan guruan buat isterinya

 Hanya mahu dikenali sebagai Dean Ahmad, dia memberitahu nama anaknya yang lahir pada 12 Januari itu adalah Umar Al-Faqeh, sambil berkongsi gambar sijil kelahiran dengan nama sebenar

Tags/Kata Kunci: Bossku , Muhammad Bossku , Muhamad Aswad Abdul Rahim , Kedai Kopi Bossku

For more infomation >> "Rakan-rakan tak percaya tapi saya kata ini betul-betul punya... betul-betul Bossku!" - Duration: 5:18.

-------------------------------------------

How to Download Windows 10 Pro 1809 ISO 64/32 Bit Activated 2019 - Duration: 3:59.

How to Download Windows 10 Pro 1809 ISO 64/32 Bit Activated 2019

For more infomation >> How to Download Windows 10 Pro 1809 ISO 64/32 Bit Activated 2019 - Duration: 3:59.

-------------------------------------------

Can Denis Suarez play against Manchester City after completing Arsenal transfer? - Duration: 3:20.

 After weeks of negotiations, Arsenal have finally completed the loan signing of Denis Suarez from Barcelona

 The 25-year-old arrived in England on Wednesday to undergo his medical and the move was confirmed just after 12 noon on deadline day after all the necessary paperwork was completed

 Suarez, who signed a contract extension until 2021 with Barcelona before joining Arsenal, will wear the No

22 shirt at the Emirates.  His loan deal has an option which will allow the Gunners to buy him at the end of the season for around £18 million, should they wish to do so

 The delay in getting the deal done was the Barcelona wanted that option to be compulsory, something Arsenal refused to agree to

 After completing his move, Suarez, said: "I'm very pleased to be here and to be joining Arsenal

I've been pushing hard to come here. I'm finally here now and I'm really pleased

Picture special: Denis Suarez's first day as an Arsenal player View gallery  "I've come here to play as much as possible and try to help the team qualify for the Champions League

I'd like to win the Europa League with Arsenal too - why not? It's a trophy I won under Unai Emery at Sevilla and I'd love to win it again here

"  On announcing the arrival of Suarez, Arsenal stated that the loan deal is 'subject to the completion of regulatory processes'

 That is not expected to take a significant amount of time, however, and Suarez will be available to face Manchester City, where he spent two years as a youth player between 2011 and 2013, on Sunday at the Etihad

 The capture of Suarez will come as a big boost for Unai Emery, who worked with the player when he had him on loan at Sevilla during the 2014/15 season

 "We are very happy that Denis Suarez is joining us," said Arsenal's head coach. "He is a player we know well and I have worked with him at Sevilla

 "He brings us quality and options in many different attacking positions, so he'll be able to help the team

" Keep up to date with the latest news, features and exclusives from football.london via the free football

london app for iPhone and Android. Available to download from the App Store and Google Play

For more infomation >> Can Denis Suarez play against Manchester City after completing Arsenal transfer? - Duration: 3:20.

-------------------------------------------

Remedios Caseros Para La Gota, Como Bajar El Acido Urico Alto, Acido Urico Sintomas, Acido Urico Alt - Duration: 5:40.

For more infomation >> Remedios Caseros Para La Gota, Como Bajar El Acido Urico Alto, Acido Urico Sintomas, Acido Urico Alt - Duration: 5:40.

-------------------------------------------

Quick Start Guide to C# - foreach Loop - Duration: 8:43.

Hi and welcome again

My name is Pirzada Rashid

In this video, I'm gonna show you how to work with foreach loop in C#.

Before you start

I want you to open up this URL

Whatever code examples, I use in this video are written step by step here

Code examples have a link to quickly test it

and see the results in an online editor without writing a single word

I will also leave all the links at the end and in the description of this video

Let's get started

foreach loop

provides simple syntax to cycle through all the elements in the array or collection

unless you explicitly end the loop with the break command

This is the structure of a loop

Please pay attention

foreach loop starts with the foreach keyword

followed by round brackets ( ).

type is used to the declare data-type of the variable

You can also use var keyword here

which instructs the compiler

to infer the type of the item

from the type of the collection

Item is the looping variable used inside the loop body

into which next element is automatically acquired from this collection on each iteration

You can name the item whatever you like

but the data-type must match

with the type of elements in the collection

That means

if the elements in the collection are integer type

the type of item must be integer

Collection is the array or list with the values

over which you want to iterate

And finally

this is the block of code that executes for each iteration of the loop

multiple times

Let's see the execution order of a loop

This is the list or array of elements

over which you want to iterate

Then the element is received from the collection one by one

on each iteration.

body executes

This repeats multiple times until all the elements in the collection are assigned

That means

if there are 3 elements in the collection

loop will iterate 3 times

Let me quickly code a basic foreach loop

than I explain it to you

Well

I have declared and initialized this array

which is of int type

and assigned an initial value of 1, 2, 3, and 4

Then there is foreach loop

Here, I have declared an int variable named value that is used for looping

Why I have used int type?

This is because our array is of integer type

and each item in the array is integer value

Each time the loop runs

an element from this array

is assigned to this variable

For example

the first time loop runs

the number 1 is assigned to the value variable

It then executes the code within the body of foreach loop

Where this statement

simply prints out the number 1

which is the value of this variable

In the second iteration

the number 2 is assigned and printed out

This continues

until all the elements in the array have been printed

This means

that the code inside foreach loop is called as many times as there are elements in integerValues array

If this contains 4 elements

the code inside the loop block will execute 4 times

Click RUN

Here is the output

You can also use var keyword here

instead of explicit data-type like this

Now the compiler determines and assigns the most appropriate data-type to the value variable

just by looking at the type of your array

Same output

If you have more than one statement

you must enclose the statements in opening and closing braces like this

Of course, you can use braces with the single statement as well

What if you want to terminate the loop when a certain condition meets?

In this case

you need to use break statement

also called jump statement

break keyword causes the loop to exit

before it completes the iterations

This is done from the loop body, during an iteration

The control is then passed to the first statement immediately following the loop

Let me add break statement

Click RUN

This loop writes out the numbers 1 and 2

but when value variable reaches 3

this condition evaluates to true

because 3 is equal to 3

Then the break keyword

causes the loop to exit, and resumes from here

, immediately after the loop

Skipped the value 3 and 4

Another jump statement that is commonly used is the continue statement

With the use of continue statement

the rest of the current iteration is skipped after continue keyword

and immediately initiates the execution of the next iteration

In other words, loop starts over again

Let me change break to continue statement first

Click RUN

When the value variable reaches 3

then this condition evaluates to true

The continue keyword

than causes the loop to skip rest of the current iteration and initiates the execution of the next iteration

All the numbers will be printed out except one

which is 3

This is due to the continue statement

because it skipped rest of loop body

For more infomation >> Quick Start Guide to C# - foreach Loop - Duration: 8:43.

-------------------------------------------

TrafficZion 2 Review & Bonus Offer - Watch TrafficZion 2 Review & Get 100+ HQ Bonuses - Duration: 10:21.

Hey, Sam here.

Let's talk about TrafficZion 2

Just a few seconds to check my huge list of high quality bonuses included in this offer.

Let's be honest here It doesn't matter what offers or services

you're promoting Without traffic, you won't see results

TrafficZion 2 is a simple-to-setup training method and software that you can use to start

getting FREE traffic on complete autopilot, from a free platform for any niche.

The traffic comes from a legit traffic source.

Setup time takes only 60 seconds.

Find your targeted audience and watch your traffic increase with leads, follows, engagement

and views.

IT WORKS IN 3 SIMPLE STEPS

Step1: Set Up The TrafficZion 2 Method

Install TrafficZion 2 on your Mac or PC.

Connect your website to your TrafficZion 2 software, as they teach you inside the TrafficZion 2 method.

Step2: Search For Your Niche Add your tags which are your keywords in your niche.

Then click on "suggest tags", more keywords will be added to your campaign.

TrafficZion 2 will find articles and blog posts that contains these specific keywords.

Step3: Get Targeted Traffic

TrafficZion 2 will interact with those websites by following and liking.

They will click back on your profile to check who you are, and they come straight to your website.

With the tribe feature you can add your domain, the app will get the articles that

you created and will bring other members to interact.

This will help your ranking.

Không có nhận xét nào:

Đăng nhận xét