teleren/devto huggingface dataset:
The Frustrations of a Developer
Tags: development, career
Published: 2020-06-29 03:42:17

Software engineering and development can be one of the most frustrating career choices in the game now. But with those great frustrations come greater feelings of pride, accomplishment, and pure joy over what a person can create in the digital space. 

Majority of the frustration a developer will encounter on their career path, if not ALL of their frustration, will be because of their own short comings in understanding a code base or programming language. This is definitely not a jab at anyone’s aptitude and potential for learning. What I merely suggest is that as humans, we are limited by the means of knowledge we have now, in the current space of embodiment. We may understand that there is more to understanding of our field, more tips, tricks and knowledge out there waiting over the horizon for us. Yet we still are in our own point of reference with our knowledge. 

This post is based off of an experience I am recently encountering with developing a suite of applications for myself, so that I can better my skills for the next company I work for. I have found that I thrive in hands on experience of learning anything. And I mean anything. For me to learn a new skills, I have to get my hands into it, feel around in the dirt, start to sweat, swear and cuss, and then I will be able to understand my surroundings. Some people learn differently: through audio, through reading, through hands on, or through some combinations of the sorts.


But my current frustration with myself have been because of this suite I am creating. I am developing a series of tutorials that I will be posting to this site and across the web, and because I do not fully grasp some things yet, I am becoming frustrated, upset, and somewhat angry. I do know these feelings will pass because I have begun to understand my mistakes to go forward.  

Software development and engineering is frustratingly fun. It is rewarding, may it be that the reward is a new dent in the wall from me throwing my coffee mug into it, or a new algorithm mastered. 

Till next times friends!
It's been said a closed mouth doesn't get fed. If true, how do you toot your own horn at work without being annoying?
Tags: motivation, developer, career
Published: 2020-06-29 03:03:13

---
title: It's been said a closed mouth doesn't get fed. If true, how do you toot your own horn at work without being annoying?
published: true
description: Curated answers to the question from the Code Connector community Slack channel.
tags: #motivation #developer #discuss #career
//cover_image: https://direct_url_to_image.jpg
---
Try to be as factual as possible with achievements. "I did X which will help with Y" or "That X project that I did can help with this problem". I'm okay with adding indefinite details like "X reduced run times significantly", but avoid "I did a great job on X" as that's passing judgement on the action and not presenting facts.

It’s not about tooting my horn. It’s about doing a good job and then directly asking for harder work, more responsibility, new opportunities. Companies need go getters just as much as they need people to silently do the work others might not want to do. Advocating for yourself can keep you doing things you want to do rather than work that just there for anyone to do.

You can toot your horn by consistently going above and beyond what is expected and in service of the team. Humbly let your supervisors know what you accomplish and how it helps the company/team. If what you did is in service to others, they can't deny your value.

Code Connector Contributor: Corey McCarty

[Code Connector](https://codeconnector.io/) is a non-profit that's organized tech meetups to help people start their journey into tech. You can join our daily conversations by clicking this link: [Code Connector slack channel](https://bit.ly/2Ywnzqc).
GitHub Review Request
Tags: github, git, opensource
Published: 2020-06-29 03:01:44

Hello Dev Community

I'm a beginner in the development field and my interest and knowledge is going on increasing

So I just made some changes in an open source project GENTELELLA By ColorlibHQ and it's asking me to request review for my pull request

Can anyone explain how to request a review for my pull requests

Thanks for the community 😊
Help me revamp my web dev portfolio!
Tags: javascript, react, codenewbie
Published: 2020-06-29 02:59:16

I'm currently getting ready to revamp my portfolio page (I tend to use it as a way to update myself on design + dev knowledge - so my portfolio 'levels up' as my experience does.)

I've been writing code for ~10 months now, and I wrote this in the 8th month. Overdue for a makeover, eh?

[View here](https://justinirabor.com)
[See my projects](https://justinirabor.com/projects)

I would appreciate actionable feedback/resources/considerations for making the new version great.

Thank you!
'Break'-ing the Palindrome Checker Algorithm 
Tags: javascript
Published: 2020-06-29 02:55:45

In a previous article, I addressed the palindrome algorithm using recursion. {% link https://dev.to/clarkj99/a-few-exercises-for-learning-recursion-4803 %} A few days ago, I came across a solution using an iterator to get the job done.
```javascript
function palindrome2(str) {
    return str
        .split('')
        .every(
            (char, i) => char === str[str.length - 1 - i]
        )
}
```
This idea utilizes a built-in Javascript iterator 'every', which returns true when a condition is met by every item in the array.  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/83dzwzcasn0a4hiawc0g.gif)

Take the word 'ROTATOR'.  It's definitely a palindrome, and we can tell by comparing the first letter to the last letter, then the second letter to the next-to-last letter, and continue until every letter has been tested.   If every letter has a match on the opposite side of the word, then we have a palindrome.

The **.every** function will get the job done.  However, we're doing a little too much work.  We should be able to stop testing for matching equalities once we reach the halfway point.  After that, every check is redundant.  Unfortunately, using **.every** doesn't provide a way to break out of iteration and continue.

Thanks to ES6, we have another solution.  Using the **for... of** construct to iterate gives the option to take advantage of the **break** keyword. 

```javascript
function palindrome(str) {
    let valid = true;
    const arr = str.split('')
    for (const [i, char] of arr.entries()) {
        if (i > (arr.length / 2))
            break;
        else if (char !== arr[arr.length - i - 1]) {
            valid = false;
            break
        }
    }

    return valid
}
```
This solution isn't quite as elegant as the first, but it is definitely more efficient.  Execution will now cease if either the palindrome test fails on a character or we reach the halfway point.  The addition control removes redundancy and reduces the execution time.

More information about **for...of** is available on [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of).

Happy coding!

<span>Cover Photo by <a href="https://unsplash.com/@photified?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Justin Main</a> on <a href="/s/photos/symmetry?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
Day 28 : #100DaysofCode - Adding Dev.to blogs to personal page
Tags: 100daysofcode, codenewbie
Published: 2020-06-29 02:55:00

Today, I focused on adding my most recent blog posts to my personal webpage. I used the following dev.to posts to get my website to render my latest blogs to my portfolio. 

{% post https://dev.to/olawanle_joel/fetch-your-posts-from-dev-to-api-with-javascript-i36 %} 

{% post https://dev.to/abimaeloo/testing-dev-to-api-5h8e %}  

Although, I am still working on making my website responsive with the new updates. In general, with the use of the posts above, adding my dev.to articles was easy to implement. Be sure to check out the <a href="https://docs.dev.to/api/#section/Authentication"> Dev.to beta API documentation </a>

Sincerely, 
Brittany 

Song of the day: 

{% youtube dXZyyInGBdo %}
Overfitting
Tags: beginners
Published: 2020-06-29 02:44:58

## Too Good to Be True

Overfitting is when you train a model too closely an existing data set. In every data set, there is signal and noise. When predictng something, you want your model to learn the signal or what part of the data affects your desired result is. For example, if you have a data set on house pricing, you want the model to learn that location or number of bedrooms is a signal that increases its price. Noise is just the randomness of collected data. You want all of your predictive models learning from the signal in the data and not the noise. Overfitting happens when you don't take into account that  data could have noise and try to fit your model to the noise.   Although an overfitted model will correctly classify the data it trained on, it will fail to correctly classify new data. Here is an example:

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

The black line represents a good model that pretty clearly identifies a dividing line that accurately classifies all the blue and red dots with a few exceptions, which can be attributed to the natural noise of data. The overfitted line divides the two colors with a 100% accuracy; however, it seems to look very unnatural and in simple terms "tries too hard". This overfitted line accounts for the noise in the data and does not filter it out. 

## How to Identify Overfitting

The easiest way to identify overfitting is splitting your data set before training your model into a train and test split (I like to use an 80%/20% split respectively). Then you can train your models on the train set and then see how accurately it predicts the test set. If it tests well on the training set like 92% but predicts the test set at a 65%, then it is overfit. 

## How to Prevent Overfitting

The most common practice I use to prevent overfitting is cross validation. 

Cross validation is when you split your data into multiple sets of train test splits. If you're cross validating with 5 sets, it means you have 5 sets of 80/20 splits. Each split makes sure it doesn't have the same test split. This way you can train your models on multiple parts of the data set and thus reduces overfitting on one portion of the data.
My experience deploying a Django back-end to AWS Elastic Beanstalk was not good.
Tags: aws, django, elasticbeanstalk
Published: 2020-06-29 02:17:04

So i decided to create a web app for my father and his business. Since my client was family, I decided to go outside my comfort zone and explore the DR stack, Django back-end, React front-end. The use cases for this site required fast access, so I decided to go with the expensive AWS Elastic Beanstalk to deploy my Django app, (I also used S3 and Cloudfront for React).
I had such a terrible time debugging my various AWS micro-services, whether it was configuring my Elastic Beanstalk environment with my RDS (PostgreSQL) database, running Django migrations with EC2, and reading pages of outdated AWS documentation. 
If it wasn't for fellow developers of stackoverflow, I'd never pull off deploying my site, and realizing how outdated the provided documentation was. Especially the docs for EC2 (which now uses Amazon Linux 2, rather than the instance Amazon Linux 1, this lead to a huge overhaul in the provided file structure). Thank you devs for saving me so much time and energy.
I always praised Amazon and AWS for building such amazing software, but I've never grown so frustrated trying to accomplish something so trivial. For that, I will not be one of those people anymore. I'll always be open to using new technology to allow me to grow as a dev, but now I will always be skeptical of tech, especially for renowned companies such as Amazon. To conclude on a brighter note, I now have the confidence to build software in any possible way, as long as I have stackoverflow.

Thanks for the read,
kleimaj
Athletes train their physical abilities and their sports specific skills. How can developers do the same using that analogy?
Tags: developer, discuss, beginners, career
Published: 2020-06-29 02:10:01

---
title: Athletes train their physical abilities and their sports specific skills. How can developers do the same using that analogy?
published: true
description: Curated answers to a question from the Code Connector community Slack channel.
tags: #developer #discuss #beginners #career
cover_image: ![athlete](https://dev-to-uploads.s3.amazonaws.com/i/6v245qt4tml8brk0c5wf.jpg)
---
1. The nature of athletics leads to comparing your skills with others. Athletes compete during practice with their team and against others, usually starting at a small level and working up to top level competition. You shouldn't be alone in your pond. Joining social groups and working with others helps you to see how others do things, gives a sense of humility, and also competitiveness and aspiration.

2. To become skilled at anything you need discipline and grit. Set short and long term goals, write them somewhere so you can see them, and chase them. "No discipline seems pleasant at the time, but painful. Later on, however, it produces a harvest of righteousness and peace for those who are trained by it."

3. Athletes train hard to be able to handle any situation encountered in their sport. Therefore, in tech if we expose ourselves to many concepts, we will build a powerful arsenal of resources to handle any situation.

4. A funny thing about muscle development is in order grow bigger muscles, you have to strain your current muscle to the point of damage. As it is with us, and the pains we go through with bugs and missing semicolons, all to increase our muscle memory for certain tasks and mental strength (read flexibility) for more complex tasks.

5. Robustness is the breadth of a person or a team's skills profile. Like an athlete who competes in the decathlon (10 events) is Robust. Anti-Fragility describes systems that **adapt** and **rebound** after a challenge. Developers should be Robust and Anti-Fragile in learning from the pains and errors to become stronger.

6. Athletes first recognize their region where they lack. Knowing our weak spots can give us a direction to work in.

7. Touch typing skills are a must. The faster you type CORRECTLY the more work that you will get done when you are writing code.
 
8. Read other people's code. Whether it is a formal code review or just browsing open source repositories. You will start to develop a sense for what makes code readable. 

9. Talking about code and development is a skill. It's hard but a skill to mix business terms, variable names, and programming concepts in conversation.

Contributors:Corey McCarty, Agrit Tiwari, Steve Hallman, Dennis Kennetz, Coriano Harris, Lawrence LockHart

[Code Connector](https://codeconnector.io/) is a non-profit that's organized tech meetups to help people start their journey into tech. You can join our daily conversations by clicking this link: [Code Connector slack channel](https://bit.ly/2Ywnzqc).
Dart List Explorer
Tags: dart, list, flutter, showdev
Published: 2020-06-29 02:09:53

---
title: Dart List Explorer
published: true
description: Created a dart list explorer similar to sdras array explorer
tags: dart, list, flutter, showdev
---

Hello Devs,

I started working on flutter from last month. Initially I stumbled upon writing good code as it's a new language, but now the situation is much better. When I started learning JavaScript Sarah Drasner's [Array List Explorer](https://arrayexplorer.netlify.app) helped me a lot. Now I forked this array list explorer and added Most of the Dart list methods for common usage. In Future I will try to add few more list methods. 

Here's the url, [Dart List Explorer](https://dart-list-explorer.netlify.app)

Please check it out

Gracias
How to authenticate a react app through AWS Cognito
Tags: react, aws, typescript
Published: 2020-06-29 02:08:55

Hi everyone, last week I had to do an entire authentication managing with ReactJS and it was such a headache, since you need to manage `localStorage`, `requests`, `auto refreshToken`, etc.

So, to wrap all what I made, I created a react library that facilitates authentications through AWS Cognito. I released the version 1.0.0 today and I decided open it to suggestions since I am going to release the version 2.0.0 in the next couple of weeks and with some reviews and suggestions, I am sure, this project will be amazing.

https://github.com/Aztecs-Team/cognito-oauth-library

Please, let me some reviews or tips here, or if you're able to test, any issue can be posted on Github Issues.

Really thank you, guys!
Learning About: Building Responsive Websites
Tags: html, css
Published: 2020-06-29 01:47:24

I'm currently learning about designing and coding responsive websites. 

To get a good understanding of what a responsive website is, it's pretty important to understand what a responsive website <em>isn't</em>. Or, in other words, it's important to understand what <em>other</em> types of websites exist and that we interact with. 

##3 types of non-responsive websites:
1. Static: 
These websites are designed for desktops and desktops only, and are built with a fixed width. We want to avoid building these as much as possible!

2. Fluid: 
These websites are, well, fluid. All websites are fluid if you don't specify a width, actually. Fluid sites work on all devices and if widths are specified, they are done so in percentages as opposed to pixels. The thing to note here is that the layout never changes. 

3. Adaptive: 
Adaptive sites, you guessed it, adapt to the width of their device. The hitch? Widths have to be specified for EVERY. SINGLE. DEVICE. Which means that you need different stylesheets for EVERY. SINGLE. DEVICE. 


##Responsive Websites:
- Are a fabulous combination of easily maintained fluid websites with user optimized adaptive websites. 

- Combine the ability to specify widths in percentages and also declare minimum widths in pixels.

- Use media queries to specify sizes, and can coexist in the same stylesheet. SCORE! 


Next up: Media Queries
Learning Golang (some rough notes) - S01E04 - Function Closures
Tags: go, learning
Published: 2020-07-01 12:44:37

---
title: Learning Golang (some rough notes) - S01E04 - Function Closures
published: true
date: 2020-06-29 01:00:00 UTC
series: Learning Go
tags: go, learning
canonical_url: https://rmoff.net/2020/06/29/learning-golang-some-rough-notes-s01e04-function-closures/
---

👉 [A Tour of Go : Function Closures](https://tour.golang.org/moretypes/25)

So far the Tour has been 🤔 and 🧐 and even 🤨 but function closures had me 🤯 …

Each of the words on the page made sense but strung together in a sentence didn’t really make any sense to me.


Google resources threw up some nice explanations:

- [https://gobyexample.com/closures](https://gobyexample.com/closures)

    I like this site as it links all its examples to [The Go Playground](https://play.golang.org/p/66Lgw9iIIch) where you can try out each code block

- [http://tleyden.github.io/blog/2016/12/20/understanding-function-closures-in-go/](http://tleyden.github.io/blog/2016/12/20/understanding-function-closures-in-go/)

    This comment was particularly useful

    > Essentially you can think of them like **stateful functions** , in the sense that they encapsulate state.

    It made things click a bit for me, more than the abstract alphabet soup that other examples used :)

This one gets into some more hands-on examples

- [https://www.calhoun.io/5-useful-ways-to-use-closures-in-go/](https://www.calhoun.io/5-useful-ways-to-use-closures-in-go/)

It also acted as a spoiler for the [function closure exercise](https://tour.golang.org/moretypes/26) since that was the first example it gives `:)`

```golang
func fibonacci() func() int {
	f1 := 1
	f2 := 0
	return func() int {
		f1,f2 = f2, (f1+f2)
		return f1
	}
}
```

I tweaked the version that [I’d seen](https://www.calhoun.io/5-useful-ways-to-use-closures-in-go/) so that the return values stated at zero

```golang
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 
```
What is Partitioning in Azure Cosmos DB?
Tags: azure, dotnet, database, tutorial
Published: 2020-06-29 01:27:55

---
title: What is Partitioning in Azure Cosmos DB?
published: true
date: 2020-06-29 00:58:40 UTC
tags: azure,dotnet,database,tutorial
canonical_url: 
---

#### Understanding partitioning in Azure Cosmos DB is vital to build applications that can scale, but what does partitioning mean in Azure Cosmos DB?

![](https://cdn-images-1.medium.com/max/560/0*uIiw9Clzh_NhbX9r.png)

Azure Cosmos DB uses partitioning to scale containers in our database to meet the performance needs of our application. Ensuring that we partition our data correctly is critical for building applications that efficiently and effortlessly scale to meet the needs of our users.

{% youtube zY09mdcIz0E %}

In this video, I explain:

- What partitioning is in Azure Cosmos DB.
- What the differences are between **Logical** and **Physical** partitions and how we can manage them.
- What a **Partition Key**  is.
- How we can **choose an effective partition key** depending on our needs and how we can perform queries inside and across our partitions.
- I will finish off by going through a demo of how you can create a container with a partition key in C#, how we can perform queries against our partitions and **how we can monitor our physical partitions** via the Azure Portal.

By the end of this video, you’ll have a clear understanding of what partitioning is in Azure Cosmos DB, how you can choose an effective partition key depending on the needs of your application and you can query your data inside and across your partitions in code.

If you have any questions, please feel free to ask in the comment section either here or on YouTube.

_N.B, if you prefer to read an article, rather than watching a video. I have previously written on partitioning on Azure Cosmos DB here:_ [https://medium.com/@willvelida/understanding-partitioning-in-azure-cosmos-db-361c4e120852](https://dev.to/willvelida/understanding-partitioning-in-azure-cosmos-db-1o7l)