teleren/devto huggingface dataset:
Daily Developer Jokes - Thursday, Mar 18, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-03-18 12:00:18

---
title: "Daily Developer Jokes - Thursday, Mar 18, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Thursday%2C%20Mar%2018%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125900b9ff4.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ What do you do when you can't understand your husband's behavior?

___A:___ man man
 -->
How Salesforce CRM helps businesses?
Published: 2021-03-18 11:59:56

Salesforce has encouraged a huge number of organizations to deal with their clients better and help acquire quality leads and develop their organizations. Salesforce is perhaps the most well-known CRMs around, and organizations around the world use it to improve their roads and upgrade their primary concerns. You have seen, most organizations that use Salesforce talk radiantly of this product, and you may consider what makes this CRM device so amazing, and why a large number of organizations keep on embracing Salesforce as their client relationship management software. Also, companies nowadays are looking for individuals with <a href="https://intellipaat.com/salesforce-training/">salesforce certification</a> to help their businesses run. You have come to the right place. Let's look at those reasons - 
<br>
Find the right customers - <br><br>You've invested energy and assets drawing in and creating new leads, yet now what? Is it accurate to say that they are getting to your sales team, and assuming this is the case, do your reps know which openings are the most sizzling? Time is of the substance when you're little and developing quick. Capitalize on your marketing tools like — email, social, marketing automation— by associating them to a CRM stage. <br>
Always Reliable - <br><br>Salesforce has compactly delivered updates and moving up to a fresher adaptation. It has never been an issue for organizations that utilization this device. Regularly, we can see that redesigns are a major issue for huge organizations as well as for independent companies, despite the fact that they have fewer data. With Salesforce data updating is easy. <br>
Reduce the cost of sales - <br><br>New clients are a critical element to proceed with the development. The uplifting news is you can balance new client procurement costs through deals to your current client base. Gain more noteworthy visibility into the upsell, strategically pitch, and renewal opportunities.
AWS CodeBuild & CodePipeline | How To Build CICD Pipeline on AWS
Tags: aws, devops, cloudskills, techtalks
Published: 2021-03-18 11:45:59

AWS CodeBuild & CodePipeline are the basic services from AWS Cloud platform that can help you in building CICD Pipeline for your application. In the following it was explained how to automate the continuous integration and continuous delivery using these 2 services and deploy the application on AWS Elastic Beanstalk. 

This video shows how to 
- Build a simple REST API with Spring Boot frameowrk 
- Push the code to a new Github repository 
- Create CodePipeline and CodeBuild projects 
- Pull the code from Github with CodePipeline by connecting Github with Github hook.
- Finally automate the deployment of Spring Boot application on Elastic Beanstalk environment.
 
Check out the following video.

https://youtu.be/g7b2t7LlVKc
{% youtube g7b2t7LlVKc%}
Task Management App
Tags: productivity
Published: 2021-03-18 11:42:02

Have you ever worked with a workaholic manager? Have you ever experienced that your manager thinks that nothing you do is enough? If your answer is in ‘Yes’, then this blog is for you! Read on to get an idea about how a robust task management app can assist you to deal with an overly demanding manager or supervisor.
Before moving to discuss the task management app’s role, let’s make a list of useful tips and tricks to resist the overly demanding manager.
Silence is not golden every time! When you listen to your manager carefully, don’t forget to repeat if you do not comprehend properly or points that you find important. It is better to ask immediately if you misunderstood something. It is possible that more detailed instruction can simplify your task.

<b>Original Source: <a href= "https://www.taskopad.com/blog/task-management-app-to-deal-with-manager/"> Task Management App </a> </b>
Golang: Check Equality of Unordered Slice Structs
Published: 2021-03-18 11:25:25

Playground: https://play.golang.org/p/5GJVPn3X8k7

```golang
package main

import (
	"fmt"
	"reflect"
)

type person struct {
	name string
	age  int
}

func main() {
	// Two equal slices but order is different
	aa := []person{{"foo", 1}, {"bar", 2}}
	bb := []person{{"bar", 2}, {"foo", 1}}
	fmt.Println(reflect.DeepEqual(aa, bb))
	fmt.Println(isEqual(aa, bb))
}

// Check and ensure that all elements exists in another slice and
// check if the length of the slices are equal.
func isEqual(aa, bb []person) bool {
	eqCtr := 0
	for _, a := range aa {
		for _, b := range bb {
			if reflect.DeepEqual(a, b) {
				eqCtr++
			}
		}
	}
	if eqCtr != len(bb) || len(aa) != len(bb) {
		return false
	}
	return true
}
```
An Information Management System
Tags: node, database, information, typescript
Published: 2021-03-18 11:04:41

I am working on an information management system which is kinda like a personal database. I'd be happy about feedback.

https://github.com/b3z/reventlou

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/716jqmhr1kj643fmfkxy.png)
Seamless cross web interactions by using a 10 year old API
Tags: showdev, javascript, news, webdev
Published: 2021-03-18 10:45:05

Last week I published a small open-source library on GitHub around an overlooked, 10 year old, capability of the browser's built-in [Drag and Drop](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) and [ClipboardEvents](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent). It will let your users transfer data to other web (and native!) applications on the desktop, by using the primary drag and copy interactions. 

This could be particularly interesting for folks who are creating progressive web applications (PWA) and want to integrate with third-party apps, or need to interaction across browser-windows. Think about it as *sharing on desktop*.

[**Check out the Transmat library at GitHub**](https://google.github.io/transmat)

[![Simplified preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sy9enp7vifdjps18rw31.gif)](https://google.github.io/transmat)

Curious to hear what possible use-cases could be for your work!
The hardest parts of your coding journey will be...
Published: 2021-03-18 10:37:41

Coding is not easy, you constantly have to learn new things and collaborate with people who you might never meet in real life...

I asked my fellow developers on Twitter what was the hardest thing for them in their careers.

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">What was the hardest part of your coding journey so far?</p>&mdash; Eleftheria Batsou (@BatsouElef) <a href="https://twitter.com/BatsouElef/status/1355440619234197506?ref_src=twsrc%5Etfw">January 30, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

## About coding:
- Staying consistent on learning
- Learning Javascript
- Learning CSS
- Learning Data structures
- Understanding and implementing OOP concepts
- Debugging
- Fixing warnings
- Writing tests
- Writing documentation
- Reading Documentation
- Working on an unfamiliar codebase
- Recursion
- Ugly UI
- Getting out of tutorial hell.

## About the #DevLife
- Dealing with customers unrealistic needs
- Company politics
- Knowing when you are ready to apply for a job
- Keepin' on even when I'm unsure of where it'll take me
- Not trusting my abilities / Self-confidence
- Dealing with the imposter syndrome
- Struggling with uncertainty

With this post I want to show you that you are not alone, we all struggle, we all have these moments that we don't know what to do... but eventually, after a break, a coffee and chatting with friends we always find a solution :)

What would you add, what is the hardest thing for you?

**************************************

👋Hello, I'm Eleftheria, a front-end developer, master student, freelancer, public speaker, and chocolate lover.

🥰If you liked this post please share.

🍩Would you care about buying me a coffee? You can do it here: [paypal.me/eleftheriabatsou](https://www.paypal.com/paypalme/eleftheriabatsou) but If you can't that's ok too!


**************************************

🙏It would be nice to subscribe to my [Youtube]  (https://www.youtube.com/c/EleftheriaBatsou) channel. It’s free and it helps to create more content.

🌈[Youtube](https://www.youtube.com/c/EleftheriaBatsou) | [Codepen](https://codepen.io/EleftheriaBatsou) | [GitHub](https://github.com/EleftheriaBatsou) | [Twitter](https://twitter.com/BatsouElef) | [Site](http://eleftheriabatsou.com/) | [Instagram](https://www.instagram.com/elef_in_tech)
how to Change jquery to Vanilla javascript
Tags: help, javascript, webdev, beginners
Published: 2021-03-18 10:11:33

```jquery
$(this).parent().parent().find(".imgHide").toggleClass("imgShow"); 
```
to javaScript
for parent() we can use parentElement
for toggleClass() we can use .classList.toggle("class")
but for .find() i am not able to get any alternative in vanilla js.
How AI is Changing the Future of Healthcare Industry
Published: 2021-03-18 10:03:28

The potential for AI in healthcare is huge, as it adapts to mimic advanced actions more efficiently, quickly, and at a lower cost than human beings.  Just like in our every-day lives, AI’s role in the future of healthcare is integral for sustainable growth and efficiency.

To Learn More Visit Here: https://dashtechinc.com/artificial-intelligence-services/
It's Coffee Time: Dev + Coffee = ❤💜
Tags: gratitude, webdev, productivity
Published: 2021-03-18 09:56:36

Hi everyone!

As the saying goes: 
> If you want something you have to ask for it.  

So here I am asking for it.  
There’s nothing quite like that first cup of coffee in the A.M. A few sips of the aromatic magic stuff later and you're suddenly awake and motivated to tackle your day head on. It's truly the best.
So I though why not ask for help to get that cup of coffee from my friends, feel free to support and promote me

Here is my ko-fi account 👇
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/V7R03ZL69)

I would appreciate.              

Thanks! 🙏
How to root LG Stylo 6 MetroPCS without PC?
Tags: root, android
Published: 2021-03-18 09:36:14

Alternatively you can say root LG stylo 6 MetroPCS without code? Kidding!

Rooting android device is not difficult, specially if you're rooting without using PC.
Whether you're using without pc/laptop method to root LG Stylo 6 MetroPCS. You need to follow some mandatory steps in order to avoid some ricks.

Note - Make sure you download the latest version of KingoRoot.

<h2><strong>Mandatory Steps</strong></h2>
<ol>
<li>Unlock Device bootloader</li>
<li>Make sure device should be charge 70-80%</li>
</ol>
<h3>Steps To Root LG Stylo 6 MetroPCS</h3>
<ul>
<li>Download KingoRoot application and install properly. (Make sure you download the latest version)</li>
<li>Now open the application and Click on "One Click Root" button.</li>
<li>After tapping on the button it'll start rooting process. Now wait for a couple of minutes.</li>
<li>Once the process will done. You'll notified by notification i.e "Root Successfully"</li>
<li>Congrats! You easily root your LG Stylo 6 MetroPCS device.</li>
</ul>
<p>Don't forgot to follow all the mandatory steps.&nbsp;</p>
Using Facade pattern create react custom hooks as Reusable and Reliable
Published: 2021-03-18 09:30:53

The essential thing when approaching design patterns is to utilize them in a way that improves our codebase. The above means that we sometimes can bend them to fit our needs. The Facade design pattern is commonly associated with object-oriented programming. That doesn’t change the fact that we can take its fundamentals and apply them to something else. 

In this article, we explore the Facade pattern both in a conventional setting and with React hooks.

In case if you do not have any idea about the basics of ReactJs and how to start with it, you can refer to [link](https://www.tutorialspoint.com/design_pattern/facade_pattern.htm)

If you are still not sure what it is Facade design pattern will explain with some examples.

> Facade design pattern straightforward way and keep our application more readable

### Custom Hooks using the Facade design pattern
The magic with our approach is how quickly and easily we implemented these features with minimal code and how we integrated those features into our views simple.

#### Example 1: Modal

```javascript

import React from "react";

export default () => {
  let [modal, setModal] = React.useState(false);
  let [modalContent, setModalContent] = React.useState("I'm the Modal Content");

  let handleModal = (content = false) => {
    setModal(!modal);
    if (content) {
      setModalContent(content);
    }
  };

  return { modal, handleModal, modalContent };
};

```
we have more than one component that initializes the same state structure and methods it may be a good idea to extract those in a custom hook, and we can have the state and the methods in one place and reuse it. 

####Example 2: Toggle
This one is probably my favorite and I use it fairly often in projects I work on.

```javascript
import React, { useState } from "react";

const useToggle = (initialValue = true) => {
  const [value, setValue] = useState(initialValue);
  return [
    value,
    {
      set: setValue,
      toggle: () => setValue(flag => !flag)
    }
  ];
};

```

####Example 3: Form data set and submit with callback Function
Every form will have multiple fields and handle change events and form submissions.

#####Breaking down what is going on here, we want to:

* Keep track of state for an input field
* Update the value on change
* Make the field value available to the submit handler

```javascript
import {useState} from 'react';

const useFilterHook = (initialValues, callback) => {
  const [inputs, setInputs] = useState(initialValues);
  const handleSubmit = (event) => {
    if (event) event.preventDefault();
      callback();
  }
  const handleInputChange = (event) => {
    event.persist();
    setInputs(inputs => ({...inputs, [event.target.name]: event.target.value}));
  }
  return {
    handleSubmit,
    handleInputChange,
    inputs
  };
}
export default useFilterHook;
```

I'm excited to see how leveraging them can start cleaning up and simplifying the code I am working on today. If you're interested in learning more about how to start applying it in your own code, stayed tuned for my upcoming post.

Happy Coding!
Any other yerba loving devs out there? 
Tags: discuss, watercooler, yerba, productivity
Published: 2021-03-18 09:19:32

I got into drinking Yerba a few years ago after a fellow developer introduced me after his travels of South America check him out here https://backpackerdeveloper.com/

I find that Yerba Mate helps me stay focused for longer than coffee and I just generally enjoy the taste more.

It also looks real cool and makes people wonder "what is that dude drinking" 

There are also some proven and some unproven health benefits https://www.healthline.com/nutrition/8-benefits-of-yerba-mate

The Yerba subculture is also something that fascinated me and I have learned so much and have passed on some knowledge and tricks to colleagues looking to take up the fantastically social dance that is a ronda de yerba, we even have a Teams channel dedicated to that now.   

I am currently enjoying Rosamonte (IT MUST BE ESPECIAL) and Cruz De Malta (my first time trying Cruz) 

_excuse the messy desk, I like creative chaos_

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc69416g86xj4nmvw56u.jpeg)

Does anyone have a favourite Yerba they like to drink while coding or anything they could recommend? 

For anyone interested I get my Yerba Mate from here https://urushop.co.uk/ it is a great place to get Yerba in the UK 

My setup is as follows: 

- Gourd/Cup - https://urushop.co.uk/shop/yerba-mate-accessories/mates-gourds/thermal-stainless-steel-mate-cup/
- Bomba/Bombilla (I like bomba cause the wider mouth gets more flavourtown in my mouth) - https://urushop.co.uk/shop/yerba-mate-accessories/bombillas-straws/stainless-steel-brazilian-bomba/
- Mate - https://urushop.co.uk/shop/yerba-mate-from-south-america/1kg/yerba-mate-cruz-de-malta-1kg/ or https://urushop.co.uk/shop/yerba-mate-from-south-america/1kg/yerba-mate-rosamonte-especial-1kg/
- Flask aka my love HÄLSA - https://www.ikea.com/gb/en/p/haelsa-steel-vacuum-flask-blue-40450637/

Look forward to any suggestions :wave:

# :mate:
Deploying to GitHub Pages without extra dependencies
Tags: github, ci, devops, webdev
Published: 2021-03-18 09:06:52

There are a lot of articles already describing how to deploy you static website to GitHub Pages from GitHub Actions. Almost all of them suggest to use 3rd party Actions available on marketplace. 

Some of them are extremely popular, like [this one](https://github.com/peaceiris/actions-gh-pages).
Some [less](https://github.com/crazy-max/ghaction-github-pages), but still doing their job as you expect from them.

And long story short, you can just use them, it's pretty convenient to delegate this logic to *something* and avoid maintenance effort. However, you need to understand that it's a security implication and you pass your **secret** token of the repository to 3rd party code. Which in theory can contain some sneaky bug or even be malformed. Yeah, they're open source and you can check the code and validate it yourself, but.. would you?

_I still don't get why GitHub doesn't provide out-of-the-box functionality to connect 2 of their services together, and why you need to look for extra packages rather than use some built-in feature, like in Travis.._

On the other hand, deploying to GitHub Actions is pretty straightforward: you just need to push desired files to some branch in your repo, and that's basically it. Why to complicate things then and use untrusted javascript code for simply invoking `git commit && git push`? That's a fair question.

One of awesome GitHub Action features is that you can access your secret token without any extra effort. So you basically don't have to deal with git authentication in any way.

Combining this together, here's a snippet of a pipeline you can use to deploy static files from your repo to GitHub Pages:
{% gist https://gist.github.com/fbjorn/c887e6d39f4dca818056f98ee02b1a9c %}

It's simple, customisable, and most importantly, doesn't leak your secrets to anywhere. 

Hope it helps!
Remote Pair Programming
Tags: programming, collaboration
Published: 2021-03-18 08:59:21

For beginning or experienced programmer, 
i believe this can be helpful for both.

For beginners, imagine working with another developer probably a beginner like you, on a project.
This is more likely to happen cause both of you are still noobs.
Imagine the speed of improvement you guys could achieve together!

For pro coders, picture writing code with a programmer of similar level of experience.
I mean, we've already agreed that collaborative programming improves the skills of all those involved.
Now, visualize The quality of code & products you could write together.

How does pair programming work?

Well, it involves two people;
A driver
A navigator.

The driver writes the code, while 
the navigator analyzes code the Driver is writing, 
and will offer guidance and suggestions whenever possible.

These two switch roles at intervals.

This kinda reminds me of how snipers work.
You know, there is the sniper and the spotter.
The former does the shooting and the later confirms if the target was hit or missed...

Beginner programmers can learn alot from the sharing of knowledge between them.
Also the motivation is higher compared to when you have to sit alone learning by yourself.

For pro coders, i cant talk about how this improves the system they are building.
Better communication in the team, and diffusion of knowledge in between them.


Have you ever tried this?
DevOps Assessment Survey
Tags: devops
Published: 2021-03-18 08:48:40


**DevOps Survey**

Take our short survey and grab your free guide now!
Additionally, get a complimentary 2-hour consultation with our experts.

Do not miss your chance! Participating in the DevOps survey makes you eligible for a free DevOps guide and a complimentary 2-hour consultation with our experts. Softweb Solutions respects your privacy. The information collected here will not be disclosed to any third party without your prior consent.

https://www.softwebsolutions.com/devops-survey.html
AWS Solutions Architect Associate Certification Courses Online
Tags: aws, azure, cloudcomputing, awssolutionarchitectassociate
Published: 2021-03-18 08:40:39

AWS exam includes experience designing distributed applications and systems on the AWS platform. But, you should know essential components, required skills, and level of knowledge for AWS solutions architect associate certification. Join Careerera today for AWS solutions architect associate certification course online and learn all the required aspects of AWS certification by the professionals. 
https://www.careerera.com/cloud-and-virtualization/aws-certified-solutions-architect-associate
For inquiry, dial:+1-844-889-4054/+91-92-5000-4000
Full Stack Developer Certification Online Training Courses
Tags: fullstack, development, webdeveloper
Published: 2021-03-18 08:39:06

Getting certified in Full Stack Development will allow professionals to indulge in various job roles in an organization. Full-stack developer certification enlarges your path to become a successful full-stack developer. The future career of full-stack developers is unbeatable in terms of recognition & salary. So if you want to build your career in the field of software development, just join Careerera today for full stack developer certification online training courses.

https://www.careerera.com/software-development/full-stack-development-professional
For any assistance or inquiry, dial:+1-844-889-4054/+91-92-5000-4000
CISSP Certification Online Training Courses at Careerera
Tags: cybersecurity, cissp
Published: 2021-03-18 08:37:02

The CISSP Certification was the first certificate in the domain of information security. It is accepted by the U.S Department of Defense (DoD) in both their Information Assurance Technical (IAT) groups. At Careerera, all the participants get to enlighten themselves with an overall CISSP certification training accompanied with a specialization in curating, organizing, managing and controlling the principles of a safe business setting. Enroll today to brighten your career in the field of cybersecurity. 
https://www.careerera.com/cyber-security/certified-information-systems-security-professional-cissp
For any query or details, Call on:+1-844-889-4054/+91-92-5000-4000