teleren/devto huggingface dataset:
🚀 My Journey in Hacktoberfest 2023
Tags: hack23contributor, beginners, opensource, hacktoberfest23
Published: 2023-10-21 15:56:21

🚀 My Journey in Hacktoberfest 2023: From Newbie to Placeholder Contributor! 🎉

Hey Dev Community! 👋

I'm thrilled to share my exciting experience as a newbie contributor to Hacktoberfest 2023. It was an incredible journey that not only introduced me to the world of open source, but also led to a special milestone - becoming a Placeholder Contributor and earning that shiny badge! 🏅

🌱The Beginnings of My Open-Source Adventure

Like many others, I had heard about the open-source community and the impact it can have on the software industry. But I was never quite sure how to get started. That's when Hacktoberfest came to the rescue! It's a fantastic initiative that encourages developers of all levels to dip their toes into open-source contributions. So I decided to take the plunge.

🏆 Joining the Ranks of Placeholder Contributors

My first step was to find a project to contribute to. With a bit of research, I stumbled upon a project that was part of the Placeholder Contributor program. What's the Placeholder Contributor Program, you ask? Well, it's a program designed to guide newcomers, like me, in making their first open-source contributions. I couldn't have asked for a better start.

🎖 Earning That Coveted Badge
The journey wasn't without its challenges. I had to learn about version control systems, Git, pull requests, and coding standards. But it was all worth it. I submitted my first pull request, and the feeling when it got accepted was indescribable! I had officially become a Placeholder Contributor and earned a badge to prove it. 🙌

🔥 The Spark of Motivation
That badge served as a symbol of achievement and ignited a fire within me. I felt motivated like never before to continue my journey as an open-source contributor. The thought of helping projects, learning from experienced developers, and being part of a global community excited me.

🌎 The World of Open Source Awaits
Hacktoberfest 2023 wasn't just an event; it was a gateway to a world of collaboration, learning, and growth. I now look forward to contributing more, connecting with other developers, and making a meaningful impact on the open-source projects I encounter.
So, to all the fellow newbies out there, take that leap of faith, dive into the open-source community, and don't be afraid to start small.

You never know where your journey might lead you, but one thing's for sure: it's going to be an adventure worth embarking on. 🌟

Have you participated in Hacktoberfest 2023, or are you considering joining the open-source community? Share your experiences and thoughts in the comments below. Let's keep the conversation going! 💬👇

Happy coding and open sourcing! 👩🏻‍💻🚀🌐
A Never Ending Beginning
Tags: beginners
Published: 2023-10-20 22:10:32

I have been a baker, an outdoor educator, and a cashier. I have been a plastics processing technician, an aircraft assembler, and a carpenter. I have studied acting, physics, and renewable energy. I have begun again and again and again, never being happier than when I am first learning a new skill. Most recently, I taught computer science in a public high school for a year. I got to have the ultimate beginner experience -- there is nothing quite like teaching while both learning to teach and learning your material at the same time. I also learned two very important lessons -- that I have an affinity for coding, and that I never want to work in a public high school again.

---

  So here I am once more, taking a crash course in HTML, CSS, JavaScript, React, Python, and Flask through Flatiron School. We have just finished our third week, with the first phase of the class culminating in a simple one-page web app designed to interact with an API. I have found that I really enjoy all the tinkering and troubleshooting -- the "wouldn't it be cool if" followed by figuring out how to get there. Any concern I had about losing interest as my rate of learning slows has completely fallen away as I have realized that coding is a literally bottomless fractal. Just as importantly, so is the community around it -- anywhere you turn, there is an expert in something, or even just an intrepid coder who figured out that thing I had been tearing my hair out over, who has already shared their knowledge. As time goes on and I learn more about whatever language(s) I wind up using most, more tools will be created, more languages will be written, and more literature will come out, forever expanding the field exponentially faster than any one person could keep up with. It is, in many ways, the ultimate expression of the role diversification and specialization that humanity has been working on for millenia -- and it affords mercurial fools like me the opportunity to be beginners for life.

---

###PS: A question for seasoned devs
One thing I have really been wondering about as I have gotten to write more interesting projects is global variables. I have heard they are somewhere between generally frowned upon and vehemently detested -- depending on who you ask -- but at this stage I am struggling to see why. I understand that an over-reliance on them would be sloppy and certainly cause the potential for name reuse and terrible bugs, but used well, it seems like they could reduce the issue of hot potatoing objects from function to function. When passing variables through function call after function call, I have created errors that could have been avoided if I had stored more information in the global context. Perhaps I am being too zealous in my separation of concerns, and should collapse multiple functions into one? At any rate, if you happen to read this, I would appreciate your thoughts.
Aaron Patterson - Future of Developer Acceleration 2023
Published: 2023-10-21 15:54:03

* [Future of Developer Acceleration with Rails](https://www.youtube.com/watch?v=GnqRMQ0iQTg) - 56.29 minutes

 * Write fast Apps

 * Write Apps fast

## Write Fast Apps

* Don't write extensions in Rust

* Use [YJIT](https://shopify.engineering/ruby-yjit-is-production-ready)

* Use [Vernier](https://github.com/jhawthorn/vernier)

## Write Apps Fast

* Aaron demystifies language servers, and builds a Ruby syntax checker.

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

* What if our Language Server was "Framework" or "Rails" smart.

* Mentions prior art: [Tapioca](https://github.com/Shopify/tapioca)

* Discusses his project [Refreshing](https://github.com/tenderlove/refreshing)

 * Hover on ActiveRecord class to get attributers

 * Understand Routes

 * Listen to Errors and Show you where they are in your code

## Pitch

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q5e10qygr7lttsajz5di.png)
Technical test for rust junior dev 🤔
Tags: rust, software, coding, developer
Published: 2023-10-21 15:46:54

A week ago, I gave a technical test to a junior candidate who was applying to our company as a rust junior dev. I presented the following statement and asked them to solve it within 30 minutes.

> Develop a dynamic Fibonacci algorithm so that when the user presses 7, it prints the Fibonacci of 7, when they press 9, it prints the Fibonacci of 9, and when they press q, the process terminates.

I provided them with a keyboard input handling code template to save time on that.

`cargo add k_board`

```rust
fn main() {
    for key in k_board::Keyboard::new() {
        match key {
            k_board::Keys::Letter('q') => break,
            k_board::Keys::Number(7) => //fi7,
            k_board::Keys::Number(9) => //fi9,
            _ => (),
        }
    }
}
```

Unfortunately, the code he provided was failing to print the Fibonacci sequence, and it was also not clearing the console.

**Question:** Can a junior developer solve the problem I provided in 30 minutes? Or has it only been a developer with little skill?

I'm reading your comments and receiving your own code perspective!
Choosing what to spend your time on
Tags: mentalhealth, learning
Published: 2023-10-21 15:40:40

Recently I've been stuck trying to start learning something new. I'm self-thought and am currently job-searching and noticed the insane amount of applications being sent in by numerous other people, obviously this had gotten me down but I knew I had to take action and adapt. Should I keep advancing my front-end knowledge? Should I make a new better project for my portfolio? I have a decent foundation on the front-end, so then why not complete the stack?

"Aha!" I muttered as I started searching for a back-end guide, and then my hope got squished when I saw how much I had to learn before becoming competent. How much time do I have to spend? A month? two months? five? I knew these were the wrong questions, but the thought did make me hesitant to dive in. I was able to be comfortable with SQL and exposed myself to Postgres after a few months, albeit I did struggle pushing myself to do so.

"There has to be an easier way" I thought, and there was. When I was searching I noticed a lot of web-builder jobs with Wordpress or Shopify, it'll be easier to jump in and it'll probably only take a month max if I wanted to be competent, but then questions began cluttering my head again, what then? Make web projects using said builders? What projects should I do? Do I even want to learn these? Isn't this choice "weaker" in the long-run?

There again paralyzed by choices, I couldn't commit to one so I spent a few weeks switching between the two, constantly trying to make up my mind, and have come to a depressing realization, I'd realized that **I have wasted a lot of time thinking of what I wanted to spend my time on**. This realization made my heart drop, as even before this web-builder vs back-end debate, this feeling of paralysis isn't new, I had contemplated over what to choose before: web-dev vs game-dev, continue self-thought vs continue traditional education, continue web-dev vs start mobile-dev, learn X vs learn Y, etc. etc. etc.

I wanted to shout, but I couldn't cause it was 2:00AM and I lived with my family, so just like anyone stuck fixing a bug for hours, I shouted my heart out internally. I wanted to reject this paralysis, I hated having to over-analyze, I hate having to think so much to choose so I gave up all my thoughts, I let go of what's best for my future, what's best for my time, and held on to one question: "what are you genuinely interested in right now?"

The next day I started learning game development, hours passed and I continued, there was no other thought but wanting to learn more. After years of overthinking, I have somehow forgotten what it felt like to genuinely learn for the sake of learning.

## Conclusion

Often choices are difficult and that's true to some extent, we want to choose the right path, the right person, the right career. However, I think we are too hung up on that part, we want the "best" option and in doing so we ask the wrong questions.
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-21 15:36:51

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
C# - Creating Expression Trees for Dynamic Query Generation
Tags: csharp, programming, tutorial, productivity
Published: 2023-10-21 15:30:00

Expression trees in C# allow you to represent code as data structures, enabling you to build and manipulate code dynamically. This is particularly useful for scenarios where you need to create dynamic queries for databases or APIs.

Here's a simplified example of using expression trees to build a dynamic filter:

```csharp
using System.Linq.Expressions;

public class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
}

public class Program
{
    public static void Main()
    {
        var people = new List<Person>
        {
            new Person { Name = "Alice", Age = 30 },
            new Person { Name = "Bob", Age = 25 },
            new Person { Name = "Charlie", Age = 35 },
        };

        // Define a dynamic filter using an expression tree
        var filter = BuildFilter<Person>(p => p.Age > 30);

        // Apply the dynamic filter
        var filteredPeople = people.Where(filter.Compile());

        foreach (var person in filteredPeople)
        {
            Console.WriteLine($"{person.Name}, Age: {person.Age}");
        }
    }

    public static Expression<Func<T, bool>> BuildFilter<T>(Expression<Func<T, bool>> predicate)
    {
        return predicate;
    }
}
```

In this example:

- We define a `Person` class to represent individuals with a `Name` and `Age`.
- We create a list of `Person` objects.
- We use expression trees to define a dynamic filter, which is a predicate that checks if a person's age is greater than 30.
- We apply the filter using the `Where` method from LINQ.

Expression trees can be very powerful for constructing complex queries dynamically, and they are commonly used in Entity Framework for building database queries. You can build dynamic filters, sorting criteria, and projections by constructing expression trees programmatically, allowing for flexible and efficient querying of data sources.
New for Jetpack Compose
Tags: android, kotlin, devops
Published: 2023-10-21 15:08:05

Hii , I am new in jetpack compose . but at the same time I am a bit confused bcoz I don't know where I should start to learn jetpack compose. I just want to know about your experience from where you guys have started learning the jetpack Compose. which resource did you follow? youtube or documentation.
Hi I'm King Johney
Published: 2023-10-21 15:06:51

Hey there, fellow tech enthusiasts and innovators!

I'm Johney, your friendly neighborhood web designer, developer, and avid tech blogger. I'm thrilled to be part of this vibrant community where creativity meets cutting-edge technology.

In this space, we celebrate the power of coding, the elegance of design, and the endless possibilities that the tech world offers. Whether you're a seasoned developer, a design aficionado, or someone just starting their coding journey, you're in the right place!

Let's share our experiences, exchange ideas, and explore the latest trends together. From web development tips to the coolest programming languages and the most inspiring design concepts, this community is your go-to source for all things tech.

Feel free to ask questions, share your projects, and dive into lively discussions. Together, let's push the boundaries of innovation, learn from each other, and create a supportive space for everyone passionate about technology.

Excited to embark on this tech adventure with you all! 🌟✨ Let's code, design, and innovate our way into the future! 💻🎨🚀
AWS is Charging for Every IPv4 Address Soon. Workarounds?
Tags: discuss, aws
Published: 2023-10-21 15:02:53

AWS has [let everyone know](https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/) they are going to be charging $0.005 USD per hour per IP for every IPv4 address starting in February 2024, whether the address is in-use or not (currently if the address is in-use, it's free).  The best solution, as suggested in that blog post, would be to move the whole world to IPv6, but we've been trying to do that for way too long and it hasn't happened yet.  

Anybody have other workarounds to minimize cost for those of us running a small site tied to our own domain?  Thanks.
O Docker Compose agora tem uma V2, veja como instalar
Tags: docker, dockercompose, yml, linux
Published: 2023-10-21 14:45:00


Recentemente formatei meu computador e ao instalar o docker para subir meus projetos eu me deparei com uma série de erros! Fazia um ano que eu não formatava minha maquina e por conta disso o docker lá não apresentava problemas pois já estava totalmente configurado.

Enfim, nessa brincadeira eu descobri que foi lançado uma V2 do docker-compose, então vamos lá.

**O QUE HÁ DE NOVO NO DOCKER COMPOSE V2?**

- **Ele foi escrito em GO, enquanto que a V1 era em Python**

- **Ele possui suporte para redes personalizadas:**
Para fazer isso ele fez uma alteração muito besta, agora ao invés de usar underline passará a utilizar hífen como separador de nome em seus containers, isso garante que redes DNS possam acessar o conteúdo de seu docker compose.

- **Contudo...Certos comandos deixarão de usar hífen!**
coisas como docker-compose passará a ser docker compose, isso irá chamar a CLI da V2 por padrão agora.

- **O suporte da V1 foi oficialmente encerrado em julho de 2023**

**COMO INSTALAR?**

São ao todo 3 etapas:

1. Instalação do docker
2. Instalação do plugin
3. Adicionando o docker ao grupo de usuarios (para remover a necessidade de rodar o docker compose como sudo)

**1- Instalação do Docker**
Configure o repositório APT:

`# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg`

Adicione o repositório APT
`echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update`

Instale os pacotes do Docker:
`sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin`

Teste com a imagem do hello-world para ver se está tudo OK
`sudo docker run hello-world`

**Instalação do Plugin**
Instale o pacote:
`sudo apt-get update
sudo apt-get install docker-compose-plugin`

Verifique a versão:
`docker compose version`

**3. Adicionando o docker ao grupo de usuarios (para remover a necessidade de rodar o docker compose como sudo)**

Crie um grupo de usuarios para o docker caso não exista:
`sudo groupadd docker`

Adicione o seu usuário para o grupo:
`sudo usermod -aG docker $USER`

Faça login no grupo docker (para nn precisar ter que fazer logout/login novamente):
`newgrp docker`

Faça novamente o teste do hello world:
`docker run hello-world`

# **E agora?**

Faça um simples teste em algum app que você possua, ao invés de inicializar ele com:
`docker-compose up`

tente com:
`docker compose up`
Pinky Finance: Your Gateway to Web 3.0 Development Success
Published: 2023-10-21 14:39:16

Are you a web 3 developer looking for new opportunities to showcase your skills and monetize your creations? Look no further! We are excited to introduce [Pinky Finance](https://pinky.finance/marketplace), a fully decentralized web 3.0 marketplace designed specifically for developers like you.



## What is Pinky Finance?


Pinky Finance is not just another marketplace; it's a thriving ecosystem where web 3.0 developers can submit their products for sale, and anyone can purchase these products in a fully decentralized manner using cryptocurrency payments. But what sets Pinky Finance apart is our unwavering commitment to quality and transparency. Here's what you can expect when you become a part of our platform:

1. Decentralized Transactions

All transactions on Pinky Finance are fully decentralized. Say goodbye to intermediaries and third-party gatekeepers. You have complete control over your creations and the value you generate from them.

2. Automatic File Delivery

The future of commerce is automated, and Pinky Finance is leading the way. When a customer purchases your product, the files are delivered automatically. This seamless process ensures a hassle-free experience for both developers and users.

3. Code Review Process

We understand the importance of trust in the web 3.0 space. To maintain the integrity of our platform, every submitted product undergoes a thorough review by our dedicated Pinky Finance web developer team. This rigorous evaluation process ensures that there are no hidden surprises and that the code works as intended.

Earning Opportunities

Pinky Finance opens up exciting avenues for web 3 developers to earn money with their crypto DApps and solutions. You can monetize your creations and tap into a growing community of users who value quality and innovation.

How to Get Started

Joining Pinky Finance is easy:

Visit our website at [Pinky Finance Marketplace](https://pinky.finance) and create your developer account.
Submit your web 3 product for review.
Once approved, your product will be available on our marketplace, ready for users to discover and purchase.
Join the Pinky Finance Community

[Pinky Finance](https://pinky.finance) is not just a marketplace; it's a community of web 3 developers and enthusiasts who are passionate about decentralization and innovation. When you become a part of Pinky Finance, you'll have access to a network of like-minded individuals, collaborative opportunities, and a supportive environment to grow and thrive.
APPLE IPHONE 14 PRO, EXCLUSIVE GIVE-AWAY
Published: 2023-10-21 14:37:01

**

## - To claim iPhone 14 pro, follow these easy steps:
**
**Click on the “iPhone 14 ” below to get started

Please take a few minutes to fill out this survey.

Participants must complete this offer to stand a chance of winning a brand-new iPhone 14. This offer is only allowed in the United States (US).**

## 
<u>

###[ **iphone 14**](https://gologin.com/affiliate-networks/cpabuild)
</u>
Method Chaining In Javascript
Tags: javascript
Published: 2023-10-21 14:21:00

> Javascript มันไม่มีการ Chain method call แบบสวย ๆ เหมือนภาษา functional programming อันอื่นบ้างหรอ(ว่ะ)?

ผมว่า dev หลาย ๆ คนที่เคยจับ javascript มาบ้างหรือใช้งานอยู่ทุกวัน ก็น่าจะเคยถามคำถามนี้ในใจกันอยู่หลายครั้ง ทั้งที่ลอง search ใน internet ก็มีอยู่หลายวิธี แต่มันก็ไม่มีวิธีดี ๆ ที่ถูกใจสักกะอย่าง

ผมเองก็เป็นหนึ่งในนั้นแหละ 

แต่ ...........

เร็ว ๆ นี้เราจะสามารถใช้ไอ้เจ้าสิ่งนี้ได้แล้วผ่านตัว proposal ที่ชื่อว่า [pipeline-operator](https://github.com/tc39/proposal-pipeline-operator) รายละเอียดสามารถอ่านดูจากข้างใน proposal ได้เลยนะครับ ซึ่ง pipeline-operator ก็อยู่ใน `stage 2` แล้วจากทั้งหมด 4 stage ด้วยกัน

ซึ่งบอกได้เลยว่าถ้าเสร็จเมื่อไหร code javascript เราจะสวยและอ่านง่ายขึ้นเยอะเลย หลาย ๆ คนที่เคยเกลียด javscript อาจจะเปลี่ยนใจก็ได้นะ (หรือป่าวนะ? 😋)

เราสามารถ test feature นี้ได้ผ่าน babel ดังนี้

```bash

// Create a New Directory for Your Project:
mkdir pipeline-operator-test
cd pipeline-operator-test

//  Initialize a New Node.js Project
npm init -y

//  Install Required Dependencies:
npm install \
    --save-dev \
    @babel/core 
    @babel/cli \
    @babel/preset-env \
    @babel/plugin-proposal-pipeline-operator
```

สร้าง `.babelrc` file ขึ้นมาแล้ว copy, paste โล้ด..
```json
{
    "presets": [
        "@babel/preset-env"
    ],
    "plugins": [
        [
            "@babel/plugin-proposal-pipeline-operator",
            {
                "proposal": "minimal"
            }
        ]
    ]
}
```

ทีนี้เราก็สามารถ chain method call แบบนี้ได้แล้ว

```javascript
const double = (n) => n * 2;
const increment = (n) => n + 1;

let result1 = 5
  |> double
  |> increment;

// หรือจะใช้แบบนี้ก็ได้
let result2 = 5
  |> double(%)
  |> increment(%);
```

บ๊ะ .. เห็น code แล้วมันช่วงสวยงามเหลือเกิน 😆😆