teleren/devto huggingface dataset:
Focus on outcomes, not hours spent in the office
Tags: productivity
Published: 2018-09-12 15:50:18

---
title: Focus on outcomes, not hours spent in the office
published: true
description: There are many blessings in being a remote team, but one that I like particularly is that you can't check over your shoulder to see who's in the office.
tags: productivity
canonical_url: https://blog.squadlytics.com/focus-on-outcomes-not-hours-spent-in-the-office/
cover_image: https://blog.squadlytics.com/content/images/2018/09/blog-background.png
---

There are many blessings in being a remote team, but one that I like particularly is that you can't check over your shoulder to see who's in the office.

## Empower people with goals

If you focus on hours, you'll get what you want: people will show up on time, and leave after you. But you're promoting the wrong thing. You're signaling that it's more important to be around than to create something that matters. The primary drive for giving people an expected set of office hours is because you're deriving a certain amount of value from it - if I ask the team to work from 9 to 5, then we will be able to achieve _this much_.

A better approach is to go the other way around. If you give clear goals and give people the means to achieve them, then it doesn't matter how they organize their agenda as long as they deliver what everyone agreed on. That's especially important if you want to be more inclusive as not everyone can give you a straight 8 hours day.

Another thing that happens is that you will scale your ability to delight your customers. When people are given goals instead of tasks, they care more about the outcome. There may be times when you'll look at the solution and will believe that you had a better idea. But if you give people room to make mistakes, then you give them room to grow. And it won't be long before your team starts moving much faster, while you can focus on other things.

## Negative outcomes are valuable too

One rebuttal for focusing on outcomes is that it can be understood as ignoring effort. But a negative result is still a result. Building a product can be seen as an iterative process that consists in being less wrong about what people want over time. 

Bad outcomes should be accepted as long as you learn from them. You should always do a post-mortem on projects, and try to understand what went wrong. It can be that the concept was poorly defined, that you didn't have enough resources, that external factors impacted the timeline, and yes, sometimes it will be because someone did a poor job. But more often than not, there will be many reasons why you didn't get the expected results, and it's rarely the fault of a single individual. So learn, fix, and repeat.

## Embrace a remote team culture, even if you're in the same office

Remote teams are forced by nature to document things, to communicate more, to be open. But more importantly, remote teams have to build trust and discard micro-management in favor of creating a strong culture where the vision, values, and goals are shared broadly.
Method override for PUT and DELETE in HTML
Tags: methodoverride, put, delete, html
Published: 2018-09-12 15:42:08

---
title: Method override for PUT and DELETE in HTML
published: true
description: Usage for method-override nom package to enable PUT and DELETE in HTML
tags: method-override, PUT, DELETE, HTML
---

Following four HTTP methods are commonly used in REST.
	• GET - This is to provide a read-only access to resource.
	• PUT - This is to create a new resource
	• DELETE - This is to remove a resource
    • POST - This is to update a existing resource or create a new resource.

When we try to use PUT and DELETE in HTML, we have a problem.   Browsers do support PUT and DELETE but it only by using request via AJAX, but not via 'HTML form'  submission.   

In both HTML4 and HTML5 spec, it says that the only HTTP methods that HTML form element should allow are "GET" and "POST".  There is no clear reason why PUT and DELETE are not supported by 'HTML form'.   My understanding is POST can be more effectively reused to support PUT and DELETE method.  PUT and DELETE typically don't redirect to an appropriate page, while POST will redirect accordingly.  We probably don't need to reinvent PUT and DELETE method for HTML but just reuse POST in this case (this is my opinion).

As the purpose of this page to understand how to use "method override" middleware to get around this problem. 
The following is probably the most popular way to get it done.   

First, install npm package for method-override.

`$ npm install method-override`

The idea is to use a header to override the method.  The following example is to override POST method to create PUT and DELETE method.    

Specify the header name a string argument of "methodOverride"
`const methodOverride = require('method-override');`

Override with '_method' header in the request.  You can choose your own header.
`app.use(methodOverride('_method'));`

'post' is allowed method by HTTP form. We can override this post method for the following "put" and "delete" method.
`app.post('/ideas', (req, res) => {
 // 
});`

"put" method is overriden post method.
`app.put('/ideas/:id', (req, res) => {
//
});`

"delete" method is overriden post method.
`app.delete('/ideas/:id', (req, res) => {
//
});`

Query override using HTML form. The following is for "post".
`<form action="/ideas/{{idea.id}}?_method=PUT" method="post">
<input type="hidden" name="_method" value="PUT">
</form>`

Query override using HTML form. The following is for "delete".
`<form method="post" action="/ideas/{{id}}?_method=DELETE">
<input type="hidden" name="_method" value="DELETE">
</form>`
And I'm the founder of freeCodeCamp Group on my region, what I have been doing?
Tags: freecodecamp, discuss, sharing, challenge
Published: 2018-09-12 15:34:20

---
title: And I'm the founder of freeCodeCamp Group on my region, what I have been doing?
published: true
description: Who doesn't know what's freeCodeCamp, read this post :)
tags: freecodecamp, discussion, sharing, challenge
---

Hello guys

I write this post just to make known the community I created in my region, and the one that I have been actively growing since February this year, and we have about 1300 members: freeCodeCamp Lisbon. All these people know a bit of programming, know or work in the area, or they want to change their careers and they want to know more about programming. And I share with you: Create communities, learn to share so then we can make a better world.

In my country for example, when it comes to the work of programmers, there is a lot of "job security", and then there are not many. But I want to change that paradigm and that's why I decided to bet.

It isn't an obvious paid job, but rewarding and very enriching. I was afraid to express the way I explain to people about programming, I was afraid to talk to people, I finally feared that I wanted to deal with them.

Until that type of fears evolves, and now they are qualities that I have. And of course, every day I am improving and have more visibility in the programming community of my Country. It has defects, but we have to improve;)

So I ask you to take a look at what we have built, with campers who knew nothing or did not know how to work as a team in this world, and who did not know how to use the GIT at all. and we worked hard for it. www.freecodecamplisbon.org

In this community, we created the meetups, where we took questions about the curriculum of freeCodeCamp itself, created several challenges to learn more together (which are challenges/games where we all learn and have fun with it) we create workshops and talks on various topics. We want to extend to make more types of events, such as hackathons. From time to time we sell t-shirts to people at freeCodeCamp Lisbon. And people like it! :)

Many thanks to all of you ;)
jQuery.param() in Vanilla JavaScript
Tags: javascript, devtips
Published: 2018-09-12 15:27:33

---
title: jQuery.param() in Vanilla JavaScript
published: true
description: Turning an object into URL query string
tags: #javascript #devtips
---

Let's imagine we want to make a GET request to the Google Translate REST endpoint `https://translation.googleapis.com/language/translate/v2`.

We need to pass the source & target languages, the text to translate, the format and our API key.

```js

const params = {
                  key: 'XXX',
                  q: 'I like coding',
                  target: 'fr',
                  source: 'en',
                  format: 'text'
                }

```

Our GET request URL should look like that:
`https://translation.googleapis.com/language/translate/v2?key=XXX&q=I+like+coding&target=fr&source=en&format=text`

To obtain that URL, we need to serialize the params object. Using jQuery, we can simply write `jQuery.param(params)`.

In plain JavaScript, we can use the URLSearchParams constructor, which returns a URLSearchParams object.

The problem is that URLSearchParams is quite restrictive about what formats it accepts. For instance, we can't just pass it our params object. It needs to be in this format:

`[ ["key","XXX"], ["q","I like coding"], ["target","fr"], ["source","en"],["format","text"] ]`

Worry not, EcmaScript 2017 gave us the Object.entries method, which turns our object in the exact format we need:

```js
Object.entries(params) // [ ["key","XXX"], ["q","I like coding"], ["target","fr"], ["source","en"], ["format","text"] ]
```

We can then initialize our URLSearchParams object in this way:

```js
const URLparams = new URLSearchParams(Object.entries(params))
urlParams.toString() // "key=XXX&q=I+like+coding&target=fr&source=en&format=text"
```

Finally we can make our request. Note that you can directly append the URLparams object to the URL string without calling the toString() method. But don't forget to add the `?` character before it.

```js
fetch('https://translation.googleapis.com/language/translate/v2?' + URLparams)
```

That's it! Thank you for reading my post and let me know in the comment section below if you know of better/other ways to achieve this.

## Note on browser support
Object.entries and URLSearchParams are supported in all modern browsers and can be polyfilled in IE11: [Object.entries polyfill](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill), [URLSearchParams polyfill](https://github.com/jerrybendy/url-search-params-polyfill)
A quick thank you to dev.to
Tags: devto, meta
Published: 2018-09-12 15:21:49

---
title: A quick thank you to dev.to
published: true
description: You all are amazing.
tags: devto, meta
---

You all are awesome.  I've never, _**ever**_ had over 1,000 followers on anything.  I'm incredibly humbled and honored by everyone's support.

Thank you.
Jonathan Irvin
How do you feel about changing naming terms? 
Tags: opensource, discuss, python
Published: 2018-09-12 15:21:22

---
title: How do you feel about changing naming terms? 
published: true
description: Should terms be changed depending on context?
tags: opensource, discuss, python
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ryz2qyfw25hd8p7wql3z.png
---

Here is something that has been controversial in the Open Source community this week.

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

A pull request to the main `cpython` library that proposes to change the `master/slave` terms used in the repository.

What are your thoughts?
World of Warcraft - Programmer's Edition
Tags: tools, beginners, discuss
Published: 2018-09-12 15:17:50

---
title: World of Warcraft - Programmer's Edition
published: true
description: The ecosystem of tools and whose is bigger; Enough, already.
cover_image: http://st3.ancientfacts.net/wp-content/uploads/2015/12/spartan-warrior-e1450977804822.jpg
tags: tools, beginner, discussion
---

I like [dev.to](https://dev.to). It's a pleasant respite from Twitter (the only other social media I subscribe to) and largely populated with a bunch of nice people who mean well and want to help each other. Being someone of a surly, snarky nature, hanging out with a such a community softens my edges. I dig it.

That said...I recently found myself pulling out the knives. 

I'm a Rails programmer. I've been in the game for a little over 3 years after a long "career" as a college teacher and freelance musician trying to side-step penury by any musical means necessary. I learned by watching [Ryan Bate's Railscasts](https://www.railscasts.com), blogs, online tutorials, [Codecademy](www.codecademy.com), whatever I could find working my help desk job that required me to help exactly no one. 

All that said, I'm protective of the language/framework and the community that helped me start an entirely new, awesome career. It's like Lois from Family Guy said: 
>"Say what you want about be, but come for my tribe and I'll rip your *()&$@ eyes out".

It seems to be a thing today to post blogs on _"Is ~lang~ dead?" "You should stop using ~lang~" "Starting a new app? Don't use ~lang`!"_.

### WHY??
My master's degree is in Jazz Studies. I'm capable of writing and performing music that is significantly more sophisticated than what 90% of people listen to on a daily basis. *So WHAT??* People don't listen to music to marvel at the complexity of the composer's skill. They want to _feel_ something, and it turns out you can get that done with a drum machine, a synth and 4 loops. 

#### Code serves a purpose, it is not a purpose unto itself

Is Elixir faster than Ruby? Yes. Is Ruby _fast enough_? Most of the time. It certainly is for that app you're building that has less than 1,000 customers. Is it good to know vanilla JS? Yes. Can you bang out work in React? *Yes*.

There are plenty of people out in the developer universe that didn't go to college for it, didn't start dinking around with code in their childhood and just want to chop wood and make a decent living doing it. Let's be respectful of our peers and put the kibosh on these childish hit-pieces on each others' tools. 

/rant
Any NoSQL true believers out there?
Tags: database, discuss, healthydebate
Published: 2018-09-12 15:15:30

---
title: Any NoSQL true believers out there?
published: true
description: 
tags: databases, discuss, healthydebate
---

This troll job by MongoDB made me wonder if anyone is really hardcore in favor of NoSQL for general use-cases.

{% tweet 1039191654274674690 %}
How to make input validation in Express.js app simple and clean
Tags: node, javascript, validation, express
Published: 2018-09-12 15:01:02

---
title: How to make input validation in Express.js app simple and clean
published: true
description: 
tags: nodejs, javascript, validation, expressjs
cover_image: 
---

https://101node.io/blog/how-to-validate-inputs-in-express-js-app/
My Dev/Tech Podcast subscription
Tags: development, technology, podcast, productivity
Published: 2018-09-24 20:12:23

---
title: My Dev/Tech Podcast subscription
published: true
tags: development, technology, podcast, productivity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/50cnci0hk4e0qnp5rrjo.png
---

I’m doing an effort to improve my English listening. I started listening to some news radio stations but I get bored like ~~heaven~~ hell. Then I found a better way, listening to people talks about what I like.

Be careful, podcast listening is very addictive, take on little doses. But…

### How can I listen to podcast?

There are a lot of apps and webs to listen to podcast, but my favorite is [Pocket Casts](https://www.pocketcasts.com/) because you can listen on your phone without adds.

You can subscribe to channels and get a push notification when they publish new pods. Even you can download it to listening offline.

You can subscribe to it easily from [my shared list on Pocket Casts](https://lists.pocketcasts.com/13ea8425-5098-4e25-98bd-b0f64bea6cc4).

#### Soft Skills

- [Developer Tea](developertea.com) ♥️
- [Healthy Software Development with Jayme Edwards](https://jaymeedwards.com/) ♥️
- [Soft Skills Engineering](https://softskills.audio/)
- [TED Talks Daily](https://www.ted.com/about/programs-initiatives/ted-talks/ted-talks-audio)
- [Unsupervised Learning with Daniel Miessler](https://danielmiessler.com/podcast/)

#### Software / Development

- [Coding Blocks](https://www.codingblocks.net/category/podcast/)
- [Complete Developer Podcast](https://completedeveloperpodcast.com/) ♥️
- [Coder Radio](https://coder.show/)
- [Command Line Heroes](https://www.redhat.com/en/command-line-heroes)
- [Full Stack Radio](http://www.fullstackradio.com/)
- [Hanselminutes](https://hanselminutes.com/episodes)
- [Ladybug Podcast](https://ladybug.dev/episodes)
- [Merge Conflict](https://www.mergeconflict.fm/episodes)
- [Practical AI](https://changelog.com/practicalai)
- [The Changelog](https://changelog.com/podcast) ♥️
- [The Console Log](https://theconsolelog.com/)
- [The Cynical Developer](https://cynicaldeveloper.com/podcast/) ♥️
- [The freeCodeCamp Podcast](https://freecodecamp.libsyn.com/)
- [The StackOverflow Podcast](https://stackoverflow.blog/podcast/)

#### Web & JS

- [Syntax - Tasty Web Development Treats](https://syntax.fm/) ♥️
- [JS Party](https://changelog.com/jsparty) ♥️
- [The Web Platform Podcast](https://thewebplatformpodcast.com/)

#### .Net

- [.NET Rocks!](https://dotnetrocks.com/)
- [The .NET Core Podcast](https://dotnetcore.show/)

#### Security

- [The Social-Engineer Podcast](https://www.social-engineer.org/category/podcast/)
- [Hackable?](https://hackablepodcast.com/)
- [Malicious Life](https://malicious.life/)
- [Darknet Diaries](https://darknetdiaries.com/) ♥

Am I missing something? Please let me know, comment that amazing podcast that you follow and there is not in my list.

**That’s All Folks!
Happy Coding** 🖖

[![beer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mkgsx4aw6qn9i9ax6as9.png)](https://github.com/sponsors/deinsoftware)
We now have Self-Healing Automated Tests
Tags: testing, devops, ai
Published: 2018-09-11 13:01:03

---
title: We now have Self-Healing Automated Tests
published: true
description: Self-Healing Automated Tests with Endtest
tags: testing, devops, ai
---

There are some moments when I do feel like we are living in the future.

A future where Artificial Intelligence and Machine Learning are helping us solve our daily problems.

I've had one of those moments a few days ago, when I discovered that [Endtest](https://endtest.io) has introduced Self-Healing Automated Tests.

![Self-Healing Tests Endtest](https://i.imgur.com/8gYBnBA.png)

But how does it work?

According to their FAQ:
***Whenever you run a test, our platform learns more about your application. 
If an element from your application is changed and the test gets broken, our engine will automatically fix the broken steps by updating the locators.***

Fascinating.

It appears that their technology is using some sort of Machine Learning. 

This means that we won't have to consume our precious time with maintaining our tests.

I have already tried out this functionality. Here's how I did it:
1. I changed the ID for one of the inputs in my application.
2. I ran the test with the Self-Healing mode ON.
3. The test detected the change and updated the locator from my test.

Brilliant.
Track Mutual Fund investments made through different platforms
Tags: howto, cas, portfoliomanagement, trackmf
Published: 2018-09-17 19:19:09

---
title: Track Mutual Fund investments made through different platforms
published: true
tags: How To,CAS,portfolio management,track mf
canonical_url: 
---

It is very common that investors tend to buy mutual funds through different third-party platforms due to various reasons. Most of the investors find it often difficult to keep track of their investments across these mutual fund platforms. This article helps investors on how to keep track of mutual fund investments in different portfolios across […]

The post [Track Mutual Fund investments made through different platforms](http://mfrepublic.com/track-mutual-fund-investments-made-through-different-platforms/) appeared first on [Mutual Fund Republic](http://mfrepublic.com).
Most Popular Development Posts Of The Week (12 September 2018)
Tags: react, javascript, vscode, webdev
Published: 2018-09-12 16:16:37

---
title: Most Popular Development Posts Of The Week (12 September 2018)
published: true
tags: react,javascript,vscode,webdev
canonical_url: https://medium.com/daily-now/most-popular-development-posts-of-the-week-12-september-2018-48dc9d5ab7d2
---

![](https://cdn-images-1.medium.com/max/1024/1*91HSFvIK6pgeqvMGu8O_xw.jpeg)<figcaption>There’s nothing wrong with staying small. You can do big things with a small team.</figcaption>

This week we launched our first version of Daily Progressive Web App! You are more than welcome to give it a shot [https://pwa.dailynow.co/](https://pwa.dailynow.co/). Currently, the PWA supports mobile version only but we are working hard to deliver the experience to other devices as well so stay tuned.

In addition, we released version 1.8.3 of the extension with the brand new Terminal window which shares with you the latest product announcements, so make sure to update to the latest version.

- [6 Skills Every Junior Developer Needs To Succeed](https://app.dailynow.co/r/938a758c16f7083144ac8c379ae9c8f2)
- [How to be a rockstar developer in 3 months](https://app.dailynow.co/r/9d1946889c0b5c3006cedf9ae9fcb4e3)
- [10 Interesting JavaScript and CSS libraries for September 2018](https://app.dailynow.co/r/6d230143f814b0a64a66c7d90ad6cd8c)
- [All-new VSCode Settings Editor UI](https://app.dailynow.co/r/89702418bae0bf23bb536d81f1e7e23f) by [Ahmad Awais ⚡️](https://medium.com/u/d8795cda25b6)
- [6 Reasons to Choose React for Frontend Development](https://app.dailynow.co/r/938d1cfd3d90587c848a67e8a70506ac) by [Matt Warcholinski](https://medium.com/u/1ecb684d89ab)
- [The DevTools that Changed my Life](https://app.dailynow.co/r/4f21b403bc48659912e511737aa60ae6) by [Doron Tsur](https://medium.com/u/1f92b1393a13)
- [27 No Frills Keyboard Shortcuts every Developer Should Follow](https://app.dailynow.co/r/12f307ec22b28a4732a4ba616b2ab26b) by [Chris Bertrand](https://medium.com/u/2ebeb4a3122a)
- [How To Develop A Professional React App](https://app.dailynow.co/r/e514bd579b57058618d8f9c256d1399a) by [Mark Muskardin](https://medium.com/u/eaec6bee03c2)
- [How to get dark mode working with CSS](https://app.dailynow.co/r/04e116c721c2852e51dd869407e1fba5) by [Frank Lämmer](https://medium.com/u/a5174f569319)
- [Helpful Terminal Commands for Beginners!](https://app.dailynow.co/r/a41b86af37a7eb1861e6a80e8a8a72ac)

***

[_Thanks to Daily_](https://www.dailynow.co/) _developers can focus on code instead of searching for news. Get immediate access to all these posts and much more just by opening a new tab._

[![](https://cdn-images-1.medium.com/max/640/1*jKbLhJsX7eMpNgqrVdWfuw.jpeg)](https://app.dailynow.co/download)

* * *
Hello! I'd love to meet people. I'm new here.
Tags: ama, introduction
Published: 2018-09-12 12:06:53

---
title: Hello! I'd love to meet people. I'm new here.
published: true
description: I'm new to dev.to, and would love to meet folks
tags: ama,introduction
---

I'm new to this community. I found it two days ago while trying to get feedback on my [new side project](https://dev.to/itsarnavb/hyperconsole-instantly-load-popular-js-libraries-into-devtools-and-experiment-11l4)

I'm liking dev.to, and would love to talk with folks here about what you're working on, what I'm working on, or anything at all.

You can post here, or DM me on [Twitter](https://twitter.com/itsarnavb). Ask me about [this](https://medium.com/free-code-camp/how-i-used-crowdsourcing-to-help-kerala-floods-rescue-operations-12dc97c9a24b)

I don't mind getting on calls for long form convo, and would love to talk to folks here.

Cheers!