teleren/devto huggingface dataset:
What are getters and setters methods in PHP
Tags: webdev, programming, tutorial, beginners
Published: 2023-12-14 14:25:19

{% embed https://www.youtube.com/watch?v=19KmJghCHdE %}

🚀 Explore the world of PHP Setter and Getter methods with this comprehensive tutorial! 🖥️

🔍 Dive into the fundamentals of object-oriented programming in PHP as we focus on Setter and Getter methods. Learn how to efficiently set and retrieve class properties, enhancing the flexibility and security of your code.

📌 In this video, we'll cover:
- Understanding the purpose of Setter and Getter methods.
- Implementing Setter methods to safely update class properties.
- Creating Getter methods to retrieve the values of private properties.
- Best practices for naming conventions and usage patterns.

💻 Whether you're a PHP beginner or an experienced developer looking to reinforce your skills, this tutorial provides valuable insights and practical examples to elevate your understanding of PHP Setter and Getter methods.
SEC Chief Declines Discussion on Bitcoin ETF
Published: 2023-12-14 14:15:31

Chairman of the U.S. Securities and Exchange Commission (SEC), Gary Gensler, declined to discuss the current status of applications for the launch of spot Bitcoin ETFs in response to a reporter from Bloomberg Television.

In an interview following the meeting dedicated to changes in the Treasury bond sector, the head of the SEC stated:

"The $26 trillion Treasury bond market is, in fact, the foundation of all our capital markets. It's how the government is funded, the Fed conducts monetary policy, and we maintain global dollar dominance. And you want to ask me about crypto? Are these your priorities?"

Gensler added that cryptocurrencies are not only less significant but have also caused harm to many investors.

"They not only fail to comply with securities laws but also with a multitude of other norms," concluded the official.

Bloomberg analyst James Seyffart acknowledged that Gensler "is not entirely wrong in his monologue." However, before the question about cryptocurrencies, the journalist discussed the meeting's agenda with him for about five minutes and could expect an answer, noted the expert.

SEC is currently reviewing more than a dozen proposals for the registration of exchange-traded funds based on the spot price of Bitcoin. Among the applicants are companies like BlackRock, Grayscale, Franklin Templeton, and Fidelity, whose representatives continued discussions with the regulator in early December about the potential launch of products. The process began in November and, according to experts' assumptions, has reached the final stage.

Earlier, Gensler has repeatedly stated that cryptocurrencies are securities and should be regulated by the SEC. However, Rostin Benam, the chairman of the U.S. Commodity Futures Trading Commission, believes that the majority of digital assets are commodities.

As a reminder, according to the SEC chairman, the global economy does not need cryptocurrencies, and they are capable of causing harm. He referred to the digital asset industry as full of fraud, scams, and other violations.
What is Ruby ?
Tags: ruby, rails, webdev, beginners
Published: 2023-12-14 14:08:09

I am a full stack developer and am currently developing a SaaS using Ruby on Rails, Ruby’s most popular framework for web development. 

In this post I would like to explain why Ruby is a great tool.
In my experience it has served me a lot and is my favorite language.

## Ruby

It was created by Yukihiro Matsumoto (aka Matz) in 1993 in Japan.

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



Matz combined the best of their favorite programming language (PERL) to create a powerful, flexible and even fun language.

It is a very expressive language, focused on simplicity and programmer productivity. It is ideal for beginners because of its clear and easy to understand syntax, but robust enough to create applications that can scale to millions of users.

## Main features

- It is a general purpose language, that is, Ruby can be used to develop all kinds of different applications.

- It is an interpreted language, that is, it is not compiled, the Ruby interpreter needs to evaluate the code and translate it into machine language understandable by a computer, but there is no previous compilation process as in C or Java.

- It is high level, it means it is far from machine language and is very close to English.

- It is free software (Open Source) and multiplatform, it can be downloaded for free from the official website and run on different operating systems.

## 100% Object Oriented

EVERYTHING is an object, everything has a set of properties (instance variables) and on the object we can perform actions (or execute methods).


## Popular websites developed with Ruby

Some of the most popular startups developed with Ruby on Rails (Ruby's most popular framework). 

![apps](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5o27nu64dtk1bph4m5zr.png)

In my next post I will explain more about Ruby on Rails. It enables diversity, scalability, and rapid prototyping. Ruby on Rails can decrease web application development time by 25 to 40 percent.
AdventJS, JavaScript/TypeScript challenges for Xmas 🎅
Tags: javascript, typescript, webdev, programming
Published: 2023-12-14 14:06:42

As the creator of [AdventJS](https://adventjs.dev), I'm thrilled to share with you the journey and inspiration behind this festive [coding challenge](https://adventjs.dev).

Each December, **[AdventJS](https://adventjs.dev) becomes a playground for JavaScript developers, from beginners to veterans**, offering a unique problem to solve every day leading up to Christmas.

## What is AdventJS?

**[AdventJS](https://adventjs.dev) is an annual 25-day coding challenge**, starting on December 1st and ending on the 25th. Each day, a new JavaScript problem is released on the platform, designed to test and improve your coding skills in a fun and festive way.

It's available in English 🇬🇧, Spanish 🇪🇸 and Portuguese 🇧🇷.

## The Challenges

The challenges in [AdventJS](https://adventjs.dev) range from simple tasks suitable for beginners to more complex problems that will make even seasoned developers scratch their heads. These problems are not just puzzles but practical scenarios that you might encounter in real-world programming.

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

## Community and Learning
One of the most rewarding aspects of AdventJS is the community engagement. Developers share their solutions, learn from each other, and even collaborate. It's a fantastic way to learn new JavaScript techniques and best practices!

## Why JavaScript?
JavaScript was chosen for its versatility and popularity. It's a language that many are familiar with, and it's used in a wide range of applications, making AdventJS accessible to a large audience.

Also, you can use TypeScript to solve the challenges!

## Join the Fun!
Whether you're a JavaScript newbie or a guru, AdventJS has something for you. It's more than just coding challenges; it's a celebration of the joy of coding and the warmth of the developer community during the festive season.

→ https://adventjs.dev

Happy coding, and let the countdown begin!

**Your feedback and experiences with AdventJS are invaluable.**

Share your stories and solutions in the comments, or reach out to me directly. Let's make this December a memorable one for coding!

#JavaScript #CodingChallenge #AdventJS #DevCommunity
APPINNOVIX: Digital Marketing Institute In Lucknow
Tags: digitalmarketing, webdev
Published: 2023-12-14 13:51:13

Appinnovix Technologies is a leading [digital marketing institute in Lucknow.](https://appinnovix.com/digital-marketing-course-in-lucknow/) Appinnovix provides every service that is related to digital marketing. To enroll in a career in digital marketing please join Appinnovix Technologies. 
For more information please visit our website:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zrgzqytf10k59t1coe4g.jpg)
Vocal Pop & Slap House Sample Loops Download
Tags: audioloops, free, loops
Published: 2023-12-14 13:41:45

With [Vocal Pop & Slap House](https://audioloops.com/product/vocal-pop-slap-house/) you will possess over a unigue selection of extremely high guality sounds that will help you compete with audiolove.me professionally produced Slap House tracks.
https://audioloops.com/product/vocal-pop-slap-house/
Epic basslines, powerful drums, and breathtaking catchy vocals are only a few elements that this extensive pack contains.
 With over 340 carefully crafted audio samples, inspired by the sounds of Alok, Imanbek, Tiesto, Vize, Sigala, and many more, this pack provides you with audiolove.me all the essential elements to produce impeccable Slap House tracks. Expect to find all the usual elements like bass hits & loops, synth hits & loops, a great selection of drum hits and punchy drum loops, and a range of detailed FX elements. Additionally this pack includes snappy local shots and a number of lush local loops. This pack also contains 3 of our fully produced signature songstarter kids, all with audiolove.me a full local top line, local doubles, and backing vocals. You receive all relevant stems of the instrumental AND vocals including the backing vocals both dry and wet!
Unlocking the Flow: A Beginner's Guide to React Flow
Tags: reactflow, development, webdev, react
Published: 2023-12-14 13:31:03

Welcome to the dynamic world of React Flow, where the tides of user interface design are changing. If you're new to this concept, you're in for a treat! React Flow is not just another JavaScript library; it's a paradigm shift that empowers developers to create visually stunning and interactive applications with ease.

**Diving into the Stream:**
**What is React Flow?**
Imagine your UI elements flowing like a river, adapting to user interactions seamlessly. That's the magic of React Flow. It's a library that turns the complex choreography of user interfaces into an elegant dance. With React Flow, you can effortlessly visualize and manipulate complex data structures, making it a game-changer for developers.

**Key Features and Benefits:**
**Intuitive Drag-and-Drop:** React Flow simplifies the creation of draggable elements, making UI design as easy as moving pieces on a chessboard.
Dynamic Connection System: Building connections between elements becomes a breeze, fostering a fluid and dynamic user experience.
Customizable Styles: Inject your personality into your UI with customizable styles. React Flow lets you tailor the look and feel of your application effortlessly.
Getting Started:
**Installation:**
Getting started with React Flow is a cakewalk. Simply install it via npm or yarn and import it into your project. Before you know it, you'll be riding the waves of creative possibilities.

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


**Basic Implementation:**
Initialize a simple flow chart with nodes and edges to witness the magic unfold:


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


**Why React Flow Matters:**
Seamless Integration with React Ecosystem:
As part of the React ecosystem, React Flow fits like a glove, enabling you to integrate it effortlessly into your React applications. Whether you're building a simple to-do app or a complex data visualization tool, React Flow scales with your ambitions.

**Community-Driven Development:**
Join a vibrant community of developers who are passionate about shaping the future of React Flow. With ongoing updates, tutorials, and discussions, you're never alone on your journey to mastering this powerful library.

**Conclusion:**
In the ever-evolving landscape of web development, React Flow emerges as a powerful current reshaping how we approach UI design. Dive in, experiment, and let your creativity flow with React Flow - where user interfaces become an art form, and development becomes a delightful journey. Get ready to ride the waves of innovation!
Greetings from Brandon
Tags: hello
Published: 2023-12-14 13:24:23

Just Singned up and and excited to be part of this community. Im currently working as full stack  web developer and recently made website [CheetahLinks](https://cheetahlinks.com/). 
Im also interested in developing Mobile Apps. My colllegyes introduced me Flutter framework so im here to follow flutter giants to learn more this new technology.

Happy coding!
Prep with Updated CTEP Dumps PDF - Guaranteed Success in First Attempt
Published: 2023-12-14 13:00:40

<h2>Simple Achievement: Your Supreme Guide to AAFM CTEP PDF Dumps Preparation at CertsQuestions</h2>
<p>Thanks for visiting CertsQuestions.com, your helpful destination for simple and effective test prep. If you're getting ready for exams like <a href="https://www.certsquestions.com/CTEP-pdf-dumps.html"><strong>CTEP Exam Dumps</strong></a> from AAFM PDF Questions, you've landed in the right spot!</p>
<p>At CertsQuestions.com, we know learning needs to be straightforward and anxiety-free. We've made a program that's simple to use and stuffed with assets that will help you be successful.</p>
<p>Our CTEP Exam Dumps materials are exactly like your research companions, providing exact details and beneficial assistance. We've designed the web site to be customer-pleasant, enabling you to concentrate on what matters most - your CTEP PDF Dumps planning.</p>
<p>Everything required for any reliable study session of CTEP PDF Dumps. From practice CTEP PDF Dumps to helpful manuals, we've received your again. And here's the great thing - you're one of many on this trip. Numerous have been successful with CertsQuestions.com, and you will also!</p>
<h3>Tension-Free of Charge Exam Mastery Navigating CTEP Exam Dumps with Assurance on CertsQuestions</h3>
<p>Interact with a group of like-minded folks on our foundation. Reveal ideas, obtain observations, and find support for the exam. It's a place where by everyone understands the difficulties of&nbsp;<a href="https://www.certsquestions.com/CTEP-pdf-dumps.html"><strong>AAFM CTEP Exam Dumps</strong></a> prep, and with each other, we can easily make your experience somewhat better.</p>
<p>No matter if you're just starting up or you're a seasoned exam-taker, CertsQuestions.com is the go-to set. Discover our AAFM CTEP Exam Dumps, review on your personal tempo, and walk into your exam with confidence. Accomplishment is within easy reach, and we're right here to help you every step of the way.</p>
<p>Able to make the CTEP PDF Dumps prep very simple? Dive into <a href="https://www.certsquestions.com/"><strong>CertsQuestions.com</strong></a>, and let's engage in the journey to accomplishment!</p>
How to Augment GPT-4 with Qdrant to Elevate Its Poetry Composition Capabilities
Tags: qdrant, gpt4, vectordatabase, llm
Published: 2023-12-14 13:03:44

In the evolving realm of artificial intelligence, the collaboration between GPT-4 and Qdrant reshapes creative applications. While GPT-4 excels in generating human-like text, occasional shortcomings in coherent outputs, especially in poetry, prompted the integration of Qdrant, a high-dimensional vector database. This synergy augments GPT-4 with enhanced data-handling finesse, guiding it away from nonsensical outputs. The result is a transformative approach to poetry composition, where GPT-4's linguistic eloquence harmonizes with Qdrant's precision, promising a future where machines contribute meaningfully to artistic expression.

We’ll use an approach with a dataset of Shakespeare’s works which could potentially enhance its ability to generate poetry that mirrors the poet’s style and depth as accurately as possible.

Shakespeare’s works are renowned for their rich vocabulary, intricate poetic structure, their rhythm, and their profound exploration of human nature. By training GPT-4 on this dataset, the model could learn to mimic these aspects of the poet and playwright’s work, thereby elevating its poetry composition capabilities.

After the code implementation, we passed 5 questions, and the results were amazing. This is one of the question that I asked from the `qa_chain`, and see the results. Isn't this interesting!

```
question = "Write a poem in sonnet style on the theme 'Time and Mortality'."
result_4 = qa_chain({'question':question})
print(result_4['answer'])
```
The results were:

```
With Time's decree, mortality is bound,
A fleeting whisper in the cosmic round.
In life's rich tapestry of joy and strife,
Each thread is woven with the stuff of life.

The art of healing, a secret, sacred dance,
Brings solace, turns the tide of dire circumstance.
In Nature's remedies, true delight is found,
A joy that echoes with a timeless sound.

Yet mortal fear, like a shadow in the night,
Can taint the soul, turn day's delight to fright.
For Time, the great leveller, brings us to our knees,
In the face of life's most profound mysteries.

So heed this plea, upon thy life, refrain, 
From seeking glory, wealth - for all is vain.
```

Visit the code implementation in my medium article here: https://medium.com/@akriti.upadhyay/how-to-augment-gpt-4-with-qdrant-to-elevate-its-poetry-composition-capabilities-acbb7379346f
How do I handle the problem of header not being updated after route conversion in React?
Tags: react
Published: 2023-12-14 13:01:16

When I was writing a React program, I used the useEffect hook function to update the title after route conversion, and found that when the callback function in Effect was executed, the document.title print value was still the value before the jump, and the useEffect hook function was executed after Dom rendering. But at this time I do not know why the title has not changed, maybe I was wrong at that time, how can it be achieved?

```js
import { useEffect, useRef, useState } from "react";
import { useLocation } from "react-router-dom";

export default function useRouterTracking() {
  const viewNumber = useRef({});
  const location = useLocation();
  const pathname = useRef(null);
  const [title, setTitle] = useState(document.title);

  useEffect(() => {
    console.log(title);
    pathname.current = location.pathname;
    setTitle(document.title); 

    if (title in viewNumber.current) viewNumber.current[title] += 1;
    else viewNumber.current[title] = 1;
  }, [location.pathname, title]);
}
```
Each time, I print the previous title, which is not what I want, nor is it what a React program should render
61. Industry insights from an alumnus (Day 59)
Tags: tips, beginners, productivity
Published: 2023-12-14 12:46:39

Today, I attended an online LIVE Industry Insights Session with an alumni from my coding school. She talked about her experience as a coding student with no previous coding experience, then upon graduation worked for a startup, afterward worked for a corporate company, and then finally started her own startup company too!

This is what she shared with us:

1. When you are in a coding boot camp, there’s so much new information thrown at you, and learning it quickly enough seems daunting! It’s like drinking from a fire hydrant.

2. Your classmates stay with you forever because everyone is helping each other out during the course, and therefore these relationships are strong. Keep them!

3. Both soft skills and hard skills are important, and they need to be exhibited in the right way.

4. If you are struggling, you will always have the feeling of, “I am not tech enough” or “I was a fake”. Don’t let those imposter syndrome let you down. Be patient and keep learning.

5. Attend meet-ups and talk to the people there – it’s the best way to get a coding job rather than applying to hundreds of jobs. 

6. Don’t take rejection personally because the issue could be on the other side too, that is the employer. Maybe, they made the wrong decision or they aren’t organized enough in their selection process.

7. When working at a startup company, coders should be willing to do whatever needs to be done there, and it may not necessarily be related to coding. It could be other things like customer service, tech support, or something else.

8. When you complete a project, you feel fatigued. The best way to overcome it is to celebrate your achievement.

9. You will always have areas in coding that you are good at, and there will be areas you are not good at. It’s OK. You don’t have to be an expert in everything. Just be good at one thing and it will help you succeed.

10. When you are in a coding job, you will notice that most of the time you are working out solutions to a problem rather than just coding.

Great tips, I thought!
Understanding the Leaky Bucket Problem with Redis
Tags: programming, redis, tutorial, beginners
Published: 2023-12-14 12:45:14

In my path to become a software engineer, I was challenged by my mentor @sibelius to demonstrate how I implement the leaky bucket with this [API](https://www.bcb.gov.br/content/estabilidadefinanceira/pix/API-DICT.html#section/Seguranca/Assinatura-digital) documentation.

To work on that i started drawinng on [Excalidraw](https://excalidraw.com/) and got this design.
![leaky-bucket design api](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/txvm68kivusmrab1qc04.png)

Understanding this picture is pretty simple; all the queries are going to hit Redis to check if the information already exists in memory. If the information exists in memory, we get the answer back. If not, we have to check if we have 'coins' in our bucket to make a query to the DICT API and get the answer back to the client. We then save that in Redis. If our bucket is empty, we don't call the DICT API and respond with a rate limit.

This initial application will have a very simple calculation for bucket usage:

Status 200: Remove 1 coin
Status 400: Remove 20 coins
Bucket refill: 2 coins per minute
Bucket size: 100 for individuals and 1000 for legal entities
Wordpress Plugin Development | 2024
Published: 2023-12-14 12:45:13

{% embed https://youtu.be/0iuRNDN7M1k %}

Requirements:
Basic HTML , CSS , jQuery , PHP
WordPress Installation
Text Editor of your choice

Full Course: https://www.biggidroid.com/course/wordpress-plugin-development/

Description:
Welcome to the WordPress Plugin Development Course! Throughout this program, you’ll gain comprehensive insights into the functionality of WordPress plugins and acquire the skills to craft your own from the ground up.

Our journey begins with the creation of a dynamic gallery plugin, setting the foundation for your understanding. Subsequently, we’ll delve into the intricacies of building a contact form plugin, akin to the widely used Contact Form 7. Following that, we’ll explore the development of a WhatsApp floating call-to-action button plugin, a valuable addition to both your personal website and those of your clients.

Full Course: https://www.biggidroid.com/course/wordpress-plugin-development/

This course is designed to be transformative, providing you with the knowledge and expertise to enhance your WordPress capabilities. Don’t miss out on this life-changing opportunity! Join me now and unlock the full potential of WordPress plugin development.

Who this course is for:
WordPress Plugin Creators
WordPress Theme Creators
PHP Programmers

Who want to create provesion and sell your plugin:
Entrepreneurs
Webdesigners
Web Developers
WordPress Creators

Full Course: https://www.biggidroid.com/course/wordpress-plugin-development/