teleren/devto huggingface dataset:
Stepping back from the developer mindset
Tags: learninpublic, softwaredevelopment, problemsolving
Published: 2020-03-07 18:58:09

I recently talked with a friend who was on a bit of a job hunt. He had a spreadsheet that he was using to keep track of organizations he had done research on and liked. Job openings at those organizations come and go. He wanted to keep tabs on all of these places in case an exciting opportunity came up.

I'm sure that initially he was periodically clicking through the career page links in his spreadsheet to see what was open. As the list grew, this became tedious. He needed a better, less-manual way to keep on eye on all of these organizations.

My first instinct when I heard him telling this story was one that I think a lot of developers have. Perhaps you, the person reading this, already have the same thought bubbling in the back of your mind.

> "I bet I could whip up a script for this. It could parse through your spreadsheet, visit each page, look for changes in the job listing, and print out a summary. Maybe I could even figure out how to get it to send you an email of the results."

My friend, a non-developer, had a much more pragmatic solution. He found an app ([VisualPing](https://visualping.io/)) that can take a list of URLs and notify you when any of them change. His first instinct wasn’t to manufacture some bespoke solution. He assumed there was a tool out there for the job, found it, and started using it.

While he was already tracking these sites and moving on to the next thing, I would have just been starting in on writing a script; a task I would likely run out of steam on. He was focused on solving the actual problem he had, whereas I was manufacturing another problem that I thought I could solve with my skillset. I think this kind of thing happens all the time. My developer mindset makes everything look like a nail for my software hammer. That mindset prevents me from taking a step back and thinking about other approaches. The lesson for me is to ask the question, "If I wasn't able to or didn't have time to code my way out of this problem, how else would I go about solving it?"

Solving real problems instead of manufacturing new ones: this is the power of thinking like a non-developer.

---

Notes: The term "non-developer" feels off to me. In this case it seems like the most precise way to make my point. I'm concerned that it comes across as demeaning or othering. How else could I phrase this?
C++ Overloads
Tags: c
Published: 2023-01-06 01:37:41

---
title: C++ Overloads
published: true
date: 2020-03-07 18:52:05 UTC
tags: C
canonical_url: https://brandonrozek.com/blog/cppoverloads/
---

One thing I like about a lot of common languages like C++ and Python is that you can overload operators. This makes it easy to create libraries for other developers that are easy to use. We are going to explain common operators you may want to overload in C++.

## Quick Example

Let’s create a class

```
class DataType {
    public:
      DataType() {}
      bool operator==(const DataType&, const DataType&);
    private:
      int y;
}

```

Notice that we’re going to overload the `==` operator for this DataType.

```
bool operator==(const DataType &x1, const DataType &x2) {
    return x1.y == x2.y;
}

```

## Common Unary Operators

| Name | Operator |
| --- | --- |
| Increment | `++` |
| Decrement | `--` |
| Function Call | `()` |
| Boolean Conversion | `(bool)` object |

```
class DataType {
  public:
    DataType() {}
    // Boolean Conversion
    bool operator bool(const DataType&);
    // (In/De)crements
    DataType& operator++(DataType&);
    DataType& operator--(DataType&);
    // Function Call operator
    void operator(DataType& x)(int);
  private:
    int y;
}


// Boolean Conversion
bool operator bool(const DataType& x) {
    return x.y == 0;
}
// (In/De)crements
DataType& operator++(DataType& x) {
    x.y++;
    return x;
}
DataType& operator--(DataType& x) {
    x.y--;
    return x;
}
// Function Call Operator
void operator(DataType& x)(int n) { 
    x.y += n; 
}

```

## Common Binary Operators

| Name | Operator |
| --- | --- |
| Stream Insertion | `<<` |
| Stream Extraction | `>>` |
| Less than | `<` |
| Equals | `==` |
| Subscript | `[]` |

Implementing `<` gives you `>`,`<=`, and `>=` for free.

Implementing `==` gives you `!=` for free.

```
class DataType {
  public:
    DataType() {}
    DataType(int x) { y += x }
    // Stream Operators
    std::ostream& operator<<(std::ostream&, const DataType&);
    std::istream& operator>>(std::istream&, DataType&);
    // Arithmetic Operators
    DataType& operator+=(DataType&, const DataType&);
    DataType operator+(const DataType&, const DataType&);
    // Comparison Operators
    bool operator<(const DataType&, const DataType&);
    bool operator==(const DataType&, const DataType&);
    // Array Subscript
    int operator[](DataType&, std::size_t);
  private:
    int y;
}


// Stream Operators
std::ostream& operator<<(std::ostream& os, const DataType& x) {
    os << x.y;
    return os;
}
std::istream& operator>>(std::istream& is, DataType& x) {
    int y;
    is >> y;
    x.y = y;
    return is;
}
// Artithmetic Operators
DataType& operator+=(DataType& x, const DataType& z) {
    x.y += z.y;
    return x;
}
DataType operator+(const DataType& x, const DataType& z) {
    return DataType(x.y + z.y);
}
// Comparison Operators
bool operator<(const DataType &x, const DataType &z) {
    return x.y < z.y;
}
bool operator==(const DataType &x, const DataType &z) {
    return x.y == z.y;
}
// Array Subscript
int operator[](DataType& x, std::size_t idx) {
    return x.y;
}

```
Nevertheless, Harishma Coded #Happy Women's Day
Tags: womenintech, wecoded
Published: 2020-03-07 18:45:51

Hi folks, I just wanna share my story of how I started coding.

I had a little passion of becoming a software developer. That's why I choosed Computer Science in Engineering. I wanted to build some app but didn't know how to start. One of my best friends who was techy in my college helped me on what to learn, how to get started.  I started with Java. I enjoyed solving coding problems. That techy best friend explains tech concepts to all his friends and never hesitated to help and I am very grateful to that techy best friend who showed the way how to get started. Slowly I started coding and learnt new tech concepts and implemented it.

## Now I’m working as Full Stack Developer with 1 year experience. Tech stacks I work on are Spring, React, Redux, Redux Saga, Datastore.

I try to answer the questions in Stack Overflow and had written an article on Website security. 

My coworkers sometimes appreciates my work and often they point out my mistakes as they expect high quality of code. I try to take that in positive way. If no one is telling my mistakes. I will never know my mistakes and will never improve myself. But yes often I felt miserable still I have faith in myself that I will improve myself and will do the best work. I know that they wanted me to improve my tech skills. I am thankful to them. 

Now my focus is to learn new things daily, share my learnings to other colleagues and wanna implement it in my self projects, if possible in my office projects. #NeverStopLearning

##"COURAGE COMES WHEN "SOMEONE" BELIEVES IN YOU"   
##   ("SOMEONE  ===  YOU") 😉

Just want to conclude by this, 

## WHEN I FAIL, I SAY TO FAILURE - "HEY I AM COMING BACK SOON TO FAIL YOU" 😎

Thank you my dear friends for reading my story! I hope you won't quit your passion how much difficulties you face.
Why I started blogging
Tags: beginners
Published: 2020-03-07 18:18:15

#### Before I start this exciting journey let me introduce myself. 

 👋 Hi ! I am Rutik Wankhade. I am a frontend developer , an avid learner who is passionate about web technologies and building things with code. I love creating open source projects and contributing to the community. Besides programming I love reading books and biographies, blogging, watching tedtalks, playing sports, travelling and learning new things every single day.

### Why I started blogging ?
Well the purpose of this blog is pretty simple. I always believed in the mantra of learn-apply-share. So this blog is all about my learning and experiences. Right now I am in my learning phase and I think this process of documenting my journey from the beginning is really gonna help me learn and grow .
But wait, I am not an expert ! So what ? I think waiting till you “become an expert” is a waste of time. The best advice I had was You Will Never Be Ready. Do It Anyway! And we all can contribute with what we know today. It doesn't have to be a big thing. We can start small. I guess this way I can see things in a fresh perspective . Here are top 3 reasons why I started this blog.

#### 1. Documenting my journey
To be honest I am writing this for myself. These are my notes. If I feel like writing about a topic, I will go for it! I want to document everything I learn.

#### 2. Learn by explaining
> The ultimate test of your knowledge is your capacity to convey it to another.  -Richard Feynman

it is obvious that one has to do a lot of research in the process of writing a blog, and by doing so I am gonna learn a hell lot of things by studying different topics in depth. 

#### 3. Giving back to the community
We have some awesome people in the dev industry who are always ready to help and contribute. Their existence is a gift to the community. So this is also my chance to give back to the community that helped me get started, a place I am proud to be part of. 


So I am very excited. And looking forward to learn and write some interesting posts here. 

You can connect me here.
 [Linkedin](https://www.linkedin.com/in/rutik-wankhade) and [Github](https://github.com/rutikwankhade)

And Follow me on [Twitter](https://twitter.com/WankhadeRutik) 
{% twitter 1211984062006616064 %}
Creating a simple website with Node.js, Express, and EJS
Tags: node, webdev
Published: 2020-03-07 18:12:45

This blog is for beginners who wanted to start with Node.js. We will be creating a simple website design with Node.js and the Express framework and will be using the EJS view engine to manage our HTML code.

Prerequisites

Step 1: Install nodejs and npm

If everything installed correctly, open terminal and type node -v and npm -v and you should get the following output based on the version you have installed

<code>
node -v
8.9.1
npm -v
5.8.0

</code>

Step 2: Install Express generator package globally (g stand for global in command)

<code>npm install express-generator -g</code>

Step 3: To run our node server we will install the Nodemon package globally

<code>npm install nodemon -g</code>

Open a terminal and move to your directory where you want your code to reside and type

<code>express --view=ejs mywebsite</code>

As I told we will be using ejs view engine to manage our HTML code throughout our tutorial and this command will create the skeleton of our node application and will set ejs as our default view engine

The next step is to install all dependencies listed in mywebsite/package.json file. Move to your myapp directory and type

<code>npm install</code>

Now we are all set to run our node server, type command

<code>nodemon start</code>

If you see the following output in your terminal, voila!!! the node server is up and running

<code>

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./bin/www start`
</code>

Read More about this article <a href="https://appfinz.com/blogs/creating-a-simple-website-with-node-js-express-and-ejs/">Creating a simple website with Node.js, Express, and EJS</a>
Angular 8|9 Node & Express JS File Upload Tutorial
Tags: angular, node, wwebdev
Published: 2020-03-07 18:02:36

Right now and Node.js blog arrangement, we are going to see how to transfer documents on the Node server. To make an Angular picture transfer part, I am going to utilize Angular 8|9 front-end system alongside the ng2-document transfer NPM bundle; It's a simple to utilize Angular mandates for transferring the records. 

I am likewise going to take the assistance of Node.js to make the backend server for Image or File transferring demo. At first, we'll set up an Angular 8|9 web application without any preparation utilizing Angular CLI. You should have Node.js and Angular CLI introduced in your framework. Source Code is additionally appended with this segment you can download it and use it anyplace in your activities 

So let's make the neighborhood server utilizing Node.js and multer middleware. Multer is a node.js middleware for taking care of multipart/structure information, which is basically utilized for transferring documents. When we are finished setting in advance end and backend for our File transferring demo at that point, we'll see bit by bit how to arrange document transferring an Angular application with the assistance of the Node js server. 

<h3>Prerequisite</h3>

So as to show you Angular 8|9 File transfer demo, I am expecting that you ought to have Node.js and Angular CLI introduced in your framework. In the event that not, at that point download Node js Here 

In the wake of Installing Node js Now Run the accompanying the order to introduce Angular CLI. It will introduce Angular CLI on your framework all-inclusive

<p>Read the full article here <a href="https://appfinz.com/blogs/create-an-angular-image-upload-component/">Angular 8|9 Node & Express JS File Upload Tutorial</a>
Surprise for Women Day app
Tags: wecoded, forwomenday
Published: 2020-03-07 17:50:42

Hi everyone,

Today I am creating a surprise app for women day and update this post once the project is finished.

Here is the project [For Women Day Project](https://github.com/wolfiton/forwomenday)

This project is opensource, so I encourage you to modify it.
Also, there is more to this project then what is shown in the preview.


App live here: https://wolfiton.github.io/forwomenday/



- If you want to wish to somebody else a happy birthday just delete the name in the input 


I hope that the ladies and misses like my surprise app For Women Day.



I wish a happy birthday too all the Women in the World.

Credits:

Images

[Flower] (https://en.wikipedia.org/wiki/Nelumbo_nucifera#/media/File:Sacred_lotus_Nelumbo_nucifera.jpg)

[Cake](https://www.flickr.com/photos/rexness/5920122416)


[Ladybug](https://pixabay.com/id/photos/kumbang-kecil-serangga-alam-kumbang-4340628/)

[VueJs docs](https://vuejs.org/v2/guide/)
New Unit Testing Tool For JSON APIs. TypeScript Like Syntax.
Tags: typescript, json, unittest, api
Published: 2020-03-07 17:39:29

Why are you write so much codes to check your JSON REST API? JSONAPIUnit is a new unit testing tool that enable users to write test cases easily. 

## Normal Framework

```js
var client = new Client();

var request = client.get("http://127.0.0.1:8000/api/user/login");

var headers = new Headers();

headers.append("Content-Type","application/json");

// blah blah blah
```

## JSONAPIUnit

```jsonc
{
  "url":"http://127.0.0.1:8000/api/user/login",
  "request":{
      "username":"{{username}}",
      "password":"{{password}}"
  },
  "response":{
      "body":{
         "token":"{{token:string}}",
         "name": "{{string}}",
         "limit": "{{limit: number && limit>250 }}",
         "posts": [
             {
                "id": "{{number}}",
                "title": "{{string}}"
             }
         ]
      },
      "status":200
  }
}

```

This is an open source project. [Read more at github](https://github.com/whizsid/jsonapiunit)
Brave enough to be bad at something new
Tags: wecoded, womenintech, codeiscolorful
Published: 2020-03-07 17:32:23

A year ago, I got fired from a marketing job, that paid so little, I had to wait tables on the side. I would have probably laughed in your face if you told me I would be able to get a job as a product engineer. Me, a developer? Unbelievable. Yet here we are. Pinch me. 

After getting laid off on very short notice and waitressing full-time to not loose my apartment, I was determined to shift my career. A desperate (and maybe little naive) attempt to protect myself from anything like this happening again. 

In a bit of a whim I applied to a programming bootcamp in my neighbourhood. In later job interviews I tried to line up this decision with breadcrumbs from my CV: how I already had programming courses during my studies, did research with R and have of course 'always been super interested in programming' - which is not exactly the whole truth. I love learning. I desperately wanted a profession with efficacy, clear tasks and solutions and most importantly I wanted to get away as far away from insecure, competitive marketing jobs as I possible could - I just didn’t know programming was the answer.  I do now. 

The course was exactly as hard as you picture the attempt to learn a whole new discipline in three month is. Each week, we sped through a new programming language. And each week was a thunderstorm of mixed emotions: unbelievable highs when something finally and magically worked,  a lot of confusion regarding all the new materials and mainly astonishment at my own courage (and or madness) to actually try to become a web developer in three month. 

When applying for jobs near the end of our program, the rollercoaster started all over again - I did not feel ready to be a developer out in the real world at all and was convinced that recruiters would laugh at me. Why would somebody hire and pay me for something I spend three month learning when it had been impossible to find a job in a field I had actually a degree in? 

Yet they did. None of my many doubts have come true. In none of the gazillion job interviews I had (out of a sheer panic nobody would hire me) I got mocked, laughed at or criticised for shifting careers. The opposite: people where fascinated by my courage to start something new, interested in the app I developed and  - most surprisingly - wanted to hire me. 

And now I am a product engineer. And I love it. I still have to remind myself everyday that it’s ok to not have all the answers and to look stuff up. And that nobody is going 'catch me' while I 'fake' being a programmer. I guess that’s what they call imposter syndrome. Along my journey, there were so many amazing and supportive people who continue to believe in me and I am eternally grateful for them and the opportunity I got. Me, a developer? Still can’t fully believe it.
Nevertheless, Amy Coded Forward
Tags: wecoded
Published: 2020-03-07 17:28:53

---
title: Nevertheless, Amy Coded Forward
published: true
tags: shecoded
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/z2uqdlnoxdh6h5ql2z2o.jpg
---

When I was in high school, I was told to not pursue computer science because computers were hard and the boys were mean. Since then I've won awards and given technical talks about the work I've done. 

The best advice for students, entry level, and junior engineers is to find yourself a mentor. Someone who can sanity check the things you're going through whether or not you're being purposefully worked or tell you when tasks are fully within your capacity. Someone who has nothing to gain from your success except knowing you succeeded. Early in my career, most of my mentors were men because I worked in Sports Media. They pushed me to join more Women in Tech networks and get involved. They made sure that I knew what was okay and what wasn't. 

For mid-level and higher, find a sponsor. Find someone who will see the best part of your work and push others to recognize it. 

You need both at different times of your life.

Finally, find friends in your industry. They'll make the bad days tolerable and give you an ally in your own work-life balance. They'll want not only your success but also your happiness.

The people who will do the best by you will want you to succeed but not at the cost of your health and well-being. They're who you'll need in your corner to get you through long-term in not just the Tech Industry, but any industry.
Everything you need to know about Jenkinsfile
Tags: devops, tutorial, beginners, jenkins
Published: 2020-03-07 17:18:00

**This complete Jenkins Pipeline Tutorial will help you configure build pipeline for your own project using Jenkinsfile.**

It demonstrates the below topics with examples:
- What is Jenkinsfile?
- From Scripted to Declarative Pipeline Syntax
- Basic Structure of Jenkinsfile
- Post Build Actions in Jenkinsfile
- Define Conditionals / When expression
- Using Environmental Variables in Jenkinsfile
- Using Tools attribute for making build tools available
- Using Parameters for a Parameterized Build
- Using external Groovy scripts

{% youtube 7KCS70sCoK0 %}

-----------------

I'm happy to connect with you on 
- [Twitter](https://twitter.com/Njuchi_)
- [YouTube](https://www.youtube.com/channel/UCdngmbVKX1Tgre699-XLlUA?sub_confirmation=1)
- [Instagram](https://www.instagram.com/techworld_with_nana/)
Return to the Source
Tags: programmersstone
Published: 2020-03-07 14:55:09

---
title: Return to the Source
published: true
description: an intro for Original Papers of the Programmer's Stone
tags: #programmersstone
---

Twenty odd years ago I found the Programmer's Stone papers published free online. Although the sites have gone down the initial rar file has remained. It is dated and with practically no references. 

I have thought about publishing them online for a while and the DEV.to community seems to be a great platform for them.

The initial research and project was an attempt to hack flow for programmer's and while I have struggled to be successful in programming myself, I do identify with most of what is spoken of in these talks.

Sometimes STEAM (Science, Tech, Engineering, Math and Art) and other knowledge workers seem to fall into the type the group of Reciprocality called mappers. So this course is not just limited to programmers. Sometimes mappers could be managers. The core idea seems be the self confident application of self awareness (metacognition) to self-directed learning (metalearning) in order to level up development of the self .

While the self development industry has caught on to much of the science that now supports this project I hope that reviewing the original papers could make an impact to someone again. 

But take note that the world of programming has made a lot of progress from that time. We are still struggling with many of the issues that surfaced way back in 1968... The peak of programmer performance at the top level is still a wonderful but rare event!
Nevertheless, Nikema Coded
Tags: wecoded, momswhocode, womenfounders, blackintech
Published: 2020-03-07 17:13:57

I'm nowhere near new to coding. I started coding over 25 years ago and my first GitHub repo was created in 2013. I've had a lifelong love of tech and creative work, yet coding never has been my number one priority. 

Nevertheless, I coded.

- Through two pregnancies and full-time single parenting, nevertheless, I coded.
- When my contributions to coding projects were completely discarded in favor of overbearing male teammates, nevertheless, I coded.
- When founding a bootstrapped business with few material resources, nevertheless, I coded. 
- After every job rejection I received with the claim of "not enough experience", nevertheless, I coded. 

I do this shit for fun, y'all. It's not a higher calling for me, it's a fun, problem-solving game, it's a creative outlet, it's a means to an end. 

Knowing how to code happens to make some people pretty good money. Making good money now can change lives for the better and positively impact future generations. This is why I care. The potential for upward mobility is too great. I want to succeed so I can reach back and uplift my community.

I code partly because I love to do it, but partly because I am setting an example. I will never say, "If I can, you can." But *if* I can as a Black, low-income, disabled, single mom, at least we'll all have watched an interesting story unfold.

"Made it" hasn't happened yet, but nevertheless, I code.