teleren/devto huggingface dataset:
Python Functions
Tags: python, beginners, programming, tutorial
Published: 2022-02-18 10:06:12

> [Sign up to my newsletter!](https://baransel.dev/newsletter/).

## What is Function?

Functions are simply a set of commands created to do a particular function. For example, the `print()` function contains certain commands to make the function that allows us to output to the screen.

## Why Functions?

Now you have thought of something like this, is it okay if I don't use a function? Of course, you can not use it, but after a certain point, when the line of code increases, the complexity increases, and it becomes difficult to control. That's why we use functions.

Thus, instead of writing code each time for the functions we want to do, we create a function once, and call it and use it whenever we want to do it. Thus, we get rid of excess code complexity.

Briefly Functions;
* Each of them does a certain job.
* We can divide it into two functions that take a parameter or a function that does not.
* The function of functions is to gather complex operations together and enable us to perform these operations in one step.
* By using functions, we can collect operations consisting of one or more steps under a single name.

If we know what functions are and why we use them, let's learn how to use them.

## Function Usage

There are two types of functions in Python, the first is the functions that come ready with Python, that is, the embedded functions, and the second is the functions we have created. Since functions like `print()` and `type()` come with Python, we only call them where we want to use them.

The general usage outline of the functions is as follows.

```python
def function_name(parameter1, parameter2):
	"""docstring"""
	statement(s)

function_name(parameter1, parameter2)
```

We have seen the draft in general, now let's show it with an example. Let me create a simple function for this right away.

```python
def output():
    """Prints `Baransel.dev Python Lessons`"""
    print("Baransel.dev Python Lessons")
```

As you can see we have created our function. Now let's call our function, for this we just write the name of the function;

```python
def output():
    """Prints `Baransel.dev Python Lessons`"""
    print("Baransel.dev Python Lessons")

output()

# Baransel.dev Python Lessons
```

Since we called it once, it did this function once. The number of times we call it, the more it prints to the screen.

```python
def output():
    """Prints `Baransel.dev Python Lessons`"""
    print("Baransel.dev Python Lessons")

output()
output()
output()

# Baransel.dev Python Lessons
# Baransel.dev Python Lessons
# Baransel.dev Python Lessons
```

If you wish, let's write the same function in a different way. I will use the `return` statement here because we will write functions that will return us results, not just printing to the screen, so we will use `return`.


## `return` Statement
Continue this post on my blog! [Python Functions](https://baransel.dev/post/python-functions/).


[Sign up to my newsletter!](https://baransel.dev/newsletter/).
React call child function in parent
Tags: webdev, beginners, react, reacttutorials
Published: 2022-02-18 09:59:55

In this tutorial we learn how react call child function in parent. We can do this easily by passing methods as [props ](https://reactjs.org/docs/components-and-props.html)from parent component to child components. Then using props in react child component to access the passed properties.

## How to call child function in parent in react

```react
class Parent extends Component {
 render() {
  return (
    <div>
      <Child setClick={click => this.clickChild = click}/>
      <button onClick={() => this.clickChild()}>Click</button>
    </div>
  );
 }
}

class Child extends Component {
 constructor(props) {
    super(props);
    this.getAlert = this.getAlert.bind(this);
 }
 componentDidMount() {
    this.props.setClick(this.getAlert);
 }
 getAlert() {
    alert('clicked');
 }
 render() {
  return (
    <h1 ref="hello">Hello</h1>
  );
 }
}
```

**Please Note** that you can’t use **onClick={this.clickChild}** in parent because when parent is rendered child is not mounted so **this.clickChild** is not assigned yet. Using **onClick={() => this.clickChild()}** is fine because when you click the button **this.clickChild** should already be assigned.

Please like, share and give positive feedback to motivate me to write more.

Thanks:)
Happy Coding:)
Mobile Game Monetization: Models, Tracking Tools, and Strategic Insights
Tags: mobile, games, monetization, gamedev
Published: 2022-02-18 09:49:19

Mobile games have become an important extension of the real world, where people interact, spend money, and arrange free time for fun activities. In the blog, we provide insights into mobile games monetization, which can be helpful to generate the highest revenues from your games.

Knowing what players expect from the games, how they are ready to spend money while playing, and what tools can improve your genre-specific monetization strategies will lead you to higher revenues and publishing more top titles.
[https://www.innovecsgames.com/blog/mobile-game-monetization/](https://www.innovecsgames.com/blog/mobile-game-monetization/)
Supply chain management solutions: how to streamline operations from start to end
Tags: management, solutions, supply, chain
Published: 2022-02-18 09:47:28

Supply chain management solutions lead you to business benefits via integrating and synchronizing all physical, financial, and information flows that a company needs to fulfill.

If you’ve already thought about streamlining the operations to reduce costs, increase business efficiency, keep up with the demand better or improve risk mitigation, SCM management solutions are surely for you.
[https://innovecs.com/blog/supply-chain-management-solutions/](https://innovecs.com/blog/supply-chain-management-solutions/)
Top Git GUI Software to manage Git Repositories
Tags: webdev, beginners, tutorial, git
Published: 2022-02-18 09:41:31

Most of the times, We use the command line tools or terminal to manage the git repositories, committing or pushing codes, managing branches, merging codes. 

So, here is the list of top git gui software to manage git repositories. Using GUI Software is easy and fastest way of managing git repositories. We can also use these git gui software to run commands.

## Top Git GUI Software to manage Git Repositories :

**[GitHub Desktop](https://desktop.github.com/)**
Platforms: Mac, Windows
Price: Free
License: MIT

---

**[SourceTree](https://www.sourcetreeapp.com/)**
Platforms: Mac, Windows
Price: Free
License: Proprietary

---

**[TortoiseGit](https://tortoisegit.org/)**
Platforms: Windows
Price: Free
License: GNU GPL

---

**[Git Extensions](https://gitextensions.github.io/)**
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPL

---

**[Magit](https://magit.vc/)**
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPL

---

**[MeGit (based on EGit)](https://github.com/eclipsesource/megit)**
Platforms: Linux, Mac, Windows
Price: Free
License: EPL2.0

---

**[GitAhead](https://www.gitahead.com/)**
Platforms: Linux, Mac, Windows
Price: Free
License: MIT

---

For more tools and tutorials please visit [https://www.w3courses.org/top-git-gui-software-to-manage-git-repositories/](https://www.w3courses.org/top-git-gui-software-to-manage-git-repositories/)

Please like, share and give positive feedback to motivate me to write more.

Thanks:)
Happy Coding:)
Sirup: A CLI tool to manage your local Git repositories
Tags: showdev, python, git, cli
Published: 2022-02-18 09:36:35

---
title: Sirup: A CLI tool to manage your local Git repositories
published: true
description: A CLI tool to manage your local Git repositories
tags: showdev, python, git, cli
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zp3ylwvgta4lpxuyy7vc.png
---

Hey guys I made a CLI tool that might help you if you have a lot of git repositories in your computer.

## The Problem

I recently got a new laptop which meant I had to move the 100+ repos I had in my old laptop. I couldn't simply move or copy all the repos because my old laptop was really slow. I thought I might as well just push all the repos to their remotes and then clone them from my new laptop, but then I realised it would be really tedious to `cd` into each one of the repos, figure out which repo is clean or dirty, which repo is synced to its remote, and so on. So I decided to create a script to help me.

## Enter `sirup`

`sirup` will show you a JSON summary of all your git repositories. You could analyse the JSON using any standard tool to figure out the status of each repo. This helps you know which repos will need to be cleaned up. I personally like to use the interactive Node.js shell for this. Then you could move this JSON to another computer and generate the git repositories over there. In the process, you could also tweak this JSON so that in your destination computer, `sirup` would pick up these tweaks and behave accordingly.

Here's the project on GitHub:

{% embed https://github.com/mebble/sirup %}

Hope this helps anyone who runs into a similar situation.
Today's Daily Dose of Programming Humor
Tags: jokes, dailydeveloperjokes
Published: 2022-02-18 08:00:08

---
title: "Today's Daily Dose of Programming Humor"
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/5e12589f412c5.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 the angry function exceed the callstack size?

___A:___ It got into an Argument with itself
 -->
Why NFT Gaming is so Popular Today:

Tags: nft, blockchain, gamedevelopmet
Published: 2022-02-18 09:29:40

The first thing I would like to highlight regarding NFT is, It is the Non-Fungible Token that is purchased and sold using cryptocurrency as a medium of exchange. The second thing is that NFTs create new ownership opportunities. It is a new way to determine ownership of digital property using a blockchain ledger. NFTs have been gaining more popularity after the launching of art and gaming functionality. [NFT game development company](https://www.cubix.co/nft-game-development) play a vital role in the enhancement of NFTs and blockchain technology. Game Companies enhanced NFTs more after the launching of high qualitative and user-friendly games at the network of blockchain.
This week’s newsletter for 2022-01-18 is out!
Tags: javascript, tech, webdev, discuss
Published: 2022-02-18 09:26:39

---
title: This week’s newsletter for 2022-01-18 is out!
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Learning from dead end adventures

https://markjgsmith.substack.com/p/mark-smiths-newsletter-18-02-2022

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Last week’s newsletter for 2022-01-12 is out!
Tags: javascript, tech, webdev, discuss
Published: 2022-02-18 09:23:56

---
title: Last week’s newsletter for 2022-01-12 is out!
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Alternative simulation theory

https://markjgsmith.substack.com/p/mark-smiths-newsletter-12-02-2022

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Why Is Splash Screen Important For Mobile Apps? 
Published: 2022-02-18 08:21:50

If you are confused, whether you should implement a splash screen or not then remember your first impression is going to be your last impression. Splash screen creates the first impression of your brand in the user’s mind.  

Even if you don’t implement a splash screen your sales and revenue will not get affected. But implementing a splash screen will help your customer to associate and build a long relationship with your brand. It will also help them to recognize your brand whenever they see a logo or your name. 

We can take the example of popular mobile apps like Facebook, Netflix, Uber, and more.  Even though being popular they use splash screens in their mobile app because they look for building long term relationships with their customers and users.

Netflix’s splash screen has grabbed many users’ attention. If you are a Netflix user then you can remember the simple and intuitive logo appearing on the screen when you open the application. Have you ever observed the Skype splash screen appearance?

**Read More:**[How To Create An Attractive Splash Screen? Explained With Implementation Of Splash Screen In Android](https://www.sfwpexperts.com/how-to-create-an-attractive-splash-screen-explained-with-implementation-of-splash-screen-in-android/)

**Visit Site:**[Web Design Los Angeles Agency](https://www.sfwpexperts.com/website-design-los-angeles-california/)

**Read More Articles:**
[10 Best Ecommerce Platform To Setup A Successful Online Store](https://www.sfwpexperts.com/10-best-ecommerce-platform-2020/) 

**Visit Reference Profile Websites:**
[https://bit.ly/3Bt6FKB](https://bit.ly/3Bt6FKB)
[https://bit.ly/3H1eUym](https://bit.ly/3H1eUym)
[https://bit.ly/3gTCWRg](https://bit.ly/3gTCWRg)
[https://bit.ly/3Bfo0ok](https://bit.ly/3Bfo0ok)
[https://bit.ly/3gXuAIo](https://bit.ly/3gXuAIo)
[https://bit.ly/358Hkt1](https://bit.ly/358Hkt1)
[https://bit.ly/3gVCzG3](https://bit.ly/3gVCzG3)
[https://bit.ly/3gThbRJ](https://bit.ly/3gThbRJ)
[https://bit.ly/3gFEJcE](https://bit.ly/3gFEJcE)
[https://bit.ly/3GVMQwp](https://bit.ly/3GVMQwp)
[https://bit.ly/3gVCDFN](https://bit.ly/3gVCDFN)
[https://bit.ly/3ourCiT](https://bit.ly/3ourCiT)
[Wordpress Website](https://www.sfwpexperts.com)
Quick update for Telescope v2.6.0
Tags: opensource, programming
Published: 2022-02-05 02:52:30

This week is extremely busy for me with Telescope and other courses. We are planning to ship Telescope to `v2.7.0` in the next two weeks. Hopefully this time our team will make a big ship for this release. I can't wait for it!!

## What happened this week

I always keep tracking Telescope [issues file](https://github.com/Seneca-CDOT/telescope/issues) this week to see what is going on with it. And one thing that happened during this week is `master` branch is broken because of `mdx` packages. Details of this issue can be found [here](https://github.com/Seneca-CDOT/telescope/issues/2793). **Mdxjs** was breaking e2e in development, and that is the reason why we were not able to `build` in `scr/api`. [Amasia](https://github.com/AmasiaNalbandian) had a hard time to figure out how to fix this issue, we decided to make a team call, so everyone can contribute to this, which helped solve the problem faster. We were playing around with only `pnpm i` and `npm build` to fix this, after all, *green* marks were coming back with us again on `master`, e2e test was successful and we give a lot of "clap" for Amasia.

### Turborepo
"What is this one?" is the first question I ask myself when I see the word "Turborepo". 

> Turborepo is a blazing fast build system for JavaScript/TypeScript monorepos: codebases containing multiple projects, often using multiple frameworks, in a single unified code repository.

If you are wondering what it is exactly, and how it works, the document about Turborepo can be found [**here**](https://turborepo.org/docs)

It sounds very cool, I have never seen or known this one before, so I take on this [issue](https://github.com/Seneca-CDOT/telescope/issues/2736) to get more understands about it. And I also make a draft [PR](https://github.com/Seneca-CDOT/telescope/pull/2805) to get more people involved. 

## Plans for v2.7.0
[Issue 2591](https://github.com/Seneca-CDOT/telescope/issues/2591)
[Issue 2799](https://github.com/Seneca-CDOT/telescope/issues/2799)
[Issue 2777](https://github.com/Seneca-CDOT/telescope/issues/2777)

Both #2591 and #2799 are similar to one another, so I would like to focus on dashboard in Telescope for the next release. Those two issues are using `octokit.js`, again, when doing issues in Telescope, I tend to feel normal when doing the parts that I totally don't know what is it about. It is fun that I can work on it and learn about it at the same time.

## Final thought

Sheriffs are getting better every weeks, taking care of team members really well, and they don't miss anybody in the team. I really enjoy the way of how we learn right now, it's more like a co-op term than taking a real course in my opinion (better if I don't have another courses so I am not distracted ^^). I want to see how far I can go after this OSD700!
Theming with Amplify UI, AWS Amplify Studio, and Figma
Tags: aws, amplify, figma, react
Published: 2022-02-18 08:15:07

Following the [first guide](https://sbstjn.com/blog/react-figma-amplify-studio-example/) on how to use [AWS Amplify Studio](https://aws.amazon.com/amplify/studio/) and [Figma](https://figma.com) to create [React](https://reactjs.org/) components, this guide covers theme management with Figma and the [Amplify UI](https://ui.docs.amplify.aws/).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxb0sndgcw183htxjsb3.png)

[**This guide**](https://sbstjn.com/blog/react-figma-amplify-studio-theming-design-tokens/) explains how to use the [AWS Amplify Theme Editor plugin for Figma](https://www.figma.com/community/plugin/1040722185526429545/AWS-Amplify-Theme-Editor) with [AWS Amplify](https://aws.amazon.com/amplify/) and [Figma](https://figma.com) to style your React components with theming based on [Design Tokens](https://www.designtokens.org/) and [System UI Theme Specification](https://system-ui.com/theme/).
Friday's puzzle
Published: 2022-02-18 08:14:35

Hi everyone,

Let's solve this Friday's puzzle to find a password for this ZIP archive: https://drive.google.com/u/0/uc?id=1XxMImVyes5FGBHLcgfvEi16jGGpv9oXs&export=download .

![Puzzle](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgptfemw6tueng85oibs.png)

Enter the answer as a password.

Good luck!
compilation process of C programs at a glance
Tags: c, ataglance
Published: 2022-02-18 08:07:40

2022-2-18
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fvrf7gk6ejiissxfww4.jpg)


[view image in full resolution](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fvrf7gk6ejiissxfww4.jpg)
Upgrade to Laravel 9 From Laravel 8
Tags: laravel, webdev, beginners, programming
Published: 2022-02-18 07:36:35

## Upgrade to Laravel 9 from Laravel 8

Today I am going to explain how you can upgrade to Laravel 9 from Laravel 8.

## Laravel Upgrade Guide.
Laravel documented the [Upgrade Guide](https://laravel.com/docs/9.x/upgrade#upgrade-9.0) you can read for all upgrade steps.

## Tech Admin Panel
I have Explained about creating Laravel Admin Panel ([Tech-Admin](https://dev.to/techtoolindia/how-to-create-admin-panel-in-laravel-8-in-10-min-43ni)) in Laravel 8.

Today In this Post i will explain how you can upgrade this to Laravel 9.

The Upgrade Tutorial is below in the video.

{% youtube zTB0qLChbAQ %}

The Final Implementation [Github Repository](https://github.com/TechTool-India/techtool-laravel-admin) you can download this and can use it for any project.

Some Final Output Screens are here

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/53d53unbwjsvz2t0npan.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pp9vfllktg4gyarwqq84.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijs2pn14sroqt37n6nq9.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5w9yy33y0fspnnl68t0m.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5p71gck63r039mk6jix.png)

Thank You for Reading

Reach Out To me.
[Twitter](https://twitter.com/techtoolindia)
[Instagram](https://www.instagram.com/techtoolindia/)
[TechToolIndia YouTube Channel](https://www.youtube.com/channel/UCOy6o08Yn9DtXMKqxhD9ivA)
How to upgrade to laravel 9 from laravel 8.
Tags: laravel, php, webdev, tutorial
Published: 2022-02-18 07:34:33

## Upgrade to Laravel 9 from Laravel 8

Today I am going to explain how you can upgrade to Laravel 9 from Laravel 8.

## Laravel Upgrade Guide.
Laravel documented the [Upgrade Guide](https://laravel.com/docs/9.x/upgrade#upgrade-9.0) you can read for all upgrade steps.

## Tech Admin Panel
I have Explained about creating Laravel Admin Panel ([Tech-Admin](https://dev.to/shanisingh03/free-laravel-8-admin-starter-kit-1b5i)) in Laravel 8.

Today In this Post i will explain how you can upgrade this to Laravel 9.

The Upgrade Tutorial is below in the video.

{% youtube zTB0qLChbAQ %}

The Final Implementation [Github Repository](https://github.com/TechTool-India/techtool-laravel-admin) you can download this and can use it for any project.

Some Final Output Screens are here

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/53d53unbwjsvz2t0npan.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pp9vfllktg4gyarwqq84.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijs2pn14sroqt37n6nq9.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5w9yy33y0fspnnl68t0m.png)

![App Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5p71gck63r039mk6jix.png)

Thank You for Reading

Reach Out To me.
[Twitter](https://twitter.com/shanisingh03)
[Instagram](https://www.instagram.com/shanisingh03/)
[TechToolIndia YouTube Channel](https://www.youtube.com/channel/UCOy6o08Yn9DtXMKqxhD9ivA)
Create AWS Architectures diagram-based
Published: 2022-02-18 07:21:12

As I work often with diagram images for an overview of my architecture, I thought it would be nice if you could directly jump from the picture to the AWS console.

Well, it turns: out no problem with [draw.io](https://www.diagrams.net/) (or similar programs). Its just four simple steps:

## Step one draw big picture

![Draw](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rlg5gw40hvd25vvioah2.png)
Here is an example

## Step two: create resources

Start [here](https://docs.aws.amazon.com/cdk/api/v2/) or even better [here](https://www.go-on-aws.com/infrastructure-as-go/) 

## Step three: Copy url

![Copy](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uzhw7lkcvp32qknupt3t.png)
Goto the resource in the console and copy the url. 

## Step four: Edit link
![Edit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1gqe0mf2robtbmzwanwc.png)
This is in german, but you should find it  

Voila - now you can jump from your big picture overview diagram to the resources.

![Jump](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eynpbc6q53iy3u4yg0eg.png)
 
What do you think, is it worth writing a patch for [cfn-diagrams](https://github.com/mhlabs/cfn-diagram) to create these links automatically?

That's all for today, stay healthy and keep on building :) 

Gernot @megaproaktiv