teleren/devto huggingface dataset:
If Statement in Dart
Tags: dart, todayilearned, beginners, code
Published: 2019-09-15 22:15:04

***If*** is a conditional statement. It used when we just want to check the condition. Let’s see if’s syntax and some rules.

###Syntax
****

```dart
if (boolean_expression) {
    //Statements to be executed if the condition is true
}
```

* If the Boolean expression evaluates to be ***true***, then the block of code inside the if statement will be executed.
    
* If the Boolean expression evaluates to be ***false***, then the first set of code after the end of the if statement (after the closing curly brace) will be executed.


####Sample Code

```dart
void main() {
  int number = 35;
  if (number > 5) {
    print("Number is greater than 5");
  }
}

Output
Number is greater than 5
```

That’s it for if statement guys. I know if you are pro-programmer then it seems too much basics for you. But guys I create this series for beginners and I add details keeping them in mind. So if you are pro-programmers please check my other articles.

Feel free to share me if I miss something, I’ll love to learn it from you. Till then Keep Loving, Keep Coding. I’ll surely catch you up in another article.

Remember no teacher, no book, no video tutorial, or no blog can teach you everything. As one said Learning is Journey and Journey never ends. Just collect some data from here and there, read it, learn it, practice it, and try to apply it. Don’t feel hesitate that you can’t do that or you don’t know this concept or that concept. Remember every programmer was passed from the path on which you are walking right now. Remember Every Master was Once a Beginner. Work hard and Give your best.

###For More Information Please Visit Following Links
* [Fuchsia OS official site](https://fuchsia.dev/)
* [Dart official site](https://dart.dev/)
* [Flutter official site](https://flutter.dev/)

Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
If-Else Statement in Dart
Tags: dart, todayilearned, beginners, code
Published: 2019-09-15 22:14:38

If-else is a conditional statement. It used when we want to check the condition. but apart from ***if statement***, here we have ***else*** block too. Which will execute if the condition of ***if a statement*** is evaluated false?


###Syntax
****

```dart
if (boolean_expression) {
  //Statements to be executed if the condition is true
} else {
  //Statements to be executed if the condition is false
}
```

* If the Boolean expression evaluates to be ***true***, then the block of code inside the if statement will be executed.

* If the Boolean expression evaluates to be ***false***, then the else’s code block will be executed.

* Here remember that ***else*** is optional here.


####Sample Code

```dart
void main() {
  int number = 35;
  if (number > 5) {
    print("Number is greater than 5");
  } else {
    print("Number is less than 5");
 }
}

Output
Number is greater than 5
```

So now I think you get the basic idea about if-else in the dart. If-else is not much more different then other languages. If you have previous programming experience then maybe you’ll feel right at home at this moment.

Share your thoughts on the dart and if I miss something, please let me know. I’ll happy to learn it from you. Till then Keep Loving, Keep Coding. I’ll surely catch you up in another article.

Remember no teacher, no book, no video tutorial, or no blog can teach you everything. As one said Learning is Journey and Journey never ends. Just collect some data from here and there, read it, learn it, practice it, and try to apply it. Don’t feel hesitate that you can’t do that or you don’t know this concept or that concept. Remember every programmer was passed from the path on which you are walking right now. Remember Every Master was Once a Beginner. Work hard and Give your best.

###For More Information Please Visit Following Links
* [Fuchsia OS official site](https://fuchsia.dev/)
* [Dart official site](https://dart.dev/)
* [Flutter official site](https://flutter.dev/)

Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
Else if Ladder Statement in Dart
Tags: dart, todayilearned, beginners, code
Published: 2019-09-15 22:14:21

Else if ladder is a type of conditionals in the dart. Just like ***if*** and ***if-else***. We use else if ladder when we want to check multiple conditions.

###Syntax
****

```dart
if (boolean_expression) {
  //Statements to be executed if the condition is true
} else if (boolean_expression) {
  //Statements to be executed if the condition is true
} else if (boolean_expression) {
  //Statements to be executed if the condition is true
} else {
  //Statements to be executed if all the conditions are false
}
```

* If the Boolean expression evaluates to be ***true***, then the block of code inside the if statement will be executed. Otherwise, the compiler will check else-if’s condition.
    
* Once any else-if’s condition is ***true***, then all other else-if conditions ***will be skipped***. So every else-if condition must be unique.

* If all the else-if conditions evaluate to be ***false***, then the else’s code block will be executed.

* Here again, the ***else*** is optional. But if it occurs then it must be after all the else-if blocks.


####Sample Code

```dart
void main() {
  int number = 2;

  if (number == 5) {
    print("Number is 5");
  } else if (number == 1) {
    print("Number is 1");
  } else if (number == 2) {
    print("Number is 2");
  } else {
    print("None of the number is matched");
  }
}

Output
Number is 2
```

That’s all for else if ladder statement guys. Feel free to share me if I miss something. I’ll love to learn it from you. Till Then Keep Loving, Keep Coding. I’ll surely catch you up in the next article.

Remember no teacher, no book, no video tutorial, or no blog can teach you everything. As one said Learning is Journey and Journey never ends. Just collect some data from here and there, read it, learn it, practice it, and try to apply it. Don’t feel hesitate that you can’t do that or you don’t know this concept or that concept. Remember every programmer was passed from the path on which you are walking right now. Remember Every Master was Once a Beginner. Work hard and Give your best.

###For More Information Please Visit Following Links
* [Fuchsia OS official site](https://fuchsia.dev/)
* [Dart official site](https://dart.dev/)
* [Flutter official site](https://flutter.dev/)

Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
Switch case in Dart
Tags: dart, code, todayilearned, beginners
Published: 2019-09-15 22:13:55

* A ***switch*** statement is an alternative of ***else if statements*** which allows a variable to be tested for equality against a list of values.
    
* Each value is called a ***case***, and the variable being switched on is checked for each switch case.
    
* Wherever an expression value matches with a case value, the body of that case will be executed.
    
* The switch will be terminated using a ***break*** statement. Here break statement is compulsory. Otherwise, the dart analysis engine will throw a syntax error.
    
* Only for the default case break is optional. Otherwise, in all cases break is compulsory.

###Syntax
***

```dart
switch (expression) {
  case ONE:
    {
      statement(s);
    }
  break;
  
  case TWO:
    {
      statement(s);
    }
  break;
  
  default:
    {
      statement(s);
    }
}
```

####Rules of the Switch Case

* The ***default*** case is optional.
    
* All case expression must be unique.
    The case statements can include only constants. It cannot be a variable or an expression.

* The data type of the variable and the case expression must match.

* There can be any number of case statements within a switch.


####Sample Code
***

```dart
void main() {
  var grade = "A";
  
  switch (grade) {
    case "A":
      {
        print("Excellent");
      }
      break;

    case "B":
      {
        print("Good");
      }
      break;

    case "C":
      {
        print("Fair");
      }
      break;

    case "D":
      {
        print("Poor");
      }
      break;

    default:
      {
        print("Invalid choice");
      }
      break;
  }
}
```

So, guys, That’s all you need to know about switch case. Please let me know if I miss something. I’ll happy to learn from you. Till Then Keep Loving, Keep Coding. I’ll surely catch you up in the next article.

Remember no teacher, no book, no video tutorial, or no blog can teach you everything. As one said Learning is Journey and Journey never ends. Just collect some data from here and there, read it, learn it, practice it, and try to apply it. Don’t feel hesitate that you can’t do that or you don’t know this concept or that concept. Remember every programmer was passed from the path on which you are walking right now. Remember Every Master was Once a Beginner. Work hard and Give your best.

###For More Information Please Visit Following Links
* [Fuchsia OS official site](https://fuchsia.dev/)
* [Dart official site](https://dart.dev/)
* [Flutter official site](https://flutter.dev/)


Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
We are looking for a new co-founder!
Tags: cofounder
Published: 2019-09-15 22:10:28

I am setting up an all star team to create a new side project and turn it into a profitable business.

My previous startup accelerated and got funding from investors in EU and it is a fully automated Saas (minimal work required by me), so I am looking for a new venture to build and grow.
 
One of the key lessons I learned from my previous projects, is that strong businesses are a result of strong founders.

Currently the team has me (mostly technical but working on the business too), one senior dev and we are looking for one more tech founder!

We are building a solution helping mainly investor / founders and VCs explore the market based on data collection and analysis

If you are interested and you have experience fill this form => https://george835.typeform.com/to/zxMEOy
First Post Interest???
Tags: discuss, help
Published: 2019-09-15 21:46:05

I've wanted to contribute to the dev.to community for a while now, so I've come up with a couple of ideas. Would any of you guys be interested in the following projects:

1. How to create/setup your own VPN server? [AWS, GCP or Digital Ocean]

2. How to build your own adblocking DNS server? [AWS, GCP or Digital Ocean]

3. Basic Web Scraping with Python? [Python, Windows or Linux]

4. Building your own Torrenting Download/Seed Box with AWS S3 as a storage service? [AWS]

Please leave a comment below for what you'd like to see and I'll be right down there with you🛸

Thank You for the great platform.
Learn how to create a Google Cloud Platform Account
Tags: cloud, gcp, google
Published: 2019-09-18 14:22:27

---
title: Learn how to create a Google Cloud Platform Account
published: true
tags: Cloud,GCP,google
canonical_url: https://educosta.dev/blog/learn-how-to-create-a-google-cloud-platform-account/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z3nr5o8xohm6a718xjc0.jpg
---

Reading Time: 1 minute

The beauty of cloud providers is that <g id="4" data-gr-id="4">all</g> them have some kind of incentive to start to use their services. They make things simple to get-start.

The Google Cloud Platform (GCP) free tier gives you access to all[google cloud products](https://cloud.google.com/free/). You can use VM Instances, Kubernetes and other cool services, some of them are free forever. New users earn a voucher of $300 valid for 12 months for spending in GCP services. [Some services](https://cloud.google.com/free/docs/gcp-free-tier) are always free within a limited use that is enough for developers to have fun.

It´s worth take advantage of this incentive and start to learn cool stuff using your own cloud environment. In the video below I show in 1 minute how it’s easy to create a GCP account. During the registration, your credit card information will be requested to verify your identity. You won´t be charged during the free period and google also has a [modality where no credit card](https://cloud.google.com/free/) is required.


{% youtube bLXhykbdxpE%}


Once you have an account, have fun! Explore the services available and test the one you learned in online tutorials. Although you won´t be charged during the free period it’s very important that you create the habit of shut the services down after use it. I recommend to create a billing alert. This way you will be notified whether a charge occurs.

Do not forget to see [this other post](https://educosta.dev/blog/learn-how-to-create-a-billing-alert-on-google-cloud-platform/) and create a billing alert. This way you will be notified whether a charge occurs. 

The post [Learn how to create a Google Cloud Platform Account](https://educosta.dev/blog/learn-how-to-create-a-google-cloud-platform-account/) appeared first on [Be Cloud Native](https://educosta.dev). If you have any doubts or questions feel free to drop a comment here or reach me out on Twitter [@educostadev](http://twitter.com/educostadev).
Keywords in Dart
Tags: dart, code, todayilearned, beginners
Published: 2019-09-15 21:14:04

Knowledge of keywords is also important. As we cannot use it as Identifiers *(Although in some cases we can. But let’s follow the best practices)*.

Keywords have a special meaning in the language.

##Reserved Words

* Following are the reserved words in a dart. These reserved words cannot be used as identifiers.

![](https://miro.medium.com/max/711/1*fuXiAo4Xn7egoRHpWUjyyA.png)

##Contextual Keywords

* These keywords have meaning only in specific places. In other places, they are valid identifiers.

![](https://miro.medium.com/max/427/1*oVPdfcXAEIGOKftZQ4MqBw.png)


##Built-in Identifiers

* These keywords are valid identifiers in most places, but they can’t be used as class or type names, or as import prefixes.

![](https://miro.medium.com/max/716/1*RcesjDtXZ3xZCkyp7aqWOA.png)

> * **await** and **yield** are newer words added after Dart’s 1.0 release. And cannot be used as an identifier in any function body marked with async, async*, or sync*.

These all are keywords of a dart. That you need to know as a developer. Don’t use any one of these as an identifier (Although you can. Just take it as my personal tip☺️)

Feel free to let me know if I miss something. And I’ll surely catch you up in next article.

Till Then Keep Coding, Keep Loving.

Remember no teacher, no book, no video tutorial, or no blog can teach you everything. As one said Learning is Journey and Journey never ends. Just collect some data from here and there, read it, learn it, practice it, and try to apply it. Don’t feel hesitate that you can’t do that or you don’t know this concept or that concept. Remember every programmer was passed from the path on which you are walking right now. Remember Every Master was Once a Beginner. Work hard and Give your best.

###For More Information Please Visit Following Links
* [Fuchsia OS official site](https://fuchsia.dev/)
* [Dart official site](https://dart.dev/)
* [Flutter official site](https://flutter.dev/)

Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
I Link Resources to Enumeration Constants; Why You Should Too!
Tags: reason, productivity, codequality
Published: 2019-09-15 21:08:25

When I make any sort of program that references non-code files, such as images or textual data saved with the code, I use enumerations whenever possible to force a 1-to-1 relationship between files and constants. This has a number of advantages:

* Finding data your program declares, but does not use, is easier with tools that scan your code.
* Finding data your program uses, but does not declare, will stop your code from compiling!
* If you group your resources, using one enumeration per group prevents accidental cross-pollination, such as referencing an image intended for the user interface in the part of your code that displays charts.
* Your resource loaders need to require an enumeration member to load a resource; without this, none of the above benefits will be realized.
* Finally, if you ever scan your code for quality issues, having this system in place guarantees that an unused enum constant means the corresponding data file is also unused, making maintenance easier.

This applies to ANY type of program. I happen to use it for games in Java, but it works just as well in other types of programs written in other languages with enumerations.
Meus aprendizados na Campus Party Goiás
Tags: campusparty
Published: 2019-09-15 20:05:00

Entre os dias 04 e 08 de setembro ocorreu lá em Goiania mais uma das edições da Campus Party, a qual tive o prazer de poder ir.

A primeira dica que posso dar pra você que está lendo é: se tiver oportunidade, vá a uma campus party, especialmente se sua jornada está começando. Lá você encontra muita gente disposta a ensinar e passar conteúdo e diversas comunidades ensinando os mais diversos assuntos que você possa imaginar.

## O que você aprendeu lá, afinal?

Quanto a tecnologias, vi muito conteúdo sobre [Docker](https://www.docker.com/) e [Kubernetes](https://kubernetes.io/), Infra as Code, [Serverless](https://serverless.com/), [GraphQL](https://graphql.org/) e [Gatsby](gatsbyjs.org), [Algolia](https://www.algolia.com/) e diversas outras coisas. Irei discorrer um pouco sobre os que mais me chamou atenção e que tive a oportunidade de por a mão na massa enquanto aprendia.

### Docker

É um nome que costuma aparecer nas conversas, e pra mim era um conceito muito abstrato até então. Ainda tenho algumas dúvidas, mas lá eu pude aprender como começar com containers e uma breve introdução do que eles são. Fiz uma brincadeirinha e pushei no GitHub [aqui](https://github.com/vitorfreitas/docker-centos-screenfetch).

### GraphQL

Este era, e ainda é, o que mais tenho curiosidade de aprender nos últimos dias. Uma alternativa para a forma que escrevo minhas APIs hoje é algo que muda o jogo da água pro vinho. Lá pude escrever algum código server-side (que publiquei [aqui](https://github.com/vitorfreitas/graphql-yoga-mongodb)), e posteriormente integrei em uma aplicação React de teste para ver como funciona (que publiquei [aqui](https://github.com/vitorfreitas/react-graphql-playground)). Não tenho muito a dizer se não "Aprenda GraphQL!". O esforço inicial é mínimo, achei a curva de aprendizado bem interessante, pelo menos para mim que já tenho algum background. Ferramentas como o `graphql-yoga` podem ser um ótimo entry point para você que está curioso, assim como eu estava.

### Algolia

Este é uma ferramenta do tipo "search engine" muitíssimo poderosa. Na hackathon que eu e dois amigos participamos descobrimos o Algolia e foi o canal para desenvolvermos algo muito robusto com pouco esforço. Infelizmente não ganhamos, mas o conhecimento valeu a pena.

### Mas, o mais importante...

Pude ter ainda mais certeza de que eventos desse tipo são ótimos para criar um networking, que é fundamental para nós de tecnologia. Social skills são necessárias e precisam ser desenvolvidas.

Outro aprendizado importante é APRENDA OS FUNDAMENTOS. Frameworks, ferramentas e até linguagens de programação vem e vão, mas os fundamentos sempre se mantêm.

Aos que me acompanharam nessa aventura, obrigado! ([@KelvinCS](https://github.com/KelvinCS), [@caique39](https://github.com/KelvinCS))
Simple Multi Object Tracker
Tags: python, computervision, opencv, machinelearning
Published: 2019-09-15 19:41:46

This is simple multi-object tracking algorithm I wrote. I have demonstrated its use with various deep learning object detectors including:
1. YOLO object detector
2. Caffemodels: Any model from caffe model zoo should work
3. Tensorflow models: Mobilenet-SSD example available.

Code: https://github.com/adipandas/multi-object-tracker

I will like to know the feedback about this work. I plan on including more implementations using other pre-trained object detection models including faster-rcnn and masked-rcnn.