teleren/devto huggingface dataset:
2020 What does it hold?
Published: 2019-12-30 21:18:26

---
title: 2020 What does it hold?
published: true
description: 
tags: 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/p96oozuasnk6g0krrcez.png
---
2020 has arrived and new things are on the horizon. 2019 is becoming a memory. Keep moving forward is what I believe. No setbacks are worthy enough to stop moving forward. What goals do you want to meet this year? I am not one for setting resolutions and I won't start now. A few things I would like to see happen in 2020 -- a new job position where I can use the CS skills I went to school for. I want to see an expansion in 2020 when others see failure I see success. I know that I can't see success unless I go through failure so let's keep moving forward...Lastly I want to help others succeed as I succeed. Being a better husband, father, and so on...who wants to join in that adventure?
Get some basic git stats on your lines added/removed ratio 
Tags: git, github
Published: 2019-12-30 21:12:42

These aren't the most insightful stats but sometimes I find it interesting to see what my ratio of lines added to deleted is, and you can do it with just one command. 



Simply run the command from [this snippet] (https://bitbucket.org/snippets/MarkLambeDev/9nbe7y) and you'll get your 'Lines added', 'Lines deleted', and 'Add./Del. ratio'.

Don't forget to replace my name with yours, if you're not sure what it is you can just run `git config -l | grep user.name`
Funny devs onboarding - by DEV platform
Tags: funny
Published: 2019-12-30 21:07:56

---
title: Funny devs onboarding - by DEV platform
published: true
description: A nice & funny way to onboard hacky devs. By DEV.to 
cover_image: https://media.giphy.com/media/JEYYpBGPLq98I/giphy.gif
tags: discuss, funny
---
Hello coders, 

Don't know if this was mentioned before in the community but DEV has a funny method to onboard hacky devs: through javascript console. 

![Funny onboarding - by DEV](https://raw.githubusercontent.com/app-generator/static/master/common/smart-onboarding-dev-platform.jpg)

Cool & Funny!
.. <('_')> ..
Some questions about JS
Tags: javascript, beginners, question
Published: 2019-12-30 21:04:14

Hello everybody,

I am stuck now with my JS course.

First, I need to type a constructor code.
But I do not understand what a constructor exactly does.
First question, what is a constructor?

It also needs some attributes and methods.
So I thought that var var1 = { .... } should work.
But it did not.

I need to call the methodes firstName; lastName; yearOfBirth.
Further how do I make 2 objects? 
So 2 "profiles", I think.

And I need some code to create buttons for altering the firstName; lastName; yearOfBirth.

I hope I've explained it right, otherwise let me know.
Greetings, Rik
Learn how to build and work with Blazor apps using .NET Core, C# and JavaScript 
Tags: dotnet, csharp, webdev, javascript
Published: 2019-12-30 20:57:11

---
title: Learn how to build and work with Blazor apps using .NET Core, C# and JavaScript 
published: true
description: this is a collection of articles on Blazor, how to get started but also how to call JavaScript from Blazor
tags: dotnet, csharp, webdev, javascript
---


Learn how to developer Blazor applications with these two articles

[Build your first Blazor app](https://dev.to/dotnet/blazor-the-future-of-net-web-apps-a-first-look-m8)
This teaches how to scaffold a Blazor and how to create components, routing, HTTP and more

[Use JavaScript interop in Blazor](https://dev.to/dotnet/blazor-learn-to-get-the-best-of-both-worlds-with-javascript-interop-58pp)
How to work with JavaScript in Blazor. This teaches how to call JavaScript from the Blazor app but how to also use libraries from the NPM ecosystem.
My 10 Favorite CodeNewbie Podcast Episodes
Tags: podcast, codenewbie, womenintech
Published: 2019-12-30 19:48:43

With 10 seasons worth of content, I decided to gather my 10 favorite CodeNewbie podcast episodes that have helped me along in my journey.  It was not easy to narrow it down but these episodes I think cover the most important aspects of what you need to know when you're transitioning into code.  For 2019, I decided to really focus on transitioning from my administrative role as an assistant to a more creative role in technology. If you read my previous post on [developing a self-taught cirriculum](https://dev.to/courtneypure/developing-structure-in-my-self-taught-journey-25p9) you will know that I love to use podcasts as my 'college lecture courses.'

Topics include accessibility, web animation, UI & design, burnout, freelancing and much more.  If you are a Spotify user I also have a [playlist](https://open.spotify.com/playlist/3BdecjVblMBZhQt5Dbg1dJ?si=ja-efekMTG-N-5kcEDVKxw) there as well!  

{% podcast https://dev.to/codenewbie/s1ep1--intro-to-accessibility-stephanie-slattery %}

{% podcast https://dev.to/codenewbie/s1ep8--what-and-why-is-web-animation-rachel-nabors %}

{% podcast https://dev.to/codenewbie/s3e6--how-does-the-internet-work-julia-evans %}

{% podcast https://dev.to/codenewbie/s6e5--should-you-start-freelancing-devon-campbell %}

{% podcast https://dev.to/codenewbie/s8-e4-how-to-get-hired-kevin-lozandier %}

{% podcast https://dev.to/codenewbie/s8-e7-how-do-you-transform-your-career-kanika-tolver %}

{% podcast https://dev.to/codenewbie/s9-e3-how-do-you-develop-yourself-and-your-code-while-fighting-off-trolls-ali-spittel %}

{% podcast https://dev.to/codenewbie/s9-e4-what-is-workplace-burnout-and-how-can-you-stop-it-jeffrey-liebert %}

{% podcast https://dev.to/codenewbie/s9-e5-why-you-should-understand-user-interface-and-design-mina-markham %}

{% podcast  https://dev.to/codenewbie/s9-e8-why-you-should-read-the-new-edition-of-the-pragmatic-programmer-dave-thomas-andy-hunt %}



##Honorable Mentions

In my list above I tried not to have episodes with specific languages but this one on Java was such a thorough explanation of what it is and what it is not (JavaScript) that I wanted to add it to the list.

{% podcast https://dev.to/codenewbie/s9-e6-what-is-java-good-for-and-why-is-it-still-one-of-the-most-popular-coding-languages-peggy-fisher %}


I really enjoyed this one because it was about communication and learning to clarify with your colleagues.  At my day job I am a manager and I just really appreciated this view from Lara Hogan.  It was validating to hear some of the same difficulties as well as insightful on how to level up as an employee and to be there for your team!

{% podcast https://dev.to/codenewbie/s10-e5-how-to-be-a-good-manager-and-a-good-employee-lara-hogan %}

A complete list of episodes can be found at the [CodeNewbie Podcast website](https://www.codenewbie.org/).
I am building two businesses while working full time, Ask Me Anything!
Tags: ama
Published: 2019-12-30 20:04:18

Hello!

I am currently building two businesses: [Speakbox](https://speakbox.ca) and [Variate](https://variate.ca) while working full time at [Telus](https://telus.com).

I would love to share experiences and answer any questions. Ask me anything!
Call for Contributions: Move All DelayedJobs to Sidekiq
Tags: contributorswanted, help, ruby, sidekiq
Published: 2019-12-30 20:00:57

---
title: Call for Contributions: Move All DelayedJobs to Sidekiq
published: true
description: Looking for people who would like to contribute to DEV by moving some of our DelayedJobs to Sidekiq.
tags: contributorswanted, help, ruby, sidekiq
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gnrubwu9u8ds081k8wg6.png
---

Hey everyone!!! 👋

Now that we have a smokin fast Redis instance going we are moving all of our background jobs from DelayedJob to Sidekiq! Click on the Issue linked below to learn more!

There are lots of details in there about why we are moving to Sidekiq, how we plan to do it, a guideline for helping out, and even a few example PRs to get you going. I think this is a GREAT opportunity for anyone looking to dip their feet in the open-source waters. Let me know if you have any questions!

Happing coding 😃

{% github https://github.com/thepracticaldev/dev.to/issues/5305 %}
Epic Games Launcher Not Working on Mac
Tags: epicgames, gaming, unreal, c
Published: 2019-12-30 19:45:53

Decided to learn how to make some games today, and I immediately ran into a problem downloading Unreal on my Mac today.

The Epic Games Installer just kept getting stuck in a loop of updating and restarting. I found a solution (although I don't really know why it's working, but hey, it works).

Instead of trying to boot up the installer normally by double clicking the icon on your Desktop, do this instead:

  **- Go to your Applications folder**
  **- Right click**
  **- "Open"**

Again, I don't completely understand the difference, but I thought I would save Mac users some trouble by sharing what worked for me.

*Side note: I'm looking forward to starting my journey with C++ programming as well as sharpening up my Javascript skills and sharing what I learn along the way. Stay tuned for more posts.*
Denise Gibbs Modesto
Published: 2019-12-30 19:24:25

Denise Gibbs Modesto has a background in management and human resources for 30 years with experience in overseeing staff in multiple locations at a time and positions. Throughout the years Denise Gibbs Modesto has developed personnel handbooks as well as policies and procedures for non-profit agencies. Denise has provided audits for local, state and federal government agencies. Denise Gibbs Modesto has dedicated her life to working with those in need, such as low-income families, senior citizens, victims of domestic violence and advocating those incarcerated. Denise Gibbs Modesto is also a dedicated wife for 32 years with a son who works for the Defense Intelligence Agency.
ANN Model testing and training Accuracy Using Keras and Tensorflow.
Tags: machinelearning, python, tensorflow
Published: 2019-12-30 19:19:55

An artificial neuron network (ANN) is a computational model based on the structure and functions of biological neural networks. Information that flows through the network affects the structure of the ANN because a neural network changes - or learns, in a sense - based on that input and output.
ANNs are considered nonlinear statistical data modeling tools where the complex relationships between inputs and outputs are modeled or patterns are found.
The fact that it can actually learn from observing data sets. In this way, ANN is used as a random function approximation tool. These types of tools help estimate the most cost-effective and ideal methods for arriving at solutions while defining computing functions or distributions. ANN takes data samples rather than entire data sets to arrive at solutions, which saves both time and money. ANNs are considered fairly simple mathematical models to enhance existing data analysis technologies.
Using Spyder by Anaconda. You need to install Tensorflow, Theano and Keras libraries in spyder.Keras is built on top of Tensorflow and Theano so these two libraries will be running in back-end.With the help of a dataset which contains record of churn modelling from various countries.

Measuring accuracy of different Models and try to improve it.


Steps to install Keras Tensorflow

Step 1 — Create New Conda Environment
•conda create -n py35 python=3.5 anaconda
Step 2 — Install Spyder in the New Environment
Step 3 — Install the Packages
•conda install theano
•conda install tensorflow
•conda install keras
Step 4 — Run Spyder from the Environment
Step 5 — Test the Packages

Library Used:

•Matplotlib
It is used to perform some graphical
representations.
•Pandas
•Numpy
•sklearn
•keras
•Tensorflow
It is present as backend Environment.

source code of a data set performed in Spyder. https://github.com/santosh2702/ANN-Model-testing-and-training
How Arrow Functions aka Short Closures Can Improve Your Code
Tags: php, arrowfunctions, laravel, codequality
Published: 2019-12-30 19:08:03

Arrow Functions aka Short Closures is a new feature available in PHP 7.4. The new version of PHP comes with various new features, out of which arrow functions are the most awaited one. In this article I want to show you how arrow functions can improve your code.

## Syntax

Ok, let's start by analyzing the syntax for arrow function.

```php
fn($arg) => $arg
```

Looks a bit weird. But it's pretty awesome once you get over it. To understand what the above code does, we can take a look at its equivalent normal function.

```php
function ($arg) {
    return $arg;
}
```

Yeah, the function just takes an argument and returns it. So arrow function is a normal function with a special `fn` keyword and no return statement? Probably Not!

## Features

These are some notable features of arrow functions.

- They start with the `fn` keyword.
- They can have only one expression.
- No `return` keyword.
- They inherit outer scope.

Arrow functions are quite known in the JS community. However short closures in PHP is not the same as arrow functions in JS. As the name suggests short closures are intended to use as simple [Closures](https://www.php.net/manual/en/class.closure.php) and they are not a replacement for normal functions.

So let's look into how short closures can improve your code.

### PHP

Consider the below code sample. It's just a program to transform an array of names to capitalized valid names.

```php
$names = ['alex', 'john', null, 'michael'];

$validNames = array_filter($names, function($name) {
  return !is_null($name);
});
// ['alex', 'john', 'michael']

$capitalizedNames = array_map(function($name) {
  return ucfirst($name);
}, $validNames);
// ['Alex', 'John', 'Michael']
```
Now we can use arrow functions to transform the above code.

```php
$names = ['alex', 'john', null, 'michael'];

$validNames = array_filter($names, fn($name) => !is_null($name));
$capitalizedNames = array_map(fn($name) => ucfirst($name), $validNames);
```
🥰 Much neater and readable.

### Laravel

This can be transformed

```php
$apiKey = config('app.api_key');

$this->app->bind(PaymentInterface::class, function ($app) use ($apiKey) {
  return new Stripe($apikey);
});
```
to this

```php
$apiKey = config('app.api_key');

$this->app->bind(PaymentInterface::class, fn($app) => new Stripe($apikey));
```
As you can see there is no need to pass the outer scope variable using the `use` keyword.

When using eloquent, this can be transformed

```php
$place = 'New York';

$users = User::whereHas(['address' => function($q) use ($place) {
  $q->where('place', $place);
}])
->get();
```
into this
```php
$place = 'New York';

$users = User::whereHas([
    'address' => fn($q) => $q->where('place', $place)
])->get();
```

Arrow functions will make you write less code and are more readable. While it's still not possible to write multi-line arrow functions in PHP, it may be possible in future versions.
10 tech startups for 2020 that will help the world build more resilient, secure, and observable software
Tags: cloudnetworkingn, devopsnews, featured, insights
Published: 2020-01-06 10:16:45

---
title: 10 tech startups for 2020 that will help the world build more resilient, secure, and observable software
published: true
date: 2019-12-30 19:00:58 UTC
tags: Cloud & Networking N,DevOps News,Featured,Insights
canonical_url: https://hub.packtpub.com/10-tech-startups-for-2020-that-will-help-the-world-build-more-resilient-secure-and-observable-software/
---

The Datadog IPO in September marked an important moment for the tech industry. This wasn’t just because the company was the fourth tech startup to reach a $10 billion market cap in 2019, but also because it announced something that many people, particularly those in and around Silicon Valley, have been aware of for some […]

The post [10 tech startups for 2020 that will help the world build more resilient, secure, and observable software](https://hub.packtpub.com/10-tech-startups-for-2020-that-will-help-the-world-build-more-resilient-secure-and-observable-software/) appeared first on [Packt Hub](https://hub.packtpub.com).
Destructuring JavaScript objects with default value
Tags: javascript, es6, objects
Published: 2019-12-30 18:48:48

---
title: Destructuring JavaScript objects with default value
published: true
description: Learn how to assign default values to JavaScript object right at the time of unpacking them.
tags: JavaScript, ES6, objects
---

> Originally posted at https://varundey.me/blog/destructuring-and-default-values/

Destructuring introduced in JavaScript ES6 is a nifty trick to scoop out properties directly from an object as variables.
```js
const obj = {
    a:1,
    b:2,
    c:3
};

const {a, b, c} = obj;

console.log(a, b, c); // 1 2 3
```

## Destructure and assign default values - the naive way
But what if you have to do some validation checks on your destructured properties before doing any operation
```javascript
const {a, b, c} = obj;

if(typeof a === 'undefined'){
    // assign a to something
}

if(typeof b === 'undefined'){
    // assign b to something
}

if(typeof c === 'undefined'){
    // assign c to something
}

// start the actual work
```

## Destructure and assign default values - the JavaScript way
Though it works perfectly fine but it is boring and redundant. What if we could make use of default values (just like default arguments in functions) right at the time of destructuring objects so that our unpacked property is never `undefined`.
```javascript
const obj = {a: 1, b: 2};

const {
    a = 'foo',
    b = 'bar',
    c = 'baz',
} = obj;

console.log(a, b, c); // 1 2 baz
```
Easy right? You just need to assign the values as and when you unpack it.

## Destructure, rename and assign default values
Neat! But what if we want to rename a parameter **and** set a default value to it? Pay attention.
```javascript
const obj = {a: 1, b: 2};

const {
    a: A="foo",
    b: B="bar",
    c: C="baz"
} = obj;

console.log(A, B, C); // 1 2 baz
```
Confusing? I bet it is. Here are the steps to it.

- First we destructure properties of the object
```javascript
const {a, b, c} = obj;
```
- Next, we assign variables to these properties
```js
const {a: A, b: B, c: C} = obj;
```
- After that, assign the default value as how we did in the previous example
```js
const {a: A="foo", b: B="bar", c: C="baz"} = obj;
```
And there you have it. Adding default values right at the time of unpacking objects.

## Caveats
Please note that destructuring with default value only works when there is no property to unpack in the object i.e. the property is `undefined`. This means that JavaScript treats `null`, `false`, `0` or other falsy values as a valid property and will not assign default value to them.
```js
const obj = {a: null, b: false, c: 0};

const {
    a = 1,
    b = 2,
    c = 3,
    d = 4
} = obj;

console.log(a, b, c, d); // null false 0 4
```

I hope this was informative and will help you when you need to do something similar. Let me know what you think about this post in the comments below. ✌️
Evaluation questionnaire for Alarm System
Tags: ux, csharp, computerscience
Published: 2019-12-30 18:46:53

Hi there,

my name is Panagiotis Koilakos and I am studying computer science in AUEB, Greece.

During an HCI(Human-Computer Interaction) course, we had to select a home device and try to beautify it through a better UI.

This is the final evaluation of the project and we would like some people to run the app and answer to a short questionnaire (we kept it short, promise!).

[Here](https://forms.gle/9jXQpVL68xGB15KH9) you may find the questionnaire (.exe can be downloaded from there - not the best option...I know).

Thanks very much anyone that spares 10 minutes to give a helping hand on finalizing this.
ColdFusion isDomain() UDF
Tags: coldfusion, udf, cfml, regex
Published: 2019-12-30 18:37:15

Since [Apility.io](https://apility.io/) introduced a new ["free" tier](https://mailchi.mp/4dd63998a4a7/vpn-blacklisting-641355) on 12/1/2019 that provides 40k API hits per month, I've decided to revisit and add support to my ColdFusion web application framework in order to better combat feedback form spam. I recently wrote a CFC, CFTag & API endpoint for [CleanTalk](https://cleantalk.org/), so adding support for Apility shouldn't be too difficult. Apility uses multiple sources and can test IP, email and domain names as well as return other data like WHOIS & geolocation.

In preparation for this, I wanted to make it so the function auto-detects what is being tested (IP, email or domain name), automatically performs the correct API call and returns the standardized pass/fail response.

ColdFusion has a built-in [isValid()](https://cfdocs.org/isvalid) function that supports email, but there's no support for IP or domain name.  CFLib provides an [isIP()](https://cflib.org/udf/IsIP) UDF and also has an [isURL()](https://cflib.org/udf/isURL) UDF.  The [isEmail()](https://cflib.org/udf/isEmail) UDF is very basic and Adobe's built-in isValid("email") is/was [buggy](https://tracker.adobe.com/#/view/CF-4204100).  As a result, I prefer to use my own UDFs versus blindly trusting that Adobe won't change something or introduce a new version-specific bug.  *(For email, I use Dominic Sayer's [isEmail](http://isemail.info/) Java library. This library is awesome & also performs an optional MX record test.)*

I noticed that there wasn't anything available to test whether a string is a validly formatted domain name, so I thought I'd come up with something.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/e44zz5lj46xi13iaqdtf.png)

Enjoy!

**Check it out on [TryCF.com](https://www.trycf.com/gist/06c285c9f1e6bfcf3115dbbba0252c9a).**

{% gist https://gist.github.com/JamoCA/06c285c9f1e6bfcf3115dbbba0252c9a %}