teleren/devto huggingface dataset:
You don't always need “else” in your "if"
Tags: javascript, codenewbie, codequality
Published: 2020-05-22 11:37:42

Hey guys!

The most basic stuff you learned about programming, I think, is `if…else`. Am I right?

What if I say you don’t always need the `else`? 
There are cases where the `else` is unnecessary, and your code becomes more readable without it!

Let’s see an example — let’s say you have a function like this:
```javascript
function buttonColor(active) {
  if (active) {
    return 'orange'
  } else {
    return 'blue'
  }
}
```

So, if the parameter active is true it will return orange, otherwise it will return blue.

This is a case where you don’t need the `else`, let’s see the same function without it:
```javascript
function buttonColor(active) {
  if (active) {
    return 'orange'
  }
  
  return 'blue'
}
```

Even if the previous one is easy to understand, it looks easier now, right?

So, if you have an `if…else` and you don’t check anything on the `else`, there is no reason to keep the `else` and return it instead.

I don’t know you, but, I have the feeling that with `if…else` I have to kinda “re-read” it to understand, while without `else` it’s more clear what is happening there.

**That’s all, folks!**
I hope you enjoy this quick tip!
Playing with the Amethyst Game Engine
Tags: gamedev, rust
Published: 2020-05-22 11:36:46

I realized today I had never tried game development, so I figured I would stay up too late and give it a go.

Entity-Component-System is an architectural pattern used in game development.  

Every object in the game is an entity, which is made up of components that contain state.  

Systems create the behavior by manipulating an entity's components.

That's my understanding anyway!  

In this stream, I'm learning to build a pong-like game using the game engine Amethyst (https://amethyst.rs).  Pretty great docs for beginners!  

Built with Rust of course. :) 
{% youtube QbWMf-rtLPM %}
""Artificial Intellegence""
Tags: com
Published: 2020-05-22 10:57:45

Artificial intelligence (AI) is wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. AI is an interdisciplinary science with multiple approaches, but advancements in machine learning and deep learning are creating a paradigm shift in virtually every sector of the tech industry. 

Artificial intelligence generally falls under two broad categories: 

Narrow AI: Sometimes referred to as "Weak AI," this kind of artificial intelligence operates within a limited context and is a simulation of human intelligence. Narrow AI is often focused on performing a single task extremely well and while these machines may seem intelligent, they are operating under far more constraints and limitations than even the most basic human intelligence. 



HOW IS AI USED ?


 
Artificial General Intelligence (AGI): AGI, sometimes referred to as "Strong AI," is the kind of artificial intelligence we see in the movies, like the robots from Westworld or Data from Star Trek: The Next Generation. AGI is a machine with general intelligence and, much like a human being, it can apply that intelligence to solve any problem. 


 Examples of AI 

1) Smart assistants (like Siri and Alexa)
2) Disease mapping and prediction tools
3) Manufacturing and drone robots
Optimized, personalized healthcare treatment recommendations
4) Conversational bots for marketing and customer service
5) Robo-advisors for stock trading
Spam filters on email
6) Social media monitoring tools for dangerous content or false news
7) Song or TV show recommendations from Spotify and Netflix
North America Vertical Farming Market to Witness 21.9% CAGR During 2018–2024
Published: 2020-05-22 11:31:21

The vertical farming market in North America was pegged at USD 703.0 million in 2017 and is expected to reach USD 2,802.5 million by 2024. The vertical farming market is poised to grow at a CAGR of 21.9% during the forecast period (2018–2024).

The increasing demand for organic products and the increasing adoption of techniques that are conducive for the climate is the primary factor aiding towards the growth of the vertical farming market in North America. The use of this technique requires less water than the traditional vertical farms and as the result, it greatly saves the energy requirement for the manufacturers that are contributing towards the enhanced demand for the vertical farming market in the region. The demand for organic products in the region is increasing at a rapid pace owing to the nutritional content available in those products. The content of antioxidants is greater in the organic products than those available in the conservatively produced crops.

Read Full Research Report Description at: https://www.vynzresearch.com/semiconductor-electronics/north-america-vertical-farming-market

Based on offering, the North American vertical farming market is categorized into hardware and software. The hardware type is further segmented into lighting, hydroponics components, climate control, and sensors. Vertical farming comprises two structures building-based vertical farms and shipping container vertical farms. The technique is largely used for growing several crops such as lettuce, spinach, tomato, and others in North America.

The U.S. accounted for the major share in the North American vertical farming market in 2017 as the country is creating spaces for building-based vertical farms and it is helping the manufacturers to satisfy the increasing demand of the consumers for food. Moreover, vertical farming is enabling the country to fulfill the required demands of the consumers as commercial growers are developing vertical farms in this region and will continue to do so shortly.

In terms of hardware type, lighting is generating the largest revenue for the vertical farming market in this region. Lighting is expected to grow at a CAGR of 21.5% during 2018– 2024. On the contrary, lettuce accounted for the largest share in the North American vertical farming market.

U.S. is expected to contribute the largest revenue of USD 1,184.6 million by 2024 and growing at a CAGR of 22.5% during 2018–2024 in the vertical farming market in this region.

AeroFarms, Gotham Greens, Bright Farms, Vertical Harvest, Home Town Farms, Infinite Harvest, Lufa Farms, Beijing IEDA Protected Horticulture, Farmed Here, Garden Fresh Farms, Metro Farms, Green Sense Farms, Indoor Harvest, Sky Vegetables, Sundrop Farms, and Ecopia Farms are some of the major players operating in the vertical farming market in North America.

Contact Us:

VynZ Research
Call: +91-996-028-8381
Toll-Free (U.S. and Canada): +1-888-253-3960
Email: enquiry@vynzresearch.com
Babel
Tags: octograd2020
Published: 2020-05-22 11:26:22

**Babel:** *A localized news application for everyone.*


- [Demo Link](https://user-images.githubusercontent.com/39438054/82660473-101aed80-9c48-11ea-8414-3f1cd05a3c91.gif)
 

- [Link to Code](https://github.com/aditchanchal/Babel)

**About**
*Babel is a news application that uses Twitter API to get tweets generated in a location provided by the user. 
The ML models (LDA, Topic modelling ,etc) then extracts important tweets which best describes the scenario and displays them as news in the UI.*

**Tech Stack**
* Frontend:
  * ReactJS, HTML, CSS
* Backend:
  * Python(Flask) - for APIs
* Machine Learning:
  * Pandas, Sci-kit, TextBlob, Gensim
* APIs:
  * Twitter API 
* Other Tools:
  * Web-scraping(BeautifulSoup4) 
  * Cron for automation

**Story**
*Developed this end-to-end application in 24 hrs of "HCL AI Hackathon" and secured 3rd position.*
Node Vs Deno
Tags: node, deno, javascript, typescript
Published: 2020-05-22 11:12:46

##Node vs Deno

###Similarities
- Developed by a single person( Ryan Dahl)
- Both are JavaScript runtime
- Both help in developing applications
- Both support Typescript
- Both uses chrome v8 engine 

###Differences
- Node is written in C++, deno is using Rust language.
- Node uses npm and imports libraries locally, deno uses urls for module usage
- Node doesn't have built Typescript support, deno has
- Node was launched in 2009 and Deno launched in 2020.


#Funfact: “Deno” is actually an anagram for “Node”.
Looking for your next UI framework? Look no more!
Tags: ux, design, webdev
Published: 2020-05-22 10:56:58

Hi There!

Are you starting to build your next project and are confused about which UI library to use?

Then let me share my 5 cents of knowledge with you.

I came across this framework called [Ant Design](https://ant.design/) a few months back and since then, I have been in awe of the capabilities it has to offer. Later on, I found out that it was not a newbie in town and a lot of big players like Alibaba, Tencent, Baidu were already using Ant Design for their user interfaces. 

What I liked most about the framework was that the design language focussed more on a **whitespace-centric**, **clean**, **minimalistic** look and feel.

While Ant Design is strongly opinionated with respect to its design principles, following them with due diligence leads to the development of visually aesthetic user interfaces. 

All the commonly used artifacts used during web development like **typography**, **Icons**, **Layout** are provided by the framework along with the necessary source code to use those in your projects. Not only are the basic components like **textbox**, **checkbox**, **radio-buttons** are provided, but in addition to that, complex, composite components are also present, which can be tweaked as per convenience by passing the relevant props.  

The design library was written from the beginning with React support in mind so all the components provided are 'react-first'. But, there is also community effort in place to create **vue** and **angular** equivalents. 

If you are curious to know more details about the library, check out this [blog post](https://blog.logrocket.com/introduction-to-ant-design/) written by me for the Logrocket blog some time back, use it in your project and let me know what you think about the library. 

Cheers!
Kerbit: The React PWA powered by Machine Learning
Tags: 2020devgrad, octograd2020, showdev, womanintech
Published: 2020-05-22 10:47:58

---
title: Kerbit: The React PWA powered by Machine Learning
published: true
description: I just graduated from The University of Leeds, and this was my final project.
tags: 2020devgrad, octograd2020, showdev, womanintech
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/jwnibke2eayniaqjc1b5.png
---

## Update

This project was chosen out of thousands as one of the top 5 projects to be highlighted on the Git Remote Graduation Live Stream! You can check out the stream (and my twitter) here!

{% twitter 1272583868776939523 %}

## About me!

Hi, I'm Sam! I've just completed my final year at The University of Leeds studying Digital Media, I was first exposed to coding and development during my first year in an Interface Design module and have been hooked ever since! 

I'm not usually one for sharing my projects because I'm a bit of a perfectionist/eternal worrier so I always see the fault in what I do but I'm trying to be more proud of my creations so here goes! (Be gentle)


## My Final Project

Kerbit is a Progressive Web App built using React, that uses a custom trained image classification model, made using Google AutoML, to recognise recyclable materials and lets users know if they can be recycled and where they can be recycled. It can recognise household recyclables like cardboard and glasses, larger items like kitchen electrics and furniture, and more!

It is modelled for use in the UK city Leeds so the map data and recycling info is accurate for that location.

## Demo Link

Head over to [Kerbit.app](https://kerbit.app/) to check the project out! You can view the website on desktop and if you are on a supported mobile device, you will be prompted to download the PWA!
 
If your device isn't supported or you just want to see Kerbit in action check out some demo screen recordings I've done!

{% youtube 1K13JV5VzQU %}

## Link to Code

Check out the code here!
{% github https://github.com/samroebuck/kerbit %}


## How I built it (what's the stack? did I run into issues or discover something new along the way?)

Tech used
- React
- SCSS
- GoogleAutoML
- Netlify


## Additional Thoughts / Feelings / Stories

Coming from this I have huge respect for people that do the data collection and training in machine learning because wow you have to do a lot! In the end, the image classification isn't as accurate as I would have hoped it would be at the end but I'm proud of what I managed to achieve by myself coming into these technologies as a relative beginner.
Hints For Engineers During Outages
Tags: sre
Published: 2020-05-22 10:43:03

* Don't make jokes in a logged channel. *Every* written record will be read by someone with more clout and less sense of humor than you.
* Don't feel like you have to offer an opinion if you weren't asked for one. Its okay to look and listen before saying anything. 
* Be *high tea with the Queen* level courteous. Angry people make **bad** decisions, and people can stay mad for a long time.
* Excuse yourself from small outage calls if you need to attend to something. Excuse yourself to your direct manager for large outage calls.
* Management has an agenda you don't know about, avoid getting into territory battles above your paygrade.
Bridge Health Monitoring System using IoT 🌉
Tags: octograd2020, iot, python, pwa
Published: 2020-05-22 10:23:03

In this post, I'll be describing about the Undergraduate Capstone Project that I created along with my teammates Viraj Shetty @virajvshetty and Ajinkya Tungare @ajinkyatungare24. 

Infrastructures are subjected to constant corrosion making them vulnerable to degradation. Of all different types of structures, bridges are the most vulnerable as they are exposed to various natural factors and if the corrosion is not checked, it can lead to loss of Human Life and property. An IoT based Structural Health Monitoring System can allow us to collect real-time information about different parameters from the bridge and prevent a disaster from happening.


#Image Analysis using Python
###Description:
The basic idea of this implementation was to capture images at different sites on a bridge and compare them using Python Imaging Library. If the difference in the image goes beyond a critical limit then there needs to be an in-person inspection done to check the reason behind the obtained result.

###Description of the Application:
We have created a python application which takes two images as input and computes the difference in those images using the PIL Library. The idea is to take images from the same site on the Bridges and compute the difference in them in order to see how the site has changed over a period of time. The tests that we conducted on data have resulted in the application detecting changes on the surface caused due to Cracks, Deformities and Corrosion. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ok6y9vrou2n1191s8iqi.png)

###End Result
We have made a GUI in Python which captures images or takes them from the system storage and then computes the difference image and difference percentage and sends it to the cloud storage. We have developed a PWA where we display the computed percentage difference. A threshold can be set in the system by the governing authority and if the threshold is surpassed, the authority will be notified. We have also implemented an EMail System which sends the input images, result image, timestamps, site & bridge data and the computed percentage difference to the authority.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qkubssztxf0tv70f6evy.png)


### Future Scope
- Making use of Robotics to automate the process of capturing data on the sites
- Using machine learning models to generate the desired output without difference


#Audio Analysis using Python:
{% link https://dev.to/virajvshetty/bridge-health-monitoring-system-using-iot-2cfc %}

#Hardware Module using Arduino:
{% link https://dev.to/ajinkyatungare24/bridge-health-monitoring-system-using-iot-47bh %}
What are your Kotlin fail stories? #discuss
Tags: discuss, kotlin, fail
Published: 2020-05-22 10:18:51

Hello fellow developers! [Kotlin](https://kotlinlang.org/) has been around for a while, and maybe not every part of our journey was a piece of cake. 🍰

Was there a project where Kotlin left you in the dark? I want to know about it! What failures (epic or not) did you experience - and how did you move forward? Often, failure stories tell us what things need to be improved. At the very least they make us feel less alone.

Maybe you tried to introduce Kotlin in a company or a project, but for some reason you were rejected? I totally feel you!

Please share your **Kotlin fail stories**! I'll share mine in the comments as well! 👇
Beginning of My AWS Journey
Tags: aws, certification
Published: 2020-05-22 10:18:01

With the current crisis going on, I have decided on taking my first step towards the path of IT certifications. 

I initally thought about taking the CCNA but leaned more towards cloud computing/networking instead. During my research (a basic google search), I stumbled upon AWS and its certifications. 

After doing a more detail search (on Reddit), the most popular certification people seemed to be going for was the **Solutions Architect Associate**.

So, the courses I have chosen to hopefully take me from **Zero to Hero** are:

[Stephane Mareek's Ultimate AWS Certified SAA](https://www.udemy.com/course/aws-certified-solutions-architect-associate-saa-c02/)
[Neal Davis' AWS Certified SAA](https://www.udemy.com/course/aws-certified-solutions-architect-associate-hands-on-labs/)

For Practice Exams (from the recommendation of the Reddit gods): 

[Jon Bonso's SAA Practice Exams](https://www.udemy.com/course/aws-certified-solutions-architect-associate-amazon-practice-exams-saa-c02/)

If you've never tried Udemy, they offer a 30-day money back guarantee on a lot of their courses. 

Also just an FYI, Jon Bonso has practice exams for the 3 Associates and 2 Professional certifications located on his website [Tutorial Dojo](https://tutorialsdojo.com/our-courses/) or [Udemy](https://www.udemy.com/user/jonjonbonso/) that have stellar reviews as well.

Thanks for reading and I will update my progress periodically!
NestJS Hackathon Starter
Tags: octograd2020, showdev, node, typescript
Published: 2020-05-22 10:13:22

Hi, I am a senior computer science student from Koç University, Istanbul. I am interested in web technologies and computer science education.

## My Project
I have joined many hackathons throughout my collage years. I noticed creating an initial project and implementing generic features such as authentication and database connection takes several hours in every competition, which limits time I can put into the unique parts of the project. However, these features are also important and brings your team points in evaluation process :)

So, I decided to create a simple starter project and it grew more and more after each hackathon. Currently, it implements authentication, email verification, Swagger documentation, request validation, password reset and more. 

Building it taught me many things about Typescript, NestJS, unit testing, backend development, and software engineering in general. Feel free to use it on your projects and even add new features with pull requests.

## Link to Code

{% github https://github.com/ahmetuysal/nest-hackathon-starter %}

## How I built it
I followed the [official NestJS documentation](https://docs.nestjs.com/) to implement most of the features. Feel free to open an issue if you have any questions, feedback or feature requests :)
Finding a master thesis topic 
Published: 2020-05-22 09:46:51

Hi everyone. I am currently searching for the master's thesis topic and I  am having hard times in finding it. 

I have experience in Java development, so I was looking into the microservice architecture. But it already has many solutions for the existing problems and it is hard to find something on the top of them. I also looked into the serverless architecture, because It's a new trend and unexplored topic. I found "cold start" problem there, but it seems that the vendors already come up with some solution.

So could you please give any suggestions or directions in these areas?

Thanks in advance!
Creating Open Source Event Management solutions
Published: 2020-05-22 08:51:00

In the Summer of 2018, I worked on Open-Event-Organizer-Android-App (https://github.com/fossasia/open-event-orga-app) which is an Android client for the Open Event Orga REST API. This open-source app can be used by event organizers to help them with the event management. During the Google Summer of Code 2018 (https://summerofcode.withgoogle.com/projects/#6308590474756096), I worked at FOSSASIA Organisation and implemented the following functionalities in the app -

- Creating onsite orders for tickets
- Swipe to Checkin/Checkout attendees
- Background job scheduling for offline support
- Migrate the codebase from Model View Presenter to Model View ViewModel
- Orders Statistics, Event Statistics analytics with charts
- Manage Build Flavors to release the app on FDroid
- Details for Tickets and Attendee belonging to Order
- Timeline for Attendees check-in/checkout activity log
- Listing all the Orders for Events
- Creating/Editing Call for Speakers for Event
- Customized Error Responses 
- Event Sharing, Inviting Users and publicizing functionalities
- Listing/Creating/Editing Sessions for Events
- Uniform and modern material look

I followed the following best practices for Android and maintained high standards in terms of code quality and structure so that there is no compromise in-app performance and stability:

- Model View ViewModel (MVVM) architecture
- Dependency Injection using Dagger
- Use of RxJava for asynchronous programming
- Use of abstractions for ease in testing
- Dependency injection using Dagger
- Distributed code following the separation of concerns
- High quantity of unit tests for models and presenters for high code coverage

The Commits that I made: https://github.com/fossasia/open-event-orga-app/commits?author=Masquerade0097
The Issues that I created: https://github.com/fossasia/open-event-orga-app/issues?utf8=%E2%9C%93&q=is%3Aissue+author%3AMasquerade0097+
The Pull Requests that I made: https://github.com/fossasia/open-event-orga-app/pulls?utf8=%E2%9C%93&q=is%3Apr+author%3AMasquerade0097+
[A Class of 2020 Graduation]
Tags: octograd2020
Published: 2020-05-22 09:34:23

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project and experience.)

[Note]: # (If you used the GitHub Student Developer Pack on your project, add the "#githubsdp" tag above. We’d also love to know which services you used and how you used it!)

## My Final Project
Patient Information System


## Demo Link
 https://github.com/tanujit/Patient-Information-System

## Link to Code
`{% github https://github.com/tanujit/Patient-Information-System %}`

[Note]: # (Our markdown editor supports pretty embeds. If you're sharing a GitHub repo, try this syntax: `{% github link_to_your_repo %}`)

## How I built it (what's the stack? did I run into issues or discover something new along the way?)
I built it using python and its framework tkinter.

## Additional Thoughts / Feelings / Stories
We are all stucked in this pandemic situation and none of us can go outside and help everyone.So I built this application to maintain a record of the patients.
 #devgrad2020 #octograd2020

[Final Note]: # (CONGRATULATIONS!!! You are amazing!)