teleren/devto huggingface dataset:
Tax Calculator
Tags: python, beginners, codenewbie
Published: 2023-04-02 22:13:05

We are going to make a simple program to calculate two different taxes based on the user's income. We are going to call this tax PIB.
First we set the variable for the yearly income that is going to cut between the two taxes:
```
citincut=85528
```
Second we define our variables for the two different tax operations base on the user's input:
```
print("Best rewards loyal citizen, today its time to contribute your Personal Income Tax for the Kingdom of Thalia.")
citinput=float(input("Introduce Year Income:"))
citix=citinput-citincut
```
We set the logic  operation for the two different taxes.
As you can see for the people with a lower income than 85528 we are going to apply a tax of the 18% of the income minus 556.2:
``` 
if (citinput<=citincut):
    tax=citinput*18/100-556.2
    print(round(tax),"Is your annual PIT, thank you loyal citizen.\n")
```
To avoid having a negative tax we introduce a if statement:
```     
    if (tax<=0):
        print("Move Punk") 
```
For the people with a higher income we are going to set a tax of 14839.2 plus 32% of the surplus over 85528:
```
elif (citinput>=citincut):
    tax=citinput-(14839.2+(citix*32/100))
    print(round(tax),"Is your annual PIT, Hail Thalia!\n")
```
You can change the value of the variable and use it for your own purposes.
Job Hunting Season: Month 4
Tags: webdev, beginners, devjournal, career
Published: 2023-04-02 21:18:28

Hello Dev community👋🏾! I am back with another rant about job hunting😫. Here is my job search summary for March:

## As of April 2, 2023

- Total jobs applied for : **47**
- Total rejections: **20**...and counting
- Total jobs that ghosted me: **14**
- Jobs applied to between March 1st and April 2nd: **13** (still waiting to hear back)

I know getting your first job in tech was hard but man is it brutal out there! Back when I first started to learn how to code, you would see plenty of junior developer roles available. Now, they're all mid to senior roles and mostly engineering or full stack. 

A user did recommend for me to have an open mind to applying to non-coding jobs such as desktop support or QA. I'm definitely open to that even though, that too will be a pain in the ass to get. I don't mind starting from the bottom and working my way up to the top. I did, however, complete the Google Course on Coursera. All that is left for me to do is to get Comptia A+ certification. I know that won't help me to get a job but at least it's something. I was also looking up IT/desktop support jobs, and the certifications I'm seeing mostly are for Microsoft Azure, and Oracle. AWS certification won't hurt either. So I'll just have to go another route and see where that will take me. 

But on a positive note, I have been getting help with my [resume](https://docs.google.com/document/d/1gd_s5Lm468wk0DONMSpgxVsJarLlb9Cx51AHrZmtRnQ/edit). My resume looks and sounds much better than before I had the help of fixing my resume. I know I will need to add more skills but eventually I will get to that. I'm still working on the Wix Make-A-SaaS Hackathon. The group project I am working on will be a great addition to my resume. Instead of working frontend (which is my comfort zone), I took the initiative to learn and work on the backend. I'll make sure to document how that project went. 

Welp, this is now the second quarter of the year. Anything can happen!🤞🏾
Multi-Dimensional List
Tags: python, beginners, codenewbie
Published: 2023-04-02 21:03:34

#we are going to create a multi-dimensional list to be able to store telephone numbers and user names together. 
First we are going to create a function to run our menu within a loop:

```
def list():
    userlist=[["Jimmy",+34666777888],["Bobby",+34668669449],["Charlie",+341999101110]]
    while True:

        print ("*"*43)
        print ("\n*         Multi-Dimensional List         *\n")
        print ("*"*43)
        print ("\n*   1 - Display the users information    *\n")
        print ("*                                          *\n")
        print ("*   2 - Add a new user                     *\n")
        print ("*                                          *\n")
        print ("*   3 - Count the number of users          *\n")
        print ("*                                          *\n")
        print ("*   4 - Exit                               *\n")
        print ("*"*43)
```
As you can see we added some users already for testing purposes.
After setting the menu we are going to code the conditional statements for the different values of our user input:
```  
        action = int(input("Please type the number to perform the action selected:\n"))
```
To display the elements without brackets:
```     
        if action == 1:
              for i in range(len(userlist)) :
                for j in range(len(userlist[i])) :
                    print(userlist[i][j], end=" ")
                    print()
                continue
```
Adding new users:
```
        elif action == 2:
            print("Type new user name: ")
            newusername=input()
            print("Type new telephone number")
            newusertelephone=input()
            newuser="\n".join([newusername,newusertelephone])
            userlist.append([newuser])
```
For the next step we use **len** so we are going to count only the elements of the list that contains strings: 
```        
        elif action == 3:
            usercounter=len(userlist)
            print("Numbers of users:",usercounter)
```
To exit the program we break the loop:
```
        elif action == 4:
            break
        else:
            
            print("Invalid choice. Please try again.")
list()
```
Hello World: Reflections of a Newbie Developer
Tags: beginners, javascript, codenewbie, programming
Published: 2023-04-02 20:46:40

## **Hi, there! I'm Jocelyn Vargas**, a new software engineer. 

I'm passionate, creative, hardworking... and relatively new to the field, but I'm eager to learn and grow as a developer. Currently, I'm focused on learning the ropes and gaining experience in various programming languages and technologies. 

When I'm not coding, you can find me:

- In my garden with my +50 different types of plants(_I am very into horticulture_)
- Reading a good book(_mystery and adventure_) 
- Or solving 2000-piece puzzles.

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

In this blog, I'll be sharing my experiences and insights on different programming languages. 
I'll be covering topics such as JavaScript, functions, arrays, objects, etc., and sharing tips and tricks that I've learned along the way. 


## What I hope to get out of this blog is confidence in my skills.


I find it hard to not automatically be good at something. 
I want to succeed and I put my all into everything I do, so when I started coding I was a bit discouraged. 

Writing a blog about my struggles was the last thing I wanted to admit online. Now that I've had some time to reevaluate my situation I know that I have to fail to succeed. 

I recently struggled to complete a complicated function that took me 5 hours to fully understand but when I did. 

It made me want to research more and understand why I made all the mistakes I did. That wouldn't have happened if I immediately succeeded. 

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

I want this blog to be informative but I also want to share my struggles. So besides the educational post, I'll be making a monthly struggle checks. Therapeutic in a way. 

I'm ready to connect with other software engineers and aspiring developers. I hope we all find success in this field. Let's struggle and learn together.
The path to seniority
Tags: webdev, management
Published: 2023-04-02 20:37:37

Dream about one day becoming the CTO? Want more responsibility but are stuck in developing other people’s bugs into features? The path will surprise you.

For many years I’ve thought I’ma great developer since I get the technical things far and quickly. I thought that a developer is a mean code machine that mostly developer features.

Well, you probably already know that this attitude will take you so far.

The truth is that what I’ve described is no more then a code monkey, and that’s what I was for years.

My attitude started shifting after listening to Jocko Willink.

I realized that responsibility comes with great power, the power to influence others by communicative on an exceptional level.

Why do you think the CTO is trusted with the entire company? Since he’s the best coding monkey? Of course not. Being a good level on the company’s tech stack is a trivial thing after enough years of development. What separates the CTO is he’s identity as a part of the company, and his big picture perspective.

Not identifying as the company will make you look at your own good as if it’s separated from the organization, obviously if you’re the CTO it’s not.

The CTO is a critical part of the company, like a part of the brain. Imagine a part of your brain thinking it’s its own entity. Depending on how it happens, we’ll call it cancer or dementia.

Each part of your brain needs to work in the most effective way with the rest of you. Sane guess for the c level executive, Ave for every other role got that manager. If you’re not a post of the company, what is it that you do here? A salary? Bring…

I take part in the ongoing internet revolution, I’m a deliverer of technology, I do it using my work where we give a unique value to our customers.

What attitude you think will take you further?

If you’ve read so far let me tell you a secret, you already are the CTO of you’re task. Now that you know who you are, tell me, how good of a CTO are you?
IST 256: Project 2 Progress Report
Published: 2023-04-02 20:12:07

This weeks work was focused on the CSS and HTML parts to replicate the badges website we were tasked with replicating. There was a lot of CSS and HTML work to make sure that the page was ready for cards to be displayed. While I worked on this, Rob has been working to finish the card template. Hopefully soon, I'll be able to test my search function to see what needs to be changed or fixed. 

I'm still not really sure how I am going to handle the search and rendering portions of this project. However, I do have a filter that is returning arrays, so I think thats in a pretty decent spot. I just have to figure out how to save the search bar input, and then send that over to my search/filter function and I'll go from there.
![Badge Card Plan](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mu9jhldkeqxenhoqidi9.jpg)

The diagram I have is my best idea so far. I think it should work but I'm hoping to do a lot of testing soon to iron things out from here. I think that we have some good parts here that we just need to put together in a way that'll accomplish our goals. Thats the biggest challenge for me right now.

I'd imagine that a microscale architecture like ours with help greatly with scalability. Rather than having this massive application with massive parts, you can split it up to make it easier to plan and implement. I'd imagine updating and revising the smaller parts would be much easier than editing one massive application.

The main thing I'm struggling with is how to connect my three components together. I've got my filter function in two different components right now because I'm not sure where to best put it. I'm working on taking user input and then send it to my function. How would that work? I'm not sure how I can transfer a variable from one component to the other. The other big problem I have is that even though my function returns the proper arrays, I'm not sure how to build the card using that information. That entire bit is very fuzzy to me and I'm not even really sure how to begin tackling that one.
29 berufliches Vorwärtskommen: Ein gerader Berufsweg – Beispiel: Donald E. Knuth.
Tags: deutsch, career, austausch, 1min
Published: 2023-04-02 20:04:00

Moin Moin,

neben seiner fachlichen Bildung, legte Donald E. Knuth, meiner Auswertung nach, auf folgendes Wert:

Emotionale Intelligenz:
Er war Mitglied mehrerer „sozialer Gruppen“, u.a. einer [Musikgruppe↗](https://www.youtube.com/watch?v=wEKuTUCGMwg&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=5) und einer [studentischen Verbindung / Bruderschaft↗](https://www.youtube.com/watch?v=6uc6zP5Jww4&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=12). Er pflegte Freundschaften und lag Wert auf [Humor↗](https://www.youtube.com/watch?v=HhU6EOT10Sk&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=7).

Selbstwahrnehmung / Reflexion:
Er erläutert [was ihn eine Zeit lang Antrieb↗](https://www.youtube.com/watch?v=YjyaYCLJQXw&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=9) und wie er darauf kam. Wie er [Wegabschnitte für sich wählte↗](https://www.youtube.com/watch?v=MGG0FLVXB48&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=10) und [Herausforderungen meisterte ( + Teil 17 und 18 )↗](https://www.youtube.com/watch?v=vPKFqBfXmuE&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=16).

Eigene Projekte:
- [Eine eigene Zeitung↗](https://www.youtube.com/watch?v=ZgSmPEtVWUM&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=6)
- [Ein eigenes Maßsystem↗](https://www.youtube.com/watch?v=tdKV_ezbFp8&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=8)
- [Basketball game evaluation system↗](https://www.youtube.com/watch?v=RnMkW8M1ZGk&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn&index=11)

Dies waren zu jedem Abschnitt, Beispiele aus seinem Leben bis in die Studienzeit hinein.

Beste Grüße,
Mustafa
C++ Switch (Tanlash Operatori).
Tags: cpp, webdev, programming, tutorial
Published: 2023-04-02 20:00:55

Assalamu alaykum  bugun siz bilan C++ dasturlash tilida tanlash operatori bilan tanishib chiqamiz. Tanlash operatoridan foydalanishimiz uchun **switch** kalit so'zidan foydalanamiz. Ushbu operatorni qo'llamasdan shart operatori dan foydalansangiz ham bo'ladi, ammo **switch** ancha ishingiz yengillashadi. Demak kodlarni analiz qilishni boshlaymiz.

`Switch tanlash operatorining sintaksis ko'rinishi.`

```
#include <iostream>
using namespace std;

int main()
{


switch(qiymat) {
  case x:
    // code block
    break;
  case y:
    // code block
    break;
  default:
    // code block
}

return 0;
}
```

- `switch` berilgan Ifoda bir marta baholanadi.

- Ifodaning qiymati har birining qiymatlari bilan taqqoslanadi `case` - so'zi o'rqali.

- Agar mos keladigan bo'lsa, tegishli kod bloki bajariladi.

- `break` tanlash operatorini ishini yakunlaydi.

- `default` kalit so'zlar ixtiyoriy bo'lgan qiymat uchun ishlaydi. yuqoridagi birontasi mos kelmasi demak default ishlaydi.

Pastda misol berilgan 3 ta son bor usha sonni 10, 20, 30 teng bolsa bu son 10, 20, 30 teng degan yozuv chiqadi va shu 3 ta sonnga togri kelmasa keyin default ga kiradi, va none degan yozuv chiqadi.

**Misol uchun:**

```
#include <iostream>
using namespace std;

int main()
{

int son;
cin >> son;

switch(son)
{
 case 10:
 cout << "Bu son 10 ga teng";
 break;

 case 20:
 cout << "Bu son 20 ga teng";
 break;

 case 30:
 cout << "Bu son 30 ga teng";
 break;

 default:
  cout << "none";
  break;


return 0;
}
```
Python Variables.
Tags: beginners, python, programming, tutorial
Published: 2023-04-02 19:45:24

Assalamu aleykum xurmatli dasturchi bugun siz bilan **Python dasturlash tilida** `Variables` - `O'zgaruvchilar `xaqida ko'ribchiqamiz.

Faqat **Python dasturlash tilida** emas boshqa tillarda, xam `O'zgaruvchilar` juda katta ahamiyatga ega xisoblanadi.
**Python dasturlash tilida** boshqa dasturlash tillaridan farqli ularoq `tip` e'lon qilmaydi, ha aytgancha `PHP` da ham o'zgaruvchilar e'lon qilinmaydi!

`**O'zgaruvchi** - Xotiraning nomlangan qismi bo’lib, o’zida ma’lum bir toifadagi qiymatlarni saqlaydi. O’zgaruvchining nomi va qiymatlari bo’ladi. O’zgaruvchining nomi orqali qiymat saqlanayotgan xotira qismiga murojaat qilinadi. Programma ishlashi jarayonida o’zgaruvchining qiymatini o’zgartirish mumkin. Har qanday o’zgaruvchini ishlatishdan oldin, uni e’lon qilish lozim.`

Python dasturlash tilida o'zgaruvchini tipi e'lon qilinmaydi! Dastur kodini yozish jarayonida tipni o'zingiz hohlagan turga o'tkazishingiz mumkin. Buni esa keyingi darslarda ko'rib chiqamiz! Hozir siz bilan dasturlash tilini o'rganish jarayonida qiyinchilikka o'chramasligingiz uchun oddiysidan boshlaymiz!

```
x = 5
y = "Ilmhub IT school"
print(x)
print(y)
```

```
Natija: 
Ilmhub IT school
```

O'zgaruvchini e'lon qilib va unga qiymat bergandan keyin usha o'zgaruvchini qiymatini o'zgartirishimiz xam mumkin.
Xozir pastda misol berilgan bitta `x` degan `o'zgaruvchi` bor unga birinchi `4` qiymat berdik va usha `4` qiymatni `Men dasturlash tilini o'rganishni boshladim` degan yozuv chiqadi.

**Misol uchun:**

```
x = 4
x = "Men dasturlashni o'rganishni boshladim"
print(x)
```

```
Natija:
Men dasturlashni o'rganishni boshladim
```

**O'zgaruvchilarga  nom berish!**

`O'zgaruvchi qisqa nomga ega bo'lishi mumkin (masalan, x va y) yoki ko'proq tavsiflovchi nom (yosh, ism, son va h.k). Python o'zgaruvchilar uchun qoidalar:`

1. O'zgaruvchilar [a-Z] harf bilan yoki "_"pastga belgi bilan boshlanishi zarur!

2. O'zgaruvchilar nomi raqam bilan boshlanmaydi!

3. O'zgaruvchi [a-Z] harf bilan yoki "_"pastga belgi bilan boshlanib raqamlar ham aralashtirsa bo'ladi. ( _ali123, son90 va h.k)

4.O'zgarvchi nomida katta va kichik harflar ahamiyatga ega bo'lib misol uchun Aka va aka ikki xil o'zgaruvchi nomi hisoblanadi! (Aka, aka, AkA, aKa).
ACID
Published: 2023-04-02 07:21:27

ACID is an acronym for:

1. **A**tomicity
2. **C**onsistency
3. **I**solation
4. **D**urability 

It is a safety guarantee a database gives us. Most of the time, if it cannot satisfy these safety guarantees, it would rather to abort a transaction than allow it half-finished.

## Atomicity

In general, _Atomic_ means a process cannot be broken down to a smaller unit.

Changes in a transaction will be applied completely, or nothing at all. Partial changes is not exists if transaction is used.

## Consistency

Data in the database should always in a "good state". The goodness of the data is mostly application specific, but the database can help to some extend: foreign keys, null check, data type enforcement, uniqueness constraint.

## Isolation

Multiple transaction will not affecting each other, and will look like as if they are executed serially.

```
     T1                  T2                DB
     |                   |                 |
     BEGIN               BEGIN             |
     |                   |                 |
     | READ(A)           |                 |
     |------------------------------------>|
     |                   |                 |
     |                   |                 |
     |                   |                 |
     |                   | READ(B)         |
     |                   |---------------->|
     |                   |                 |
     | UPDATE(A)         |                 |
     |------------------------------------>|
     |                   |                 |
     |                   | UPDATE(B)       |
     |                   |---------------->|
     |                   |                 |

```

- Transaction T1 reads the value of a data item, which is 10.
- Before T1 can update the data item, transaction T2 updates the same data item with a new value of 20 and commits the transaction.
- T1 updates the data item with the old value of 10, overwriting the value of 20 set by T2.
- This violates the ACID property of isolation, as there is a risk of interference and inconsistency in the data when multiple transactions (T1 and T2) are accessing the same data item without proper isolation.

## Durability

The easiest between them. Everything that has been commited stays even between hardware/network failures. 


References:
- https://play.google.com/store/books/details?id=p1heDgAAQBAJ
Chainpages: the reason for web developers to learn solidity
Tags: solidity, web, programming, blockchain
Published: 2023-04-02 19:40:05

Smart contracts are the new technology today because they mean programming on the blockchain, a web3 given.  Sadly, it was not possible to work with webpages on blockchain.  This is why I have worked so hard to develop Chainpage technology.  Chainpages are nothing more than webpages on the blockchain.  Check out the details:
https://forum.soliditylang.org/t/my-library-for-working-with-webpages-on-the-blockchain/1597?u=kjsisco
Weekly 0054
Tags: weeklyretro
Published: 2023-04-02 19:38:01

### Monday

I started the morning arranging tasks for the week. It’s always a really time consumed time but it worth.

I scheduled all the posts for the **#30DaysOfAzureAI by Microsoft.**
Navigate here to read more about this iniziative: [https://azureaidevs.github.io/hub/2023-aia](https://azureaidevs.github.io/hub/2023-aia)


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

I worked on the Recycle Bin solution for a customer. I solved an issue in my code. I made a mistake on a if statement and it compromised the search by date.

Before lunch I added an extension method to the TinyHelpers NuGet packaged on GitHub.


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



**Mood:** 🎨

### Tuesday
In the morning we had the first call of our weekly demos for Brandplane. We wanted to start with this initiative because we think it's more easy for future customers to understand the power of our application with a short demo.

**Mood**: 👨🏻‍💻

### Wednesday
I created a new pull request on the repo TinyHelpers. I created an extension method for Datetime.
Still in review.

For the rest of the day I worked on AI Tools for Brandplane.

**Mood:** ⌛

### Thursday
In the morning I worked on Brandplane Team feature. We want to group users by teams because it was a feeback from the first demos and customers.
In the afternoon I had demos with Agencies and Customers in the afternoon.

In the late evening I created the draft for the session “Automate your tenant with PowerShell and Azure Functions” that I will at the end of May at Experts Live Netherlands and in September in Prague.
I will work on the session when I will come back from vacation in two weeks.

**Mood:** 😱

### Friday
Less productive day of the week but I created a report on RescueTime to see how went this month.
I can say very well. I worked more than 192 hours with a good productivity pulse value. ☺️

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

**Mood:** 🐣

---

Are you interested in learning GitHub but don't know where to start? Try my course on LinkedIn Learning: [Learning GitHub](https://bit.ly/learninggithub).

![LinkedIn Learning](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sdc2bpiftpadibi4h51c.gif)

---

Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out 🙂

{% embed https://dev.to/kasuken %}