teleren/devto huggingface dataset:
The Climb: Software Developer Journey
Tags: programming, beginners
Published: 2022-08-03 03:33:00

School…… it truly is a beast onto its own.  I heard that [Seneca college](https://www.senecacollege.ca/home.html) has a great reputation of producing good software developers. It wasn’t even a graduate of Seneca that told me this.  Being in my 40s, meant I had to study a little harder than most but “tenacious” is my middle name.  Haha!  Seriously though it was rough and becoming a developer.  Definitely not for the faint hearted.  It’s best not to be intimidated though. Face the challenges head on. Building a foundation for Software development required experiences that take you way out of your comfort zone. For someone who is new or considering Software development as a career, I have some recommendations that will make the journey a little less painful.

For starters you should probably get acquainted with basic programming.  Learning the basic theory will help develop some understanding as you learn more difficult practices later.  You have to learn how to think like a programmer.  Try not to sweat the small stuff because it WILL come to you.  Remember to be patient with yourself and don’t rush progress. Free courses and tutorials like [w3schools](https://www.w3schools.com/) and more will help you understand things like Encapsulation, Polymorphism and Abstraction.   Those 1% of you who naturally get 99% in your programming courses… You are so lucky!! Remember that it’s better to try for those high grades.  If you do badly on a subject, take it again. Retaining that foundational knowledge is your key to success.  

This field is a vast range of options when it comes to jobs.  There are easy jobs that require teams to work together and there are jobs that require a lot of struggles with strict deadlines.  Finding what is right for you is up to the individual and what your goals are in your career. Keep an open mind about everything because you never know where your interests may end up.  I know this from experience.  In my first year, I didn’t want to touch web programming in JavaScript.  Absolutely hated JavaScript.  Now my preferred languages are C# in .Net Frameworks and JavaScript! 

After everything is over, and I evaluated my experience.  I’d say it was worth it!  The struggles, the victories are minor compared to the sense of accomplishment gained.  I can’t speak for everyone, but the experience gave me some personal growth.  Time well spent!  Also leads to a great career!  So be brave and reach for the stars….. I mean computer!
PHP Access Modifiers Example
Tags: php, javascript, beginners, webdev
Published: 2022-08-03 03:30:51

In this article, we will see PHP access modifiers example. In PHP default access modifier is public. PHP provides different types of modifiers like private, public, or protected. Properties and methods can have access modifiers that control where they can be accessed.

So, let's see PHP access modifiers example, access specifier in PHP, default access modifier in PHP, access modifiers in oop, and PHP access modifiers.

There are three access modifiers:

- public - the property or method can be accessed from everywhere. This is default

- protected - the property or method can be accessed within the class and by classes derived from that class

- private - the property or method can ONLY be accessed within the class

 
> Example 1: Public

``` 
<?php  
class parent  
{  
    public $name="techsolutionstuff";  
    function_display()  
    {  
        echo $this->name."<br/>";  
    }  
}  

class child extends parent
{  
    function show()  
    {  
        echo $this->name;  
    }  
}     

$obj= new child;  
echo $obj->name."<br/>";
$obj->function_display();
$obj->show();
?>
```

Output:

```
techsolutionstuff
techsolutionstuff
techsolutionstuff
```
 
---

> **_[Read Also: Laravel Unique Validation on Update](https://techsolutionstuff.com/post/laravel-unique-validation-on-update)_**

---
 
> Example 2: Private

``` 
<?php  
class Techsolutionstuff
{  
    private $name="techsolutionstuff";  
    private function show()  
    {  
        echo "This is private method of parent class";  
    }  
}

class child extends Techsolutionstuff  
{  
    function show1()  
    {  
    echo $this->name;  
    }  
}     
$obj= new child;  
$obj->show();  
$obj->show1();  
?>
```

Output : 

```
Fatal error:  Call to private method Techsolutionstuff::show()....
```
 
---

> **_[Read Also: CRUD Operation In PHP](https://techsolutionstuff.com/post/crud-operation-in-php)_**

---
 
> Example 3: Protected

``` 
<?php  
class Techsolutionstuff
{  
    protected $a=200;  
    protected $b=100;  
    function add()  
    {  
        echo $sum=$this->a+$this->b."<br/>";  
    }  
}     
class child extends Techsolutionstuff  
{  
    function sub()  
    {  
        echo $sub=$this->a-$this->b."<br/>";  
    }  
}     
$obj= new child;  
$obj->add();
$obj->sub();
?>
```

Output : 

```
300
100
```
React Functional vs Class Components - Beginners Guide.
Tags: javascript, react, webdev, beginners
Published: 2022-08-03 03:24:46

React being one of the famous frontend framework is used for building different kind of user interface. While working with components in JSX we come across two different types of components.
1. Functional Components
2. Class Components

In this article we would be looking at how these components are different. So let's get started

Before going into class or functional components let's discuss what's a react component meant to be :

# React Component

A component is block of code in which further the components exists to bring any design to small pieces. These are reusable code block and can used or imported independently.
A components play a crucial role while building the complex ui design as we tend to avoid  putting everything in a single page.

React has two types of components, lets look into those one by one.

# React Functional Components

A Functional Component is basically a JavaScript function that return a React JavaScript Xml element(known as JSX).

Let's have an example to understand 

```js
import React from "react";

const Welcome = props => (
  <div>
    <h1>Welcome🙌, {props.name}</h1>
  </div>
);

export default Welcome;
```

In Functional Components there is no render method , they are mainly responsible for UI presentational like a card or button. If Component needs react state , its advised to go with Functional Components.

# React Class Components

Class Component  is a regular ES6 class that extends the component class from the react library. To return HTML you have to use render() method in it. 
You pass props down to class components and access them with _this.props _

```js
class ClassComponent extends React.Component {
 render() {
   return <h1>Hello, world</h1>;
 }
}

```
If we want to pass some props for the components:


`<Component name = “Abhishek Kushwaha” />`

In case of FUNCTIONAL COMPONENT ,  we pass the props as an argument of our function using the construction “props.name”. 

```js
function FunctionalComponent(props) {
 return <h1>Hello, {props.name}</h1>;
}
```
With class components, we need to add this. to refer to props.
```js
class ClassComponent extends React.Component {
render() {
 return <h1>Hello, {this.props.name}</h1>;
}
```


Hope you found Helpful ! 😀
The Terminal for Beginners
Tags: beginners, tutorial
Published: 2022-08-03 02:52:10

My coding experience started just a few short months ago barring some elementary experience with social media sites long lost in the ever changing history of the interwebs. I accepted an opportunity, received 10 days notice to move and packed up my life to started a software engineering internship. The phrase "drinking from a firehose" is an underestimation of the heavy flow of information I've managed to cram into my previously art-centered brain.

I quickly learned that the terminal and I were going to be pretty tight in my new found career. I would like to go over some of the most useful commands that I've spammed over the last few weeks.

---
- ls  - (list files) this command provides a list of all the files, folders, etc. in a directory. A super useful command when you need to move into a folder that you can't remember the name of. (Let's be real, after the first 3 drafts we start getting silly with naming conventions)
- cd   - (change directory) allows you to jump into a new directory.
- mkdir  - (Make Directory) allows you to create a new directory.
- rmdir  - (Remove Directory) allows you to create a new directory.
- sudo  - (Super User Do) allows you to elevate your user privileges.
- man  - (Manual) allows you to look at reference manuals and utilities.

---
This isn't a comprehensive list of all terminal commands but have been the most helpful in my experience. What are your favorite terminal commands?
Como fazer uso da Comunicão Top-Down para transmitir ideias
Published: 2022-08-03 02:37:00

Em meus estudos sobre como melhorar minhas habilidades de consultoria (e também no dia-a-dia no trabalho), eu tenho encontrado bastante menções à comunicação **top-down** (de cima para baixo). Basicamente essa forma de comunicar ajuda a transmitir não só ideias, mas também resultados, de forma concisa e direta.

Esse jeito de comunicação funciona assim: você sempre tem que partir da descrição da conclusão final, ou **resultado final**, para então descrever como foi possível chegar à aquele resultado.

Geralmente, ao comunicar algo sempre tentamos apresentar um certo contexto para garantirmos que a ideia seja entendida. Porém, na maior parte do tempo as pessoas não estão de fato tão interessadas nos detalhes.

Então a forma mais prática de conseguir comunicar algo sem perder rapidamente a atenção do ouvinte (ou leitor) é ir direto ao ponto.

Mas falar é fácil, difícil é pôr em prática né? 

Eu por exemplo, quando estou muito animado com algo ou ansioso, acabo falando demais e mergulhando nos mínimos detalhes possíveis. Uma fala que deveria durar menos de 3 minutos acaba se estendendo por 15 minutos ou mais😆.

Por isso sempre tento me conter o máximo e focar em comunicar resultados ou ideias centrais sem fazer rodeios. Eu fico repetindo para mim mesmo: "Só fale algo a mais se pedirem mais explicações".

Então uma dica prática que ofereço é deixar para a outra pessoa decidir se você deve continuar ou não. Você pode perguntar algo como "o que acha?", ou então dar uma pausa para ver se obtém alguma reação.

Isso não é nada simples de se fazer também, pois podemos sem querer acabar comunicando menos do que deveríamos. Mas de qualquer forma, deixar a outra pessoa decidir vai nos ajudar a ter noção de seu grau de interesse.
Longest Common Prefix
Tags: algorithms, csharp, leetcode, easy
Published: 2022-08-03 02:33:49

_#14.Longest Common Prefix_

### Problem statement
Write a function to find the longest common prefix string amongst an array of strings.

If there is no common prefix, return an empty string `""`.

**Example 1**
```
Input: strs = ["flower","flow","flight"]
Output: "fl"
```

**Example 2**
```
Input: strs = ["dog","racecar","car"]
Output: ""
Explanation: There is no common prefix among the input strings.
```

### Explanation
找出陣列中所有元素最長的相同字符並返回，如果沒有相同字符則返回空字串 `""`。

例如 `cat` 和 `carry` 相同的前綴字符為 `ca`

### Solution
用雙迴圈逐一比對，第一層遍歷元素長度，第二層則遍歷陣列內所有元素。

但是找尋陣列內元素時，不可使用超出元素長度的索引，故先找到陣列內最短長度的元素，再以此長度作為第一層迴圈的中止值。

```cs
public string LongestCommonPrefix(string[] strs)
{
    if (strs.Length == 0) return null;

    string res = string.Empty;
    string str = strs[0];

    foreach (var s in strs)
    {
        if (s.Length < str.Length)
            str = s;
    }

    int len = strs.Length;

    for (int i = 0; i < str.Length; i++)
    {
        for (int j = 0; j < len; j++)
        {
            if (str[i] == strs[j][i])
                continue;
            else
                return res;
        }

        res += str[i];
    }

    return res;
}
```

---

### Reference
[LeetCode Solution](https://leetcode.com/problems/longest-common-prefix/discuss/1326099/C-Solution)

[GitHub Repository](https://github.com/FakeStandard/LeetCode-CSharp/tree/main/Solution/0014.Longest-common-prefix)

---

Thanks for reading the article :tulip: :sunflower: :blossom:

If you like it, please don't hesitate to click heart button :heart:
or click like on my Leetcode solution
or follow my [GitHub](https://github.com/FakeStandard) :star:
or buy me a coffee :arrow_down: I'd appreciate it.

[![Buy-me-a-coffee][1]][2]

[1]: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h077sxd0vx1hix4t7lw8.png
[2]: https://www.buymeacoffee.com/FakeStandard

---
Do you know about Tencent Cloud?
Tags: cloud, tencentcloud
Published: 2022-08-03 02:16:00

Tencent Cloud is the cloud business of global technology company Tencent with headquarters in Shenzhen, China. It provides users and businesses around the world with stable and cloud products and services, leveraging technological advancements such as cloud computing, big data analytics, AI, IoT and network security.

Tencent Cloud is a service that meets the needs of industries across the board, including the fields of education, finance, healthcare, gaming, media and entertainment, property, retail, travel and transportation. It also strives to help overseas businesses enter the China market through its China Connect solution and help Chinese enterprises to go global.

Tencent Cloud currently operates 70 availability zones in 26 geographical regions around the world, providing a strong infrastructure network that enables enterprises to expand across the globe.

Tencent Cloud offers over 400 cloud products & solutions to support enterprise digital transformation and is particularly strong in terms of audio & video, game and financial services solutions, as well as database solutions and security performance. It is also recognized by many top global analyst firms, including Gartner, IDC, Forrester, Frost & Sullivan and more.

Find out more at https://www.tencentcloud.com/
Alternative way of working Lambda layer in CDK
Published: 2022-08-03 02:09:00

What if your Lambda functions doesn't have the module or packages in AWS, and you wish to run this Lambda in the Cloud

Simple answer is using Lambda Layer. 

CDK has the native way of handling it like below

```
layer = aws_lambda.LayerVersion(self, 'lambda-layer',
                code = code,
                layer_version_name='layer-bundle',
                compatible_runtimes=[
                    aws_lambda.Runtime.PYTHON_3_7,
                    aws_lambda.Runtime.PYTHON_3_8,
                    aws_lambda.Runtime.PYTHON_3_9
                ]
            )
```


The other way of do this is:

Deploy Python Lambda functions with .zip file archives.



```
- cd lambda

- python3 -m venv .venv-zip

- source .venv-zip/bin/activate

- pip install -r requirements.txt

- deactivate

- cd .venv-zip/lib/python3.9/site-packages

- zip -r ../../../../lambda_handler.zip .

- cd ../../../../

- zip -g lambda_handler.zip *.py requirements.txt
```


using the from_asset() method point to your zip file location
Acesse nosso Linktree do Guia de TI!
Published: 2022-08-03 01:50:00

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

Boa noite pessoal!

Conheçam nosso Linktree e fiquem por dentro de todas as novidades do Guia de TI.

Salve nos seus favoritos e fiquem sempre atualizados!
Você vai encontrar no nosso Linktree.

-> Link do Guia de TI
-> Última Noticias do Guia de TI
-> Redes Sociais Guia de TI
● Linkedin | Guia de TI
● Facebook | Guia de TI
● Instagram | Guia de TI
● Youtube | Guia de TI
● Twitter | Guia de TI
● Telegram | Guia de TI
● Reddit | Guia de TI
● Tumblr | Guia de TI

-> Newsletter
● Linkedin
● Google News
● Dev.to
● Medium
● Grupo do Facebook

E muito mais! Divulguem para todos seus amigos, parentes, colegas de trabalho, professores e recrutadores!

[https://linktr.ee/guiadeti](https://linktr.ee/guiadeti)
Burnout and Motivation
Tags: burnout, motivation, productivity, energy
Published: 2022-08-03 00:11:22

Last year I did a major burnout, and I decided to stop working.
It's been over a year now and I still don't have my energy back.
I had some energy to restart programming around November, I learnt Go, started streaming and had even some regulars. I was working out daily, reading daily,learning how to draw,  and sleeping great.
In March I decided I need to get back to work , albeit part time. 
All energy went out of the window the minute I started. I stopped coding, stopped streaming , stopped working out, and everyday is a struggle just to concentrate on doing simple DevOps tasks. 
If you got any tips, please shoot them in the comments.
A cool programming-based game
Tags: beginners, programming
Published: 2022-08-02 23:27:56

---
title: A cool programming-based game
published: true
description: At one point I found a cool browser-based game, which encourages you to write JavaScript to automate playing it.
tags: #beginners #programming
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y29ihhssw3ewkfqakp2s.png
# Use a ratio of 100:42 for best results.
---

The game is called [Bitburner](https://danielyxie.github.io/bitburner/), and I have no affiliation with it. I just think it's cool.

You mostly play the game through a terminal, which allows you to create files and run JavaScript programs. It contains a JavaScript interpreter, but also allows you to run scripts natively. (I think this is done similarly to "bookmarklets.") Native scripts mainly have the drawback of being able to hang the game, so you have to be diligent about explicit sleeping in long loops.

Anyway, the game provides an API that allows you to take game actions (otherwise you write straight JavaScript, so you have its control flow and collections and the like), and as you get further in you get access to more APIs that let you automate more and more things.

It seems to me like a fun way of working on your programming skills.
Navigating the Google Cloud Console and Platform
Tags: gcp, googlecloud, cloud
Published: 2022-08-02 22:50:18

👩🏼‍💻 Originally [posted on LinkedIn](https://www.linkedin.com/posts/marian-eerens_gcp-googlecloudplatform-googlecloud-activity-6960339753435033600-ThH7?utm_source=linkedin_share&utm_medium=member_desktop_web)

I started using BigQuery in GCP (Google Cloud Platform) as my SQL sandbox and didn't really pay much attention to anything else. And while I will most likely never use a lot of the tools & services available, I at least wanted to understand the core concepts, how the platform is structured and what it actually is (and isn’t).

If you’re like me (a bit of nerd and always curious 🤓) and want to be able to contribute to conversations without feeling like an imposter then this shortlist of resources will help you get there.

① [𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗙𝘂𝗻𝗱𝗮𝗺𝗲𝗻𝘁𝗮𝗹𝘀: 𝗖𝗼𝗿𝗲 𝗜𝗻𝗳𝗿𝗮𝘀𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲 (𝘃𝗶𝗮 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗦𝗸𝗶𝗹𝗹𝘀 𝗕𝗼𝗼𝘀𝘁)](https://www.cloudskillsboost.google/course_templates/60)

The content gets very technical about halfway through, but thought the first couple of modules were really helpful in framing up some of the basics. You can take the course for free but will need sign up for credits if you want to complete the labs (first 30 days are free).

② [𝗧𝗵𝗲 𝗚𝗖𝗣 𝗘𝘀𝘀𝗲𝗻𝘁𝗶𝗮𝗹𝘀 𝗣𝗹𝗮𝘆𝗹𝗶𝘀𝘁 (𝘃𝗶𝗮 𝘁𝗵𝗲 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗧𝗲𝗰𝗵 𝗬𝗼𝘂𝗧𝘂𝗯𝗲 𝗰𝗵𝗮𝗻𝗻𝗲𝗹)](https://www.youtube.com/playlist?list=PLIivdWyY5sqKh1gDR0WpP9iIOY00IE0xL) 

This playlist covers a lot of the basics and most of the different tools. I didn’t watch all of them but depending on why you are checking out GCP, you can pick and choose what’s relevant to you.

③ [𝗔𝗻 𝗜𝗻𝘁𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝘁𝗼 𝗚𝗖𝗣 𝗳𝗼𝗿 𝗦𝘁𝘂𝗱𝗲𝗻𝘁𝘀 (𝘃𝗶𝗮 𝘁𝗵𝗲 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗧𝗲𝗰𝗵 𝗬𝗼𝘂𝗧𝘂𝗯𝗲 𝗰𝗵𝗮𝗻𝗻𝗲𝗹)](https://www.youtube.com/watch?v=JtUIQz_EkUw)

I love it when someone explains seemingly abstract concepts and makes it relatable by using easy to understand terminology. Definitely watch the intro, it really helped me frame up Google Cloud vs GCP and the different types of offerings (Infrastructure, Platform, Software).

④ [𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗗𝗶𝗴𝗶𝘁𝗮𝗹 𝗟𝗲𝗮𝗱𝗲𝗿 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗿𝘀𝗲 (𝘃𝗶𝗮 𝗳𝗿𝗲𝗲𝗰𝗼𝗱𝗲𝗰𝗮𝗺𝗽.𝗼𝗿𝗴)](https://www.youtube.com/watch?v=UGRDM86MBIQ)

If you were looking to get certified and in need of free training content, this 6hour course is incredibly detailed and offers a lot of additional free resources. You can scan the table of contents and navigate to specific topics you’re interested in and then watch parts of the course.

⑤ [𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗼𝘃𝗲𝗿𝘃𝗶𝗲𝘄 (𝘃𝗶𝗮 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻)](https://cloud.google.com/docs/overview)

The documentation on Google Cloud is very extensive. I like this overview because it covers the basics and points you towards more in depth documentation if you want to go into more detail.

Happy learning!
Bootstrap 5: grid system
Tags: css, bootstrap, html
Published: 2022-08-02 19:40:42

The Bootstrap grid-system offers a simple and powerful way to create responsive layouts and therefore suitable for all shapes and sizes.

A grid-system is a set of CSS rules useful for managing the arrangement of content on a page.
It divides the container into multiple columns with dimensions and spaces consistent with each other.

It is based on flexbox.

The layout adapts flexibly to the display used (Responsive Design).
The space is filled or the elements are juxtaposed together so that everything is ordered.
It works with two axes: the main one horizontally, the transverse one vertically.

It uses a twelve column per row system and six predefined reactive levels (breakpoints).

## Characteristics of the grid-system

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

Applying a .col-sm-* class to an element will affect small devices, but also medium, large and extra large devices if the specific .col-md-* .col-lg-* classes are not present, .Col-xl-*, or .col-xxl-*

## How use it

- You create a container that acts as a wrapper using a container class such as .container

- You create lines inside the container using the .row class

- Columns are created within any row using the classes .col-*, .col-sm-*, .col-md-*, .col-lg-*, .col-xl-* and .col-xxl-*

If you want to see some example, see [the document](https://www.slideshare.net/EleonoraRocchi1/bootstrap5gridsystempdf)
Day 606 : Getting it
Tags: hiphop, code, coding, lifelongdev
Published: 2022-08-02 21:55:37

_liner notes_:
- Professional : Not so much hardcore coding. Spent a lot of time figuring out how to make this Asia trip happen. I actually called the Japan embassy. Still plotting and scheming on making it happen. Need to get it figured out this week so I can apply for a visa. Also took a look at some code that I'll be updating.

- Personal : Last night, I went through some tracks for the radio show. I worked on my side project some. Then I spent a couple of hours before bed to study Kanji. I'm getting it... slowly.

![View from a beach in Apollo Bay, Australia at sunset with the waves coming on shore and mountains in the distance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rlccmj3wcp2y9lo3l6dk.jpg)

Going to do some more research for a plan to visit Japan and send it off to a co-worker in Singapore so they can check it out when they are working. Then I'll go through some tracks for the radio show. Study more Kanji and do a review. Maybe watch some anime?

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube PhXkQ4i2350 %}