teleren/devto huggingface dataset:
A wonderful world of backend
Tags: learning, backend, programming
Published: 2024-06-29 20:31:15

Hello everyone, I am a web developer and I particularly enjoy backend development. In this article, I will share my experience with a website I am currently designing.

I will soon begin my internship at HNG, and as part of the application process, we are required to write articles about our experiences as developers. This is the reason for this article.

The problem I have noticed is that many people today have difficulty finding a house to buy or rent in my country, the Democratic Republic of Congo. As a developer, I reflected on this issue and am proposing something that will benefit everyone.

My solution is to create a website where homeowners can post their houses and where tenants and buyers can find the homes they need. On the backend side, I use Node.js and its framework Express. For the ORM, I work with Prisma and for database management, I use PostgreSQL. With this project, I aim to use my knowledge to benefit society by solving a problem that affects most people.

I am very enthusiastic about starting my internship at HNG and look forward to gaining new knowledge that will help me grow professionally and hopefully secure an international contract.

For more information, visit :
[HNG Internship](https://hng.tech/internship) or [HNG Hire](https://hng.tech/hire)

---

Thanks, see you soon.
🤑XRP Price Recovery: Will XRP Rank Under Top 5 in 2024?
Published: 2024-06-29 19:32:13


🔟 XRP's Position and Market Struggles
XRP has been in the crypto industry for over ten years, currently ranked 7th by market capitalization. Despite its high rank, its reputation has declined due to a six-year-long crypto winter, with its price rarely moving above $0.5, except for a few exceptions.

📉 Recent Decline and Future Prospects
Recently, XRP's price dropped to $0.47 amid a declining crypto market. Can XRP recover and break into the top 5 this year?

🚀 XRP's Price Journey and Challenges
Ripple launched XRP in 2013. Initially, its value struggled but surged to an all-time high of $3.31 in January 2018. However, it then plummeted to as low as $0.11 in 2020 due to the COVID-19 outbreak. The SEC lawsuit against Ripple in December 2020 further impacted XRP, leading to delistings and continued price struggles. Despite a brief rise to $2.00 in April 2021, the price fell to $0.29 by June 2022.

⚖️ Legal Battles and Market Competition
The ongoing Ripple vs. SEC legal battle has restricted XRP's growth. Additionally, competition from Bitcoin, Ethereum, Solana, and BNB, which offer advanced features like DApps and Smart Contracts, poses challenges. New layer-2 blockchains and cryptocurrencies further complicate XRP's position.

📈 Can XRP Reach the Top 5 in 2024?
Ripple’s legal battle is a major restraint. If resolved favorably, XRP's price could improve. Market conditions are also crucial. A bullish market could push XRP to $0.7 or even $1, increasing its market cap significantly. To enter the top 5, XRP's market cap must reach $65 billion, requiring a price above $1.16. Analysts predict a surge between $0.7 and $0.9 for 2024, but reaching the top 5 remains challenging without a significant bull run.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sdyjf34lcdfc8zazpi81.png)
Short review of a sample sales dataset for retail outlets
Published: 2024-06-29 20:22:15


## **Introduction**
This dataset was written originally by Maria Carina Roldán and modified by Gus Segura. The dataset tends to collate sales data of some companies in countries spanning North America, Europe and Asia. It reflects the sales data of the documented companies from year 2003 to 2005. This review provides a cursory view of the dataset with the aim of gleaning initial insights. It serves as one of the requirement for the HNG 11 internship program, click here https://hng.tech/internship to learn more. The dataset can be found here https://www.kaggle.com/datasets/kyanyoga/sample-sales-data?resource=download

## **Structure of the dataset**
This dataset has 25 columns and 2823 rows. It has a total of 16 categorical variables and 9 numerical variables.

## **Observations**
Upon initial observations some anomalies were discovered and they are,
1.  The ORDERDATE variable was not properly formatted. Cell F53 has a number  38598 instead of a date. 
2. The dataset set was spanned 3 years (2003-2005)
3.  Some phone numbers are wrongly formatted for example cells O13-O15 are not in the accurate USA phone number format.
4. There are 76 empty cells in the POSTALCODE column, 1486 in STATE column, and 16 inaccurate postal code (just had the number 2) for Ireland.

## **Insights and Trends**
Based on the preliminary observation, certain insights and trends were seen. Notably, the US has the most orders placed followed by Spain and France. These accounted for more than 50% of the total orders placed.

![Figure 1: A chart of Country versus total orders placed.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bvhb576334ja0f4nydle.png)
Figure 1: A chart of Country versus total orders placed.
Again, Classic cars and Vintage Cars accounted for most ordered product line. They accounted for 56% of the overall products ordered.

![Figure 2: A graph of Product Line and the Quantity Ordered](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f8xgbj3dqvmxjhpvdog1.png)
Figure 2: A graph of Product Line and the Quantity Ordered

In addition, Using 2003 as a base year, there was 34.% increase in sales in 2004 and a sharp drop of  49% in 2005. 

![Figure 3: Sales Trend from 2003-2005](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c4unebzv6jxjjfb24rj1.png)
Figure 3: Sales Trend from 2003-2005

Finally, many companies did not sell at the Manufacturer’s Suggested Retail Price (MSRP) only about 27 orders were sold at the MSRP.

## **Conclusion**
Effectively, several insights could be gleaned from the selected dataset, but to achieve this, a thorough cleaning and standardization process must be done to avoid wrong results. This approach can be done by asking some questions, dealing with blanks, removing duplicates and handling wrong formats and inaccurate data. Furthermore, further analytical procedures needs to be applied to provide better insights. Hopefully, more experience will be garnered from the HNG premium network   https://hng.tech/premium
TECHNICAL REPORT ON SALES DATA
Published: 2024-06-29 20:19:25

## INTRODUCTION
The objective of this report is to offer a preliminary analysis of the [supply sales dataset](https://kaggle.com/datasets/kyanyoga/sample-sales-data). Through an examination of the dataset's structure and contents, we aim to identify important variables, spot obvious trends, and suggest areas for further analysis. 
The dataset comprises sales data with various variables, including ordernumber, quantityordered, price, orderlinenumber, sales, orderdate, status, qtr_id, month_id, and year_id, among others. 

## OBSERVATIONS

### Dataset Structure and Key Variables:
 
- The dataset contains 25 columns and 2824 rows with different data types. For example, the column QUANTITYORDERED, PRICEEACH and ORDERLINENUMBER are numerical. STATUS and PRODUCTLINE columns are categorical; and CUSTOMERNAME and CITY column are string datatypes. The ORDERDATE column is in “string” format and should be converted to a datetime format for time-series analysis.

- Geographical Insights: The dataset includes geographical data such as CITY, STATE, and COUNTRY which can be useful for identifying top market regions with the highest sales volumes.

- Sales Distribution: The SALES column shows a wide range of sales amounts. This indicates varying order sizes, which might be as a result of different DEALSIZE categories (Small, Medium, Large).

- Order Status: The STATUS column provides insight into the state of each order (e.g., Shipped, On Hold, Cancelled). This column is important for understanding the fulfillment process and identifying any potential delays or cancellations.

### Insights

- Upon visual inspection, sales tend to vary significantly across different months. A monthly trend analysis can help identify peak sales periods.

- Different PRODUCTLINEs (Classic Cars, Motorcycles, Trucks and Buses) might have varying sales performance. Analyzing sales by product line could highlight the most and least popular product categories.

- The majority of orders have a status of "Shipped," indicating a high fulfillment rate. However, further investigation is needed to understand the reasons behind cancelled orders.

## Conclusion
This review of the sales dataset highlights several areas for further analysis, including monthly sales trends, product line performance, and order fulfillment status. By exploring these areas in more depth, we can gain valuable insights to inform business decisions.

## Next Steps

- Convert ORDERDATE to datetime format for time-series analysis.

- Perform detailed trend analysis on sales data across different time periods.

- Analyze product line performance to identify the most popular products.

- Investigate order cancellations to improve the fulfillment process.

For more information about the HNG Internship and how to hire top talent, please visit:

- [HNG Internship](https://hng.tech/internship)

- [Hire top talents](https://hng.tech/hire)
My somewhat rocky start to HNG11...
Tags: hng, internship, webdev, htmx
Published: 2024-06-29 20:11:30


![HNG meme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hh72p9p7codgk14crhpo.jpg)Between you and me, there is a screen.

Nope? Apologies if that opening joke turned you off, but stick with me here

Between you and me, I never thought the first task for this year's HNG internship would be to write an article(if you don't know what HNG or internship means, Keep reading). Trust me, I triple checked to make sure I hadn't registered for the wrong track but it was written there in bold text - “STAGE ZERO TASK - BACKEND TRACK”

For someone like me who dreads putting pen to paper or more appropriately, fingers to keys, I was ready to jump off the HNG rollercoaster of fun, but then something crazy happened… JK, a friend convinced me otherwise.

I'm to write about a difficult problem I recently encountered but in my opinion a proper article would be when have I never faced problems when I boot up my pc? No seriously, when?

However, a particularly interesting recent problem that stands out is a problem I encountered while working with the emerging JavaScript library, Htmx. Everything was going well until I had to do redirects! You see, with the way Htmx works, the direct way of doing redirects wouldn't work as Htmx requires that you return hypermedia from the backend(it's not as bad as it sounds, trust me)

Being an emerging technology as it is, there was no working solution to be found anywhere. Stackoverflow just led me around in circles of Qs and As that didn't really help and chatgpt kept giving me responses from its hallucinations. But then it struck me, if I have to return hypermedia and JavaScript can be hypermedia(if in a script tag), all i needed to do was return JavaScript code to change the current URL. It worked like magic and all it took was a single line of code and I was indeed proud of myself at the time. I have since found a neater way to do this but that's a story for another day.

Now that this article is behind me, I look forward to all that HNG has in store for me this year. So far I have almost missed a deadline and a friend has managed to trap themself in a bet that sees them losing their pc if they fail to complete the internship so this should be fun. If it does sound like fun, I'd recommend you join [here](https://hng.tech/internship) or [here](https://hng.tech/premium)(for premium access) and maybe shoot me a DM @kid_with_adream

Will I chronicle my journey in this cohort? I doubt it. But let's see how it goes. Until next time, dear reader✌🏽
Recent challenge I overcame in Backend and why I joined the HNG Internship
Published: 2024-06-29 20:08:00


I’m Firmin Nganduli. I am a backend developer. I have been coding for 4 years and have faced multiple challenges over the years. In this article, I am going to talk about the recent one and how I overcame it.

## The Challenge: Connecting Django API with React.js
I was building an app with Django as I was used to, but I realized I needed to have a mobile app version, so I had to learn React.js quickly. The hardest part was passing secure data from Django to React.js, especially for the authentication part.
Here are some steps on how I solved my problem:

## Step-by-Step Solution

### Step 1: Identify the type of data the platform shares
I had to learn what type of data a platform such as Django, written in Python, can send to a platform written in JavaScript like React. This is how I learned about JSON and how useful it is for APIs and data sharing across such platforms.

### Step 2: Learn how to share the JSON data across the platform
Although I had found the type of data I could share between the platforms, I still had to find a way to send the data across. This is how I learned about REST API in Django. The REST API in Django allows sending JSON data to other platforms, but the other platforms also have to be able to read the JSON data. For React, I came across Fetch and Axios to make data requests and handle the JSON data properly. It was hard at first, mentally hard.

### Step 3: Secure data
Sending data was done, and when it came to authentication, the data needed to be secured. To solve this new challenge, I came across JWT, which helped me encrypt the data, send the token, and decrypt it on arrival. It is an interesting process but fun to learn.

Embarking on the HNG Internship Journey
I'm excited to bring this problem-solving mindset to the HNG Internship. This internship represents a significant step in my career, offering the opportunity to work with industry experts, tackle real-world challenges, and further hone my skills.

## Why the HNG Internship?
As I mentioned in this article, I have been coding for some years now and I am looking forward to putting my skills to the test and seeing how I will perform in a professional and rigorous environment like The HNG Internship.

In conclusion, solving complex backend problems is a journey of continuous learning and adaptation. I am thrilled to take this journey to the next level.
My first blog post
Published: 2024-06-29 19:54:10

Hi I am Morris a backend developer (node.js) and an intern at https://hng.tech/internship, https://hng.tech/hire and I will be sharing my challenging experience so far.
I started working with node.js couple of months back the major challenge I encountered was working with the database (MongoDB) because as of time I was learning, the course in which I used was outdated and I had lots of deprecation warning from try to add a callback to getting a promise even trying to find() data from the database was a big issue for me. I was able to overcome this by actively researching (watching videos, reading post and blogs, asking questions and so much more) it was quite an experience.
Redux VS Zustand
Tags: webdev, javascript, beginners, react
Published: 2024-06-29 10:06:17

**Zustand VS Redux**


**Zustand**
pro:
1. Simplicy
   Zustand offers an uncomplicated and lightweight library that is       conveniently adaptable for small projects, while Redux provides a       more robust and feature-loaded solution best suited for large       applications

2. BundleSize (304kb)
    include:
      - 1. presist
      - 2. devtols
      - 3. midleware 

![Zustand size in NPM](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rda8qaxpxkgczkxwu55z.png)


const:
1. ecosystem
2. Server Side Issue ( Because Requires function component )
3. Requires function component 


**Redux**
pro:
1. Many Ecosystem
2. State stored in a single object tree (centered)
3. Easy to debug
4. State is predictable
5. You can log everything
6. Granular updates 

const:

1. Complex
    Redux is known for its robust ecosystem and extensive set of         middleware and tooling. However, it requires more boilerplate         code to set up and manage the store, actions, and reducers

2. bundleSize
    -  redux: 176 kB
    -  react-redux: 740 kB    
    -  toal: 916 kB

![Redux Size in NPM](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m65quhip56ohe2yzytr0.png)

![React-redux size in NPM](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgmhp9r44zox0x3potvq.png)
🔥🔥🔥Crypto Price Analysis June-29: ETH, XRP, ADA, DOGE, and DOT
Published: 2024-06-29 19:34:15


📉 Ethereum (ETH)
Ethereum fell 3% this week, struggling to defend the key support at $3,500. With five consecutive weekly candles closing lower, ETH is in a clear downtrend. To reverse this, ETH needs to move above $3,700, potentially challenging $4,000. Failure to hold support could see ETH fall to $3,000.

📉 Ripple (XRP)
XRP mirrored ETH, falling by 2.7% this week. With five weekly red candles, there is bear indecision due to low sell volume. XRP is holding above 46 cents, moving sideways. Bulls need to challenge 54 cents resistance to shift back to an uptrend.

📈 Cardano (ADA)
ADA had a better week, rising by 4.8%. The 37-cent support held, allowing buyers to push forward. If the overall market remains bearish, sellers could return, but as long as the key support holds, ADA's correction may be over. Next target: 46 cents resistance.

🐶 Dogecoin (DOGE)
DOGE struggled last week, dropping below the 13.5-cent support. This week, it stabilized with low volatility. Current support is at 10 cents. If buyers can push, they might reverse the bearish trend.

📈 Polkadot (DOT)
DOT bounced back, rising 10% this week, making it the best performer. The key challenge is the $6.7 resistance. Breaking this would give buyers full control. DOT shows promise for a sustained reversal, watch the key resistance.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qb59nsu2tbcz4odrxjqp.png)
🔥Top Crypto Trader Predict Cardano (ADA) Price Set To Skyrocket to $0.7
Published: 2024-06-29 19:33:58


📈 Cardano (ADA) to Hit $0.7
Crypto trader Captain Faibik highlighted a technical pattern on Cardano’s (ADA) daily chart, suggesting a breakout could rally to $0.7 soon. This aligns with the upcoming Chang Hard Fork, as ADA recovers from recent declines.

📉 Falling Wedge Pattern
According to Faibik, the Falling Wedge on ADA’s chart indicates decreasing selling pressure and potential for an upside breakout. This pattern often signals a trend reversal, with a breakout above the upper trendline confirming bullish momentum. ADA could rise to $0.7, aligning with the positive outlook for the Chang Hard Fork.

🚀 Upcoming Chang Hard Fork
The Chang Hard Fork, announced by the Cardano Foundation on June 27, aims to improve Cardano's governance and decentralization. This involves changes, upgrades through hard forks, and transparent operations to build trust and support innovation in the Cardano community.

📊 Cardano Price Analysis
Recent CoinGlass data shows ADA Futures Open Interest up 4% to $220.38 million. Cardano’s price rose 1.85% to $0.3955, with trading volume increasing by 25% to $328.63 million.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv3o9ifa0wbgcxard67g.png)
💥Bitcoin (BTC) Price Prediction for June 29
Published: 2024-06-29 19:33:40


📉 BTC/USD Update
Bitcoin (BTC) dropped by 0.66% in the last 24 hours, now trading at $61,062.

📊 Hourly Chart
BTC is trying to break local resistance at $61,128. If successful, it may rise to $61,500.

📉 Daily Chart
Despite a slight rise, the daily technical picture remains bearish. Watch the critical $60,000 zone; a breakout could lead to a drop to $58,000.

📅 Weekly Outlook
Focus on the weekly candle closure. If it closes far from $59,112, a bounce back to $62,000 is possible.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/di9d0ah7capay1isps97.png)
🤯Toncoin (TON) Price Prediction for June 29
Published: 2024-06-29 19:33:19


📈 TON/USD Price Update
Toncoin (TON) increased by 0.62% since yesterday, now trading at $7.612.

📊 Hourly Chart Analysis
The rate of TON might have found local resistance at $7.651. If the daily bar closes below this mark, bears might push the price down to the $7.50 zone.

📉 Daily Time Frame
On the daily chart, neither side is dominating. The price is in the middle of a wide channel, indicating low chances of sharp moves soon. Sideways trading between $7.4-$7.8 is likely for the next few days.

📅 Weekly Chart Outlook
The weekly chart shows low volume, confirming a lack of energy from buyers and sellers. Expect consolidation between $7 and $8 for the upcoming week.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kj5sg998u2hqkrj1josu.png)
🔥Bitcoin Price Analysis: Does a 30% Fear & Greed Index Signals Bottom?
Published: 2024-06-29 19:33:00


📊 Bitcoin Price Analysis
After a two-week correction, Bitcoin (BTC) stabilizes above $60,000. The short-bodied candles in the consolidation phase have eased selling pressure, but signs of a reversal are yet to develop. The decline, largely due to Bitcoin miners’ capitulation and BTC ETF outflow, has also dropped, potentially allowing buyers to form a sustainable bottom.

📉 Recent Market Correction
Bitcoin dropped from $72,000 to $60,919, a 15.35% loss. The price faced renewed pressure at $60,000, moving sideways. The daily chart shows alternating green and red candles, indicating no clear direction from buyers or sellers. Bitcoin’s Fear and Greed index is at 30%, showing investor fear.

📈 Buying Opportunity Amid Fear
Fear could prolong the correction, but analysts see it as a buying opportunity. Renowned trader Alicharts noted significant accumulation of Bitcoin, with 20,200 BTC ($1.23 billion) sent to accumulation addresses, signaling confidence from market whales.

🏁 Bull Flag Pattern
The daily chart shows a bull flag pattern. If selling continues, BTC could drop to $54,000, seeking support from the lower trendline. A rebound or breakout will signal a buy opportunity. If the pattern holds, BTC could target $89,150, followed by $135,000.

📉 Miner Capitulation
CryptoQuant’s Julio Moreno highlighted a 7.6% drawdown in Bitcoin miner capitulation, similar to levels seen in December 2022 post-FTX collapse. This often signals a market bottom, as weaker miners exit, reducing sell pressure, historically followed by market recoveries.

📊 Technical Indicators
EMAs: BTC above the 200-day Exponential Moving Average suggests bullish broader market sentiment.
ADX: A high Average Directional Index of 33% indicates the current bearish momentum could soon exhaust, supporting a price reversal.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ejvgm2n3dalu1vsf91go.png)
💥Bitcoin (BTC) New Retail Addresses Hits 352,124, Will Price Breakout?
Published: 2024-06-29 19:32:40


📈 Surge in Bitcoin Retail Addresses
Recently, there has been a significant increase in Bitcoin (BTC) retail addresses, indicating growing positive sentiment.

🚀 New Retail Address Surge Amid Bitcoin Fluctuations
Top market analyst Ali Martinez noted a jump in Bitcoin retail addresses to 352,124, the highest since April. This surge suggests investors are returning to Bitcoin, despite BTC struggling to stay above the $61,000 support zone. Currently trading at $60,881.88, Bitcoin gained 0.5% in 24 hours. Some enthusiasts believe in a bullish reversal, but Bloomberg analyst Mike McGlone cautions about potential normalization and deflation risks.

🔻 Bitcoin Price May Plunge to $50K
QCP Capital highlighted factors that could drop BTC to $50,000. The Mt.Gox payout starting July 1 could increase volatility due to the influx of Bitcoin from the defunct exchange. Additional BTC from U.S. and German government holdings could further impact prices. On-chain analytics firm 10X Research warns of a potential "double top" formation, signaling a possible price drop to $45,000. Amid these bearish trends, QCP Capital sees strong support for Bitcoin at $50,000.

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