teleren/devto huggingface dataset:
what is chat ? what can we benefit from chat ?
Published: 2018-06-03 13:00:37

---
title: what is chat ? what can we benefit from chat ?
published: true
description: we always look or search for someone with whom we can share our feelings
tags: 
---
Whenever we feel lonely or getting bored from our daily hectic schedules, we always look or search for someone with whom we can share our feelings, thoughts to express ourself. Even there exist a popular saying about the true friendship and i.e “A friend in need is a friend indeed”. It becomes true when you get someone with whom you can share your problems and get some interesting solutions to cheer you up in no time on these [free online chat](https://www.we-talk.co) & [social network](https://www.we-talk.co) sites.
At the present time we all are connected to Internet for whole of the day by some means like from your smart phone, computer or laptop and chat rooms websites is the perfect place. We can easily connect with anyone from anywhere on the web within seconds and it becomes the most common ways to get connected with your friends, family or with your loved ones. If we don’t like to make any connections in real life, then don’t you worry a single dime, because now one of the most common ways to get rid from our boredom is to talk with strangers on chatting sites. Yes, You heard it right. You can start making new friends on the Internet and make yourself more comfortable in the online world.
BxJS Weekly - javascript news podcast
Tags: javascript, node, podcast, news
Published: 2018-06-03 10:56:38

---
title: BxJS Weekly - javascript news podcast
published: true
description: Listen to the best javascript news of the week in a podcast form
tags: javascript, node, podcast, news
---

Hey dev.to community!
My name's Tim and I do javascript tutorials and news podcasts on Twitch and YouTube. All videos are published under CC license with no ads with code being on GitHub under MIT.
I thought some of you might find it interesting 😄

The podcast happens every week on Saturdays live on Twitch. Shortly after it's uploaded to YouTube.
If you prefer textual format - all the link are available on [GitHub](https://github.com/BuildingXwithJS/bxjs-weekly).
This week's BxJS Weekly Episode 13 is now up on youtube, you can watch it by [clicking here](https://youtu.be/Xo8CzYGKXTs) or the image below!

Any feedback is appreciated 😁

[![](https://thepracticaldev.s3.amazonaws.com/i/1thfwrf8f6q896z95o0w.jpg)](https://youtu.be/Xo8CzYGKXTs)
Braintree minimum example
Tags: braintree, tutorial
Published: 2018-06-03 08:37:41

---
title: Braintree minimum example
published: true
description: 
tags: braintree, tutorial
---

![image.png](https://thepracticaldev.s3.amazonaws.com/i/npiu494797ky06ir4nz0.png)

# tl;dr

I created a repository for my friend to show how Braintree by Paypal works. I would like to shart it here!

# Repository

This repository shows how braintree SDK + express.js works.

https://github.com/acro5piano/learn-paypal-braintree

# Why

Brain tree has official tutorial (of cource) but it contains a lot of implicit dependency. 
For example, `app` is for express instance, but JavaScript beginners tend to have luck of the background, so hard to implement the tutorial.

https://developers.braintreepayments.com/start/hello-server/node

Braintree also has official example repository using express.js, but it has a lot of things such as templates, stylesheets, etc.

https://github.com/braintree/braintree_express_example

Beginner should start the minimam start point. So I created this repository.

# Setup

Install Node.js > 8.1.x and install Yarn.

Then run:

```
git clone https://github.com/acro5piano/learn-paypal-braintree.git
cd learn-paypal-braintree
yarn install
yarn dev
```

Optional: Edit `server.js` and fill out your SDK tokens.

Then open `index.html` and you can see the braintree screen.

![image.png](https://qiita-image-store.s3.amazonaws.com/0/103885/59161f38-e895-fc35-4175-0b6b5d97728f.png)https://github.com/acro5piano/learn-paypal-braintree

Thanks!
Some thoughts about attending JSCONF EU 2018
Published: 2018-06-03 06:15:51

---
title: Some thoughts about attending JSCONF EU 2018
published: true
description: 
tags: 
---

I came to Berlin with high hopes this year. I was ready to be inspired, to learn new stuff, to become a better developer.

Instead of that one speaker after another is telling me about privilege, racism, discrimination and exclusionary practices. Some of the speakers use some really aggressive rhetoric and are almost throwing accusations at the audience. You are bad, you should be better.

On the other hand the quality of some of the more "technical" talks dropped significantly. Here are some of the tips I got from talk about webpage performance:

* You can open network tab to see the size of your files
* Add cache headers to cache stuff
* jQuery is 50kb
* Service workers are cool

My colleague and I could not believe what we saw. It's 2018 outside, right? Compare it to an awesome talk by Addy Osmani from last year: https://www.youtube.com/watch?v=7vUs5yOuv-o. The amount of incredibly useful information he managed to pack in these 30 minutes. 

The talk about event loop is proceeded by another talk, half of which is devoted to explaining event loop. Not the best idea probably. It feels like watching those annoying TV advertisments, where they repeat the same thing twice to get your attention.

So at the end of first day, instead of being full of enthusiasm the only feelings I have are shame and dissapointment. JSCONF, are you trying to send some message this year? Is there some paradigm shift happening? Because as it looks right now this is not the type of conference me or my colleagues would like to attend in the future.

But what do I know, that's probably my privilege speaking.
How to set min-font-size in CSS
Tags: css, calc, minfontsize
Published: 2018-06-03 06:06:14

---
title: "How to set min-font-size in CSS"
published: true
description: 
tags: CSS, calc(), min-font-size
---

{% gist https://gist.github.com/McKabue/0e5343492de00f133435c4382e19ae7a %}
Raise freelance price for hard to find skillset such as Polymer and webcomponents?
Published: 2018-06-03 05:42:27

We're currently trying to find our first gigs on upwork, I'm super strong in Polymer (webcomponents) and frontend in general. It's a very rare skill because not that many people are doing webcomponents yet and I've been doing it for 4+ years.

I'm wondering if you can raise your prices higher than usual if you do something that's very much in demand, does it work, or does it just scare of potential customers? How do you approach it in the beginning? Should you go with normal rates, or does a specific skillset that's hard to find justify to raise the prices?

WDYT? e. g. meteor developers in the Philippines are paid quite well because it's super hard to find them.

---
title: Raise freelance price for hard to find skillset such as Polymer and webcomponents?
published: true
description: 
tags: webcomponents, polymer
---
Any others here working with Unreal Engine?
Tags: gamedev, unrealengine, c
Published: 2018-06-03 04:22:08

---
title: Any others here working with Unreal Engine?
published: true
description: Looking for others that are into gamedev.
tags: gamedev, unreal engine, c++
---

# Hello fellow coders.

Just looking for other gamdev coders.  Right now I'm working through an Unreal Engine 4 course on Udemy.  Brushing up on C++ along the way.  Just looking for others that may have experience working with Unreal Engine or just game dev in general.  If you have advice, recommended reading, YouTube channels, Repos, etc... please let me know.
Speed vs. Design: Which matters more?
Tags: discuss
Published: 2018-06-02 23:36:49

---
title: Speed vs. Design: Which matters more?
published: true
tags: discuss
---
I know that the two are not mutually exclusive, but often I see amazingly designed websites that take forever to load and websites that are quick to load but don't look that good.

Which matters to you more **as a user**? (Not which impacts revenue more or anything)
What do you dislike about your favorite language?
Tags: discuss, programming
Published: 2018-06-02 23:00:29

---
title: What do you dislike about your favorite language?
published: true
description: To truly appreciate our languages, we must know their faults.
tags: discuss, programming
---

To truly appreciate our languages, we must know their faults. So what's your pet peeves and biggest pains in you side about your favorite language you use everyday?
Which book(s) make you talk out loud?
Tags: discuss, reading, books
Published: 2018-06-02 20:03:22

---
title: Which book(s) make you talk out loud?
published: true
description: 
tags: discuss, reading, books
cover_image: https://thepracticaldev.s3.amazonaws.com/i/dl41x7izu7u6ibgqf044.jpeg
---

<center>_Photo by [Alice Hampson](https://unsplash.com/@alice_hampson) on [Unsplash](https://unsplash.com/)_</center>

I'm almost done reading [The Clean Coder: A Code of Conduct for Professional Programmers](https://www.amazon.com/Clean-Coder-Conduct-Professional-Programmers/dp/0137081073) by [Robert C. Martin](https://twitter.com/unclebobmartin?lang=en) and I find myself saying things like:

- _"That's right!"_
- _"Oh, damn!"_
- _"So true!"_

I bet my roommate thinks I'm crazy by now...

#### Have you experienced this lately? And if so, which book was it?
Know When To STOP Learning And Just Write The Code!
Tags: learning, culture, career, productivity
Published: 2018-06-02 18:14:06

---
title: Know When To STOP Learning And Just Write The Code!
published: true
description: Software development draws many of us in with endless opportunities to learn, but is it right for every project?
tags: #learning #culture #career #productivity
---

Software development draws many of us in with endless opportunities to learn, but is it right for every project?

Early in my career I wanted to know everything possible about the software companies I worked for.

But a couple of years in software consulting taught me I could actually **be a better developer by learning to ignore information** sometimes.

In this video, I share a story of a project I was on where the relationship was in trouble between my agency and a client.

Fixing the relationship was the most important thing to do.

The relationship was repaired quickly - but only through _ignoring some things about the software_!

Visit my site to watch the full video (or listen as a podcast):

# [📺 Watch or 🎧 Listen](https://jaymeedwards.com/2018/05/30/know-when-to-stop-learning-and-just-write-the-code/)

<hr />[🔔 Subscribe for over 100 videos on healthy software development](https://YouTube.com/c/JaymeEdwardsmedia?sub_confirmation=1)
Find The Number
Tags: ruby, beginners, random
Published: 2018-06-02 16:08:15

---
title: Find The Number
published: true
description: My first script in Ruby
tags: ruby,beginners,random
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/hbtd6t3kczv69xdaid33.gif
---

![Find The Number](https://thepracticaldev.s3.amazonaws.com/i/a78xl46305veutcgcdix.png)


_Hello ! The code and the post show my first script in Ruby, please be indulgent._

* **Description** 

It is a basic 'game' under console/terminal that must be run with ruby.
The goal? Find the exact number.
 
* **The system** 

A simple random number for the chances and a condition to check whether it is small or big. If he is too big or too small, he will mark it for you.


![Example of the script](https://thepracticaldev.s3.amazonaws.com/i/3nkp01kzqvfb4982zlhc.gif)

* **Code**

```ruby
MaxChiffre = 20
NumberToGuess = Random.new.rand(MaxChiffre)
MaxChance = Random.new.rand(2..6)
a = nil
puts "Enter your number between 0 and #{MaxChiffre} included, you only have #{MaxChance} chances."
for num in 1..MaxChance
  next if a == NumberToGuess
  a = gets.chomp.to_i
  if a > NumberToGuess
    puts "Number too big"
  elsif a < NumberToGuess
    puts "Number too small"
  end
end
puts "Congratulations, you've found it !" if a == NumberToGuess
puts "Pity ! It was #{NumberToGuess}. " if a != NumberToGuess
```


* **GitHub**

The repository is on GitHub, check out now.
{% github thomasbnt/Find-The-Number no-readme %}
New react boilerplate with saga, selector, emotion, ssr etc...
Tags: react, javascript, redux
Published: 2018-06-02 15:42:38

---
title: New react boilerplate with saga, selector, emotion, ssr etc...
published: true
description: Boilerplate with React. It supports so many features like redux, server side rendering.
tags: ReactJS, JavaScript, Redux
---

[Reacteum](https://github.com/wonism/reacteum) supports these.
- Redux (design with ducks modula redux style)
- Asynchronous redux with redux-saga
- Selectors pattern with reselector
- CSS in JS with react-emotion
- Client side routing with react-router-dom
- Code splitting
- Handing meta tags with react-helmet
- Server side rendering
- Test with jest
- Formatting codes with eslint & prettier
Handling JavaScript Errors Like a boss by logging them to the server and possibly returning a behavior
Tags: javascripterrors, errorhandler, windowonerror
Published: 2018-06-02 13:48:51

---
title: "Handling JavaScript Errors Like a boss by logging them to the server and possibly returning a behavior"
published: true
description: 
tags: JavaScript-Errors, Error-Handler, window.onerror
---
We make a request to your servers as if you are loading a JavaScript file. The `url` will contain the query parameters that you want to pass to the server. 
This method has two advantages: 
 1. The code for sending the request is simple as we are just creating/changing the script tag `src`
 2. We can return some behavior back to the browser from the server possibly redirecting users to some other location

{% gist https://gist.github.com/McKabue/24efe7621642f6e61fe86c626c7e0271 %}
Play with the React Router Part-2
Tags: react, javascript, beginners, webdev
Published: 2018-06-02 13:47:44

---
title: Play with the React Router Part-2
published: true
description: how routing works in react router
tags: react,javascript,beginners,webdev
cover_image: https://cdn.pixabay.com/photo/2015/01/08/18/24/children-593313_960_720.jpg
---

 How to Handle the 404 Requests and Active Styles in React Router.


If you want to start from the First Part Refer [Play With the React 🐘Router](https://dev.to/saigowthamr/play-with-the-react-router-1e79).



## How to apply active styles whenever URL/path matches in React Router?

 - NavLink component is available for styling the Nav items.
 - we need to use NavLink Instead Of Link Component.


![React Router](https://thepracticaldev.s3.amazonaws.com/i/urgjyki08pv5zl8iowja.png)


Two Properties are available for styling.
 -  activeClassName
 -  activeStyle.

**activeClassName**: we need to pass the  class name.
**activeStyle**: we need to pass the styles as an object.

Now let's see *activeStyle* property in Practice.

![activeStyle](https://thepracticaldev.s3.amazonaws.com/i/eh27j81xx746udiqhf82.png)


# How to Handle 404 requests in React Router? 

![](https://thepracticaldev.s3.amazonaws.com/i/koozyr0ui6n54d6sz2ue.png)


We need to wrap the all of our routes with Switch component.

**Switch**: It helps us to render the Component only when particular path/URL matches.

In above code, only two routes are there so that switch only renders that component whenever the URL matches. If any of the URL doesn't matches switch renders the Not found Component.

# Final Output.

![](https://thepracticaldev.s3.amazonaws.com/i/70flwlze39pvmosritm1.gif)


Happy coding...

[Play With the React 🐘Router Part 1](https://dev.to/saigowthamr/play-with-the-react-router-1e79)
TESTING LARAVEL WORKSHOP FOR BEGINNERS 🎉🎉🎉
Tags: laravel, phpunit, unittesting
Published: 2018-06-02 12:42:32

---
title: TESTING LARAVEL WORKSHOP FOR BEGINNERS 🎉🎉🎉
published: true
description: Learn how to test your laravel applications from scratch
tags: laravel, PHPUnit, unit testing, 
cover_image: http://res.cloudinary.com/bahdcoder/image/upload/v1527943034/Webp.net-compress-image_fwfzgz.jpg
---

Hey friends 😀. I would love to announce an upcoming online workshop (happening on the *Friday, 06 July 2018 12:00:00 PM GMT*), meant to introduce testing of laravel applications.

If you've never had any experience testing laravel applications, this **absolutely free** workshop is for you. 

***Why am I doing this?***

First, to give you some context, I have a [really great course](https://udemy.com/best-laravel) where I teach how to build simple to advanced laravel applications to absolute beginners.

A few days ago, I saw this [job posting on VueSchool](https://vueschool.io/jobs), looking for a laravel developer to manage their application.

I began to think about my students, who have considerable experience building laravel applications after taking my course, but would most likely not meet the requirements of the job 😔.

No matter what applications you've built, no company would hire you to manage their applications if you do not master the skill of testing applications. 

That's why I'm doing this. I want to introduce you to testing. Teach you the basics. Everything you need to proceed thereon.

A mastery of this skill would massively improve the quality of the applications you build using the amazing Laravel Framework.

[REGISTER FOR THE FREE WORKSHOP](https://emailoctopus.com/lists/c1eb6370-645b-11e8-a3c9-06b79b628af2/forms/subscribe)

If you've never written a single test for your laravel applications, this workshop is for you. I'll be there live, teaching you from the beginner's steps, answering every question you have.

I've also been thinking of creating an online course laser-focused on testing laravel applications too 🤔, but I'll let you know if that thought still stands after the workshop. 

[REGISTER FOR THE FREE WORKSHOP](https://emailoctopus.com/lists/c1eb6370-645b-11e8-a3c9-06b79b628af2/forms/subscribe)


Please tweet about this. Share it on your timeline. This is an opportunity to change someone's life somewhere. Let's make this happen together.

🙏🙏🙏
What concerns do you have with the Dart language/platform?
Tags: discuss, dart, webdev, flutter
Published: 2018-06-02 12:22:47

---
title: What concerns do you have with the Dart language/platform?
published: true
description: A discussion to catalog people's thought about the Dart platform
tags: discuss,dart,webdev,flutter
---

[Dart](https://dartlang.org) is a cross-platform solution with its own tooling covering web, server and mobile. Flutter is dependent on it.

Share your reservations, fears, general thoughts below👇
Magento’s Merge With Adobe – Risk or New Opportunity? 
Tags: magento, ecommerce, adobe
Published: 2018-06-02 04:05:38

---
title: Magento’s Merge With Adobe – Risk or New Opportunity? 
published: True
description: Magento’s partnership with Adobe has created much chaos online.How we are confusing this correlation with causation of consequences and impacts on small enterprises using Magento platform.
tags: #Magento #eCommerce #Adobe 
---

You must have heard of Magento’s partnership with Adobe. It has created much chaos online.  Some say Magento community edition will be removed. Other say there might be a rise in the enterprise edition price. Some other say it is nowhere feasible for small entrepreneurs or startups to bare Magento. Some techies say that we need to rely more on technical experts as both the platforms are made with different languages. (Magento is made in PHP, Adobe is mostly in Javascript)

I am relating all the above to this car incident that actually happened some time ago giving my insights on what can we expect from Magento and Adobe correlation. How we are confusing this correlation with causation of consequences and impacts on small enterprises using Magento platform.


CheckOut:https://bit.ly/2sxKVKu
Does a bad UX make users to abandon the website?
Tags: onlinestore, ecommerce, websiteux
Published: 2018-06-02 03:58:59

---
title: Does a bad UX make users to abandon the website?
published: true
description: Online stores are all about buyers experiences. Bad UX makes users abandon your site. Baymard’s study on UX issues flagged by many customers online
tags: #onlineStore #eCommerce #websiteUX
---
Online stores are all about buyers experiences. Bad UX makes users abandon your site. Baymard’s study on UX issues flagged by many customers online include

* requiring an account,
* unclear pricing,
* site errors and crashes,
* lack of trust when handing over credit card info, and
* insufficient payment methods.
We have also come up with [top 3 customer concerns](http://www.i95dev.com/top-3-concerns-customer-shopping-online/)
Being Magento partners in Online store development, we have come up with [Top 3 UX designing strategies](http://www.i95dev.com/top-3-e-commerce-website-design-tips/)

Let me know as an online store owner, what else you think can do better for providing the best UX in online stores
Auto-generate a Database Schema Diagram
Tags: perl, catalyst, dbixclass, howto
Published: 2018-06-02 03:34:14

---
title: Auto-generate a Database Schema Diagram
published: true
description: Generate a Live Database Schema Diagram for your Catalyst Application
tags: Perl, Catalyst, DBIx::Class, Howto
---

# Generate a Live Database Schema Diagram for your Catalyst Application

When building a web application, I always create a URL endpoint that generates a database schema diagram on the fly.  This is a quick reference item that never gets old.

![schema diagram](https://thepracticaldev.s3.amazonaws.com/i/jum5zbmuj6c6612nfjza.png)

This approach can be used with any Perl web framework.  The provided example is for the Catalyst Framework using a DBIx::Class ORM.  This example provides the url http://mywebsite.com/dbdiagram

``` perl

=head2 dbdiagram

Render an image representing the current data model

=cut

use SQL::Translator;
sub dbdiagram :Local :Args(0) {
    my ($self, $c) = @_;

    my $translator = SQL::Translator->new(
        parser => 'SQL::Translator::Parser::DBIx::Class',
        data   => $c->model('Ezn')->schema,
        producer => 'Diagram',
        producer_args => {
            output_type => 'png',
            title       => "My clever database diagram",
            add_color   => 1,
            font_size   => 'large',
        },
    ) or die SQL::Translator->error;

    $c->res->content_type('image/png');
    $c->res->body($translator->translate);
}

```

_Don't Forget_ to restrict to authorized users!

See also: 
* [Catalyst Framework](http://www.catalystframework.org/)
* [DBIx::Class](https://metacpan.org/pod/DBIx::Class)
* [SQL::Translator::Parser::DBIx::Class](https://metacpan.org/pod/SQL::Translator::Parser::DBIx::Class)
* [SQL::Translator::Producer::Diagram](https://metacpan.org/pod/SQL::Translator::Producer::Diagram)