teleren/devto huggingface dataset:
Impostor Syndrome – Programmers Perspective
Tags: impostorsyndome, programming, ai, writing
Published: 2022-12-10 08:55:44

Impostor syndrome, also known as impostor phenomenon or fraud syndrome, is a psychological pattern in which an individual doubts their accomplishments and has a persistent fear of being exposed as a "fraud". This syndrome is not unique to the field of programming, but it can be particularly prevalent among programmers due to the constantly evolving nature of the field and the high standards that are often placed on them.

Programming can be a challenging and demanding field, and it's not uncommon for programmers to feel like they don't measure up to their peers or to the expectations placed on them. This can lead to feelings of inadequacy, self-doubt, and even fear of being discovered as an impostor.

One of the key factors contributing to impostor syndrome among programmers is the sheer amount of knowledge and skill that is required to be successful in the field. With new technologies and programming languages constantly emerging, it can be easy for a programmer to feel like they are always playing catch-up and that they are not as knowledgeable as their peers.

Another factor is the high standards that are often placed on programmers. Many companies and clients have very specific requirements for the software and applications that they need, and it can be easy for a programmer to feel like they are not meeting these standards or that their work is not good enough.

The effects of impostor syndrome can be significant, and they can include a lack of confidence, decreased motivation, and even burnout. In extreme cases, it can lead to depression and other mental health issues. In my case, it led to severe depression which affected my work and developed into a cycle because I could not perform as I wanted.

Fortunately, there are steps that programmers can take to overcome impostor syndrome and build confidence in their abilities. One of the most important things is to recognize that impostor syndrome is a common experience and that it is not a reflection of a person's abilities or worth. It can be helpful to talk to other programmers and share experiences, as this can help to normalize the feelings of self-doubt and remind individuals that they are not alone.

It can also be helpful to set realistic goals and expectations for oneself, and to celebrate small victories and accomplishments along the way. This can help to build confidence and remind individuals that they are making progress and improving their skills.

Another effective strategy is to seek out feedback and support from mentors, colleagues, and other experienced programmers. This can provide valuable perspective and help individuals to see their strengths and accomplishments from a different perspective.

Overall, impostor syndrome is a common experience among programmers, but it is important to recognize it and take steps to overcome it. By acknowledging and addressing these feelings, programmers can build confidence in their abilities and continue to grow and succeed in their field.
Kotlin Code Smell 7 - Long Chains Of Collaborations
Tags: kotlin, codesmells, cleancode, programming
Published: 2022-12-10 15:30:31

---
title: Kotlin Code Smell 7 - Long Chains Of Collaborations
published: true
date: 2022-12-10 08:45:42 UTC
tags: kotlin,codesmells,cleancode,programming
canonical_url: https://yonatankarp.com/kotlin-code-smell-7-long-chains-of-collaborations
---

> **TL;DR**: Long chains of collaborations generate coupling and ripple effect, where any change in the chain breaks the code.

## Problems

* Coupling
    
* Break encapsulation
    

## Solutions

* Create intermediate methods.
    
* Consider the [**Law of Demeter**](https://en.wikipedia.org/wiki/Law_of_Demeter).
    
* Create higher-level messages.
    

## Sample Code

### Wrong

```kotlin
class Dog(val feet: Array<Foot>) {
}

class Foot {
    fun move(): Unit = TODO()
}

fun main() {
    val feet = arrayOf(Foot(), Foot(), Foot(), Foot())
    val dog = Dog(feet)

    for(foot in dog.feet) {
        foot.move()
    }
}
```

### Right

```kotlin
// We're copying the reference of the array, so in theory, it can still
// be changed from outside, which is yet another code smell. A better
// approach would be to create a copy of the array inside the class
// instead of holding the reference.
class Dog(private val feet: Array<Foot>) {
    fun walk() {
        for(foot in feet) {
            foot.move()
        }
    }
}

class Foot {
    fun move(): Unit = TODO()
}

fun main() {
    val feet = arrayOf(Foot(), Foot(), Foot(), Foot())
    val dog = Dog(feet)
    dog.walk()
}
```

## Conclusion

Avoid successive message calls. Try to hide the intermediate collaborations and create new protocols. This way, not only will you protect your code from breaking in the future, but you will also maintain good encapsulation of your class.

---

Stay updated with my latest thoughts and ideas by registering for my [**newsletter**](https://yonatankarp.com/newsletter). Connect with me on [**LinkedIn**](https://www.linkedin.com/in/yonatankarp/) or [**Twitter**](https://twitter.com/yonatan_karp). Let's stay connected and keep the conversation going!

---

## More Info

* [**Refactoring Guru**](https://refactoring.guru/es/smells/message-chains)
    

## Credits

* [Code Smell 08 - Long Chains Of Collaborations](https://maximilianocontieri.com/code-smell-08-long-chains-of-collaborations) by @[Maxi Contieri⭐⭐⭐](@mcsee)
What I've been reading (week 49, 2022)
Tags: watercooler, news, discuss
Published: 2022-12-10 08:00:24

Here's a selection of four things that I read or otherwise found interesting last week:

## [Prerender pages in Chrome for instant page navigations](https://developer.chrome.com/blog/prerender-pages)

Chrome has been working on options to bring back full prerendering of future pages that a user is likely to visit, a reboot of previous prerendering approaches. I'm looking forward to seeing tools like instant.page and Quicklink start to support this new technique.

Edit: Quicklink partially supports it, [but with issues](https://github.com/GoogleChromeLabs/quicklink/issues/273), and it might not be the best tool for the job. [Instant.page's maintainer has shown interest](https://twitter.com/Dieulot/status/1599804313320448000) in adding support, and in the meantime a [fork](https://github.com/kurtextrem/instant.page) or two exists that supports Speculation Rules.

## [Introducing Mona Sans and Hubot Sans](https://github.blog/2022-12-02-introducing-mona-sans-and-hubot-sans)

I like how the intro blog post for these fonts includes performance advice on subsetting, and an example of overriding Arial's font metrics with CSS to act as a fallback font but still minimise layout shift.

## [Shadow DOM and accessibility: the trouble with ARIA](https://nolanlawson.com/2022/11/28/shadow-dom-and-accessibility-the-trouble-with-aria)

I've not worked with shadow DOM much at all, but I'm bookmarking this for when I need it in the future. 

## [Page Weight Matters](https://blog.chriszacharias.com/page-weight-matters)

Re-reading this classic web performance case study. A YouTube engineer made a version of the YT video page that was a tenth of the weight of the regular version. But all the real user monitoring perf data started coming back worse than the regular version…

---

I also [tweet these as I find them (@philw_)](https://twitter.com/philw_) and post them on my personal site at https://wolstenhol.me/#reading.

What were your favourites? Was there anything you found useful?

{% user philw_ %}
What is PyTorch? And why you should learn it?
Published: 2022-12-10 08:13:25

## **What is PyTorch?**
PyTorch is an open-source deep-learning library for Python. It is developed by Facebook's AI research group and is widely used in the research and development of deep learning models.

 Pytorch is focused on providing high-level APIs for building and training complex neural network models and includes support for automatic differentiation and distributed training. Pytorch is often used for developing and training large, state-of-the-art models for applications such as computer vision and natural language processing.


## **Why learn PyTorch?**

One of the key reasons to learn PyTorch is its ability to perform computations on tensors, which are multi-dimensional arrays used for storing and processing data in machine learning algorithms. PyTorch includes a set of high-level APIs that make it easy to build and train complex neural network models and **allows developers to perform computations on tensors in a dynamic, flexible, and efficient way.**

Another reason to learn PyTorch is its support for automatic differentiation, a technique used to compute the gradient of a mathematical function. This is a crucial feature for training deep learning models, as it allows the models to learn from data by adjusting the model parameters to minimize a loss function. **PyTorch's support for automatic differentiation enables developers to easily implement and optimize complex neural network architectures.**

In addition to its core features, PyTorch includes various tools and libraries that make it easier to develop and deploy machine learning models. This provides support for distributed training support, allowing developers to train large models on multiple GPUs or machines. PyTorch also contains libraries for computer vision, natural language processing, and other applications of machine learning.

## **Closing notes**

Overall, learning PyTorch can be a valuable skill for anyone interested in working with deep learning or artificial intelligence. PyTorch is a powerful and popular library and is widely used by researchers and developers. By learning PyTorch, you can gain the skills and knowledge needed to develop and deploy cutting-edge machine learning models.

Thanks for reading! 🚀

Connect with me on[github](https://github.com/Snehal0308) and [twitter](https://mobile.twitter.com/SnehalAdbol)
Custom checkbox and radio buttons in CSS
Published: 2022-12-10 08:01:05

Hello Guys today i will be discussing about how to create a custom checkbox or radio button with css.
I got this design from @kevinpowell and thanks to him that i know many new things in CSS today.

Let's get started...

So, To create a custom checkbox or radio button, all you have to do is apply the "appearance:none" property to the checkbox or radio buttona and then style the checkbox or radio button by providing it the custom width and height and other stylings related to colors, borders, backgrounds.
## Example of custom radio button
```html
<input type="radio" name="theme" checked />
```
```css
input[type="radio"]{
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  outline: 2px solid crimson;
  outline-offset: 2px;
  border-radius: 50%;
}
```
* It will create a custom radio button with some custom stylings
* You can do the same for the checkbox also by using type=checkbox and then setting the type in css selector as checkbox.

## Targeting the checked state - 
```css
input[type="radio"]:checked {
  background: red;
}
```
* When you click the radio button, its background color will become red.
* You can also provide other stylings to the checked state.

## Codepen Example
* You would love this one for sure
{% codepen https://codepen.io/shubhamtiwari909/pen/QWxPOEe %}


# THANK YOU FOR CHECKING THIS POST
You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/css-iswherehas-and-not-2afd

https://dev.to/shubhamtiwari909/theme-changer-with-html-and-css-only-4144

https://dev.to/shubhamtiwari909/swiperjs-3802

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90
Today's Fun Joke For Developers - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-12-10 08:00:24

---
title: "Today's Fun Joke For Developers - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258999910d.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_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:___ Why did 10 get paid less than "10"?

___A:___ There was workplace inequality.
 -->
1339. Leetcode Solution in cpp
Tags: cpp
Published: 2022-12-10 07:38:58

```cpp
/**
 * Definition for a binary tree node.
 * struct TreeNode {
 *     int val;
 *     TreeNode *left;
 *     TreeNode *right;
 *     TreeNode() : val(0), left(nullptr), right(nullptr) {}
 *     TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
 *     TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
 * };
 */
class Solution {
 public:
  int maxProduct(TreeNode* root) {
    constexpr int kMod = 1e9 + 7;
    long ans = 0;
    vector<int> allSums;
    const long totalSum = treeSum(root, allSums);

    for (const long sum : allSums)
      ans = max(ans, sum * (totalSum - sum));

    return ans % kMod;
  }

 private:
  int treeSum(TreeNode* root, vector<int>& allSums) {
    if (!root)
      return 0;

    const int leftSum = treeSum(root->left, allSums);
    const int rightSum = treeSum(root->right, allSums);
    const int sum = root->val + leftSum + rightSum;
    allSums.push_back(sum);
    return sum;
  }
};
```
#leetcode
#solution
#challenge
Here is the Link for the problem:
https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/
2022 wrapped: open-source
Tags: opensource, productivity, github, programming
Published: 2022-12-10 07:38:33

## Hello everyone! 🙋🏻‍♀️

Today, I wanted to quickly wrap-up my contributions for this year! I do not have Spotify, so this will be my version of "2022 wrapped". 😂

## The beginning 🎬

My open-source journey begun only this September, and honestly, I did not expect that I would get so excited about contributions by the end of this year and actually enjoy blogging every time (I am not a writer and never been anywhere close). So, it's pretty shocking to me, but if I knew that open-source is so interesting and welcoming, I'd have started much earlier. 

## My 2022 🎞

Here are my quick statistics up to this day:
![contribution statistics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4duipdnna2y2s4a69xb4.gif)

Also, going through [this Spotify guide](https://newsroom.spotify.com/2022-11-30/get-to-know-your-music-listening-personality-from-2022-wrapped/) on their personalities approach, and comparing music to projects, I have figured that I am ✨the Nomad✨.

![personality](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/30ljwxrtigy1foiujil6.gif)

## This December ❄️

I am very happy, as I did not only achieve what I was planning earlier in [my first post this month](https://dev.to/gulyapulya/december-is-finals-first-christmas-later-4iii), but also made one more contribution. 

So, this month, I created new pet animations for VS Code Pets extension, which helped one person to see his favourite animal, chicken, as part of the tool. It was very interesting issue, as we collaborated with [Lucas](https://github.com/MhouneyLH) and although I have never met him, the process was very smooth and productive. Now, you can play with chicken while coding in VSCode. 

{% embed https://github.com/tonybaloney/vscode-pets/pull/339#issuecomment-1343845408 %}

We also decided to keep working together to create more chicken types. So, stay tuned for new black and brown red chickens.

Apart from that, I worked on the [this UI issue](https://github.com/cuttle-cards/cuttle/issues/231) as part of the [Cuttle project](https://github.com/cuttle-cards/cuttle), the pvp card game. I was not familiar with the project but managed to figure it out. 

## Conclusion 😮‍💨

I am very proud of myself, as this year, I have contributed to big companies' projects such as Intel and Pandas, had a variety of contributions ranging from code solutions to translations and even animations, connected with dozens of people all around the world and all due to open-source. 🎉

![christmas](https://i.gifer.com/embedded/download/PyO5.gif)
Challenges and obstacles that can arise when trying to grow a career in tech and Growing a software community
Tags: webdev, tutorial, programming, productivity
Published: 2022-12-10 07:36:19

There are many challenges and obstacles that can arise when trying to grow a career in the tech industry. Some of the major setbacks include:

1. Lack of job opportunities: The tech industry is highly competitive, and it can be difficult to find job openings or advance in your career if you don't have the right skills or experience.

2. Limited access to education and training: Many jobs in the tech industry require specialized knowledge and expertise, which can be difficult to obtain if you don't have access to quality education and training programs.

3. Lack of diversity and inclusion: The tech industry has long been criticized for its lack of diversity and inclusion, which can make it difficult for people from underrepresented groups to succeed and advance in their careers.

4. Burnout and high-stress levels: Many jobs in the tech industry are demanding and require long hours, which can lead to burnout and high-stress levels.

5. Lack of job security: The tech industry is constantly evolving and changing, which can make it difficult to maintain job security and stability over the long term just like the recent events at Twitter, Facebook Meta, and other big TECH companies

Overall, these challenges can make it difficult to grow a career in the tech industry, but they can be overcome with determination, hard work, and the right support and resources.

## Growing a software (Developers) community

Growing a software (Developers) community can be a challenging but rewarding process. One of the best ways to grow a software community is to create a strong, engaging, and inclusive culture that encourages people to get involved and contribute.

This can be achieved by providing clear guidelines and expectations for participation, as well as opportunities for members to learn, collaborate and share their knowledge and expertise.

Other effective strategies for growing a software community include hosting regular events and workshops, providing support and resources for developers, and fostering a positive and inclusive atmosphere.

Ultimately, the key to growing a successful software community is to create an environment that is welcoming, engaging, and supportive for all members.
How to Create a Landing Page With WordPress Free | Super Easy
Tags: wordpress, tutorial, elementor, beginners
Published: 2022-12-10 07:35:41

#Create a Landing Page With Super Responsive UI Using WordPress Free | Super UI Free

Do you design a landing page for your WordPress website? Landing pages are useful tools for boosting sales or highlighting certain website content. This article will show you how to make a landing page in WordPress.

In this video, we will see how to use Elementor to create a modern landing page in WordPress and how to quickly create a highly contemporary website using WordPress.

{% embed https://youtu.be/psYJUMeMlGA %}



⭐Visit Website: [Link](https://ziontutorial.com/)
⭐Instagram:  [Link](www.instagram.com/ziontutorial)
⭐Subscribe: [Link](https://www.youtube.com/c/ZionXtutorial?sub_confirmation=1)

Topic tags which we will cover in this videos is: 
How To Create a Modern Landing Page In WordPress
Create a Modern Landing Page In WordPress
Modern Landing Page In WordPress
simple landing page in WordPress 
How to Create a Landing Page With WordPress
Why Developers may suffer from mental and emotional stress
Tags: mentalhealth, beginners, productivity, career
Published: 2022-12-10 07:32:39

**There** are many reasons why people in the tech industry may suffer from mental and emotional stress. Some of the key factors include:

1. High-pressure and demanding work environments: Many jobs in the tech industry require long hours and intense concentration, which can be mentally and emotionally taxing.

2. Constant learning and adaptation: The tech industry is constantly evolving, and workers may feel pressure to constantly learn new skills and adapt to new technologies in order to stay competitive.

3. Lack of work-life balance: Many tech workers struggle to maintain a healthy work-life balance due to the demands of their job and the pressure to constantly be available and connected.

4. Social isolation: Some tech workers may feel isolated from their colleagues and community due to the nature of their work, which can lead to feelings of loneliness and disconnection.

5. Job insecurity: The tech industry is highly competitive, and workers may feel uncertain about their job security and future prospects.

Overall, these and other factors can contribute to mental and emotional stress among tech workers, and it is important for individuals and companies to address these issues and support the well-being of their employees.