teleren/devto huggingface dataset:
Add typing to your Javascript code (without Typescript, kinda) ✍🏼
Tags: javascript, webdev, jsdoc, typing
Published: 2024-02-20 23:59:21

Hey there.

I recently started working on a full Javascript project. And after years of working with Typescript, it was strange to work in an environment where no one is telling me "Hey, that property is not there, man".

So I start researching about the better way to do this, without implementing Typescript, because migrating to Typescript is a big job that most of the company doesn't find worthwhile in older projects.

The best way to do this, of course, is with [JSDoc](https://jsdoc.app/). But something I always found awkward about jsdoc is defining the object types in the same file.
So, after a lot of reading, I found a way to combine JSDoc with [declaration type](https://www.typescriptlang.org/docs/handbook/2/type-declarations.html) files from Typescript. Let me give you an example:

This is your type declaration file, something like `types.d.ts`

```typescript
export interface Product {
    sku: string
    name: string
    available: boolean
    price: double
}
```

This is your javascript file, maybe your `index.js`

```javascript
function main() {
    /** @type {import('./types.d.ts').Product} */
    const product = {
        sku: '123',
        name: 'My product',
        available: true,
        price: 12.00
    }
}
```

So here, if you put a wrong value in the object `product`, you editor is going to let you know:

![Image from vscode showing an error because of the type](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n91micsst3q8t3m0nde2.png)

That's all, I hope it can be helpful for you 🥳
Info
Published: 2024-02-20 23:26:20

The [USNWB](https://usnwb.com/category/info/) website is a valuable resource for anyone seeking accurate and reliable news and information. As a professional organization, USNWB is committed to providing content that is:


Trustworthy: USNWB's content is based on factual reporting and adheres to strict journalistic standards. You can be confident that the information you find on the site is accurate and unbiased.
Up-to-date: USNWB keeps you informed about the latest news and developments in a variety of fields. The site is updated regularly, so you can be sure you're getting the most recent information.

Comprehensive: USNWB covers a wide range of topics, from current events to business news to in-depth analysis. You're sure to find the information you're looking for on the USNWB website.

Engaging: USNWB's content is written in a clear and concise style that is easy to understand. The site also features multimedia content, such as videos and infographics, to keep you engaged.
Zanaathan.com — Usta bulma ve iş ilanı platformu
Tags: website, networking
Published: 2024-02-20 23:11:45

Size Armut.com’dan ve Upwork.com’dan ilham alan ve size ücretsiz bir alternatif sunan [Zanaathan.com](https://zanaathan.com)’u sunuyorum.

Hem ustalar, hem de iş verenler için tasarlanmış bu web sitesine ilan verebilir, ustaların kendi becerilerine uygun ilanları kolaylıkla bulmalarını sağlayabilirsiniz. Üstelik ilan vermek için hesap oluşturmanız gerekmez bile!

Dilerseniz iletişim bilgilerinizi ustalarla paylaşabilir veya direkt olarak bu web sitesi üzerinden mesajlaşabilirsiniz.

Kullanımı basit olan ve halen taze olan bu platformu kullanmaktan çekinmeyin.
Introduction to Astro + WordPress
Tags: astro, wordpress, jamstack, tutorial
Published: 2024-02-20 22:29:35


## Introduction

Embarking on the development of a new Astro-based website, we've opted for WordPress, the world's leading CMS, to serve as our headless CMS. This decision stems from a detailed evaluation of our company's website needs and a desire to streamline our digital presence. Despite WordPress's ubiquity and its perceived complexity due to plugins and an extensive user base, its market dominance is undeniable. Our choice was driven by practical business considerations, recognizing WordPress's familiarity to our marketing team and its adaptability for future team members.

## The Rationale Behind Choosing WordPress

Our selection of WordPress was a strategic business move. Its unparalleled market share speaks volumes about its efficacy and reliability. This choice, devoid of personal bias, is grounded in WordPress's extensive adoption and ease of use for our marketing team. This decision marks a step towards refining our current digital setup and leveraging the best of WordPress's capabilities.

## Preliminary Steps and Considerations

In our quest to revamp the website, it was crucial to safeguard it against unintended alterations that could veer off our brand guidelines. To achieve this, we employed Advanced Custom Fields (ACF) to craft custom blocks, providing a controlled environment for the marketing team. This setup allows for content editing within predefined boundaries, ensuring both flexibility and adherence to our design and structural standards.

## Technology Stack

Our project harnesses a robust suite of technologies, including:

- [Astro](https://astro.build) for the front-end framework, enabling a modern and efficient website interface.
- [WordPress](https://wordpress.org) as the backend headless CMS, offering a versatile content management foundation.
- [Advanced Custom Fields](https://www.advancedcustomfields.com) for creating custom content blocks, ensuring content consistency and design integrity.
- [Zod](https://zod.dev) for robust type validation, enhancing code reliability.
- [Axios](https://axios-http.com) for streamlined API interactions, facilitating seamless data fetching.
- [TailwindCSS](https://tailwindcss.com) for utility-first styling, promoting design flexibility and ease of customization.

## Learning Outcomes

By following this guide, you'll gain insights into:

- Configuring WordPress as a headless CMS for enhanced content management and delivery.
- Integrating Astro with WordPress to create a dynamic, content-driven website.
- Managing site navigation within Astro, ensuring a seamless user experience.
- Implementing Gutenberg Blocks within Astro, allowing for a rich content presentation.

This journey through setting up a WordPress-backed Astro website not only refines our digital footprint but also empowers our marketing team with a familiar yet powerful CMS, ensuring our online presence is both robust and easily manageable.
Why Choose SEO Services in Mauritius?
Tags: webdev, seo, beginners
Published: 2024-02-20 22:14:25

Welcome to Active Services Digital – best SEO company for Small Businesses, your trusted SEO Agency in Mauritius for driving digital growth and maximizing online visibility. In today’s competitive online landscape, having a strong SEO strategy is paramount to stand out from the crowd and attract your target audience. With our comprehensive suite of SEO services tailored for small businesses, we’re here to help you achieve your online goals and propel your business to new heights.

Read More: [](https://activeservices.online/seo-agency-mauritius/)
The Day you Became a Better React Dev: What is React?
Tags: react, frontend, webdev, javascript
Published: 2024-02-20 21:41:20

React is a JavaScript library for building user interfaces out of individual components, and it is designed to let you seamlessly combine components.

For instance, a navigation bar of a website is a standalone component, and then the hero’s section of a web page could also be a standalone component. These two components can be combined to make a web-page.

React is used to develop single page applications, and react is majorly concerned with the user interface and rendering of components to the virtual DOM. The advantage of react is that it only renders once, and only re-renders only those parts of the page that need be changed. This makes the website fast, user-friendly, and easily maintainable.

If we go history, React was initially released in May of 2013 and was authored by a guy called; Jordan Walke. Since then React has gained a lot of popularity and has a big community that supports and maintains it in partnership with META.

Written in Javascript, react was developed to be used on facebook social media platform and later adopted by instagram too.
CONSULT WIZARD WEB RECOVERY STOLEN BITCOIN RECOVERY EXPERT.
Published: 2024-02-20 21:29:44

I thought My digital assets were gone for good, but WIZARD WEB RECOVERY managed to recover them, I'm grateful for their expertise and professionalism.” Such success stories show the effectiveness of WIZARD WEB RECOVERY(@)PROGRAMMER (.) NET services and inspire confidence in potential clients. Mine isn’t so different, just that I have been a long-term investor and believer of this fake investment company that almost ruined my life, I invested heavily in their platform and it turned out to be a scam. I’m still in shock on how the WIZARD WEB RECOVERY made it possible and recovered every penny. investors’ worst nightmare was the market crashing, but mine was way worse than the market crashing. The situation I found myself in left me paralyzed while my whole life crashed before my eyes. WIZARD WEB RECOVERY  team of experts with vast experience in the crypto industry, providing top-notch recovery services. The company also provides a free consultation to clients, allowing them to discuss their situation and determine if pursuing recovery is worth it. Customer reviews of  WIZARD WEB RECOVERY are overwhelmingly positive, with clients praising the company's professionalism and efficiency.
A Tale of Frameworks: Our Quirky Quest from Next.js to Redwood.js
Tags: javascript, opensource
Published: 2024-02-20 21:05:37

_Originally published at [shepherdjs.dev](https://shepherdjs.dev/blog/tale-of-frameworks/)_

## And so it begins

In the realm of web development, choosing the right framework can feel like finding a needle in a digital haystack. Our latest project, an application for managing user journeys and getting analytics for them, started with a dive into [Next.js](https://nextjs.org/) version 14 ("blessed" with React Server Components), paired with a separate API using [ElysiaJS](https://elysiajs.com/). However, as the project continued and the complexity grew, so did our needs.

## Why We Started with Next.js and ElysiaJS
Next.js, with its robust features and scalability, seemed like a natural choice. We've used it quite successfully plenty in the past and felt like an old friend to help us in our own project now, rather than enterprise client projects. React can be the wild west in some ways when it comes to compiling together all the dependencies to make it a full app framework suite, Next.js makes many of those choices for you and provides nice defaults. 

Coupled with ElysiaJS for our API needs (which to be fair is quite bleeding edge and built on the newly released [Bun](https://bun.sh/) runtime), we embarked on this journey with high hopes. Next.js offered us a modern framework with great performance, while ElysiaJS promised a flexible and fast API layer. Bun is just fast, no question.

## The Twist in the Tale: Shifting to RedwoodJS
However, as we navigated through development, we encountered a few hitches. The separate management of front-end and API layers started to feel like juggling apples and oranges – doable, but unnecessarily complex. Bleeding edge tech isn't always the most documented and while open source folks are quite helpful, it's time consuming to ask questions in multiple projects and/or Discord servers. Enter RedwoodJS.

RedwoodJS offered us an integrated solution, blending the front-end and API seamlessly. It was like finding a tool that could juggle for us. The allure of its full-stack capabilities, coupled with a simpler, more cohesive development experience, was too good to pass up.

## Building the App with RedwoodJS
With RedwoodJS, our development process became smoother, akin to a well-oiled machine. Its opinionated structure provided a clear path forward, reducing the overhead of decision-making. The integrated GraphQL API meant that our data management became more streamlined and all the work happened in one monorepo.

## Conclusion
In the end, our journey led us to RedwoodJS, a framework that aligned perfectly with our vision for the journey management application. It reminded us that in the world of web development, flexibility and adaptability are just as important as the features a framework offers. There's something to be said for relying on web technologies that have worked well for years on end. Join us as we continue to explore and share our experiences in this ever-evolving landscape.
Learning React
Published: 2024-02-20 20:52:58

I've been learning about React and other JSX basics for the last few days, and I even got to create a simple tic-tac-toe game that allows you to go back to whichever move you like. 

Here's what I've learned so far: 

- use className where you would use class in HTML
- use JS features like for loops and array .map() functions to render lists that have several components
- to have two child components communicate with each other, declare the shared state in their parent component
- you can only have one export default function per file
How to accelerate the learning base as a developer
Published: 2024-02-20 20:46:01

👋 Hey Dev Community!

🚀 I'm thrilled to be making my first post here! My name is Zakaria, and it's been an incredible 13 months since I embarked on my journey as a front-end developer. Along the way, I've encountered my fair share of challenges, frustrations, and moments of self-doubt. There were times when I questioned if I was truly keeping pace with the rapidly evolving industry, despite dedicating a solid 3 to 6 hours each day to learning.

⏰ So, here's my burning question for all of you seasoned developers out there: How do you accelerate your learning and gain valuable experience quickly to stay ahead in this ever-changing field?
PG In Ahmedabad
Tags: pginahmedabad, boyspginahmedabad, girlspginahmedabad, pginnavrangpura
Published: 2024-02-20 19:53:22

"Krishna Paying Guest" offers premium **[PG in Ahmedabad](https://payingguestinahmedabad.com/pg-in-ahmedabad.html)**, catering to the needs of students and working professionals alike. Our establishment provides a comfortable and secure environment, ensuring a hassle-free living experience for our residents.

Located in convenient and accessible areas of Ahmedabad, our PG accommodations are designed to meet the diverse requirements of our tenants. Whether you're a student pursuing your academic goals or a professional starting your career journey, we offer a range of facilities and amenities to make your stay pleasant and enjoyable.

At Krishna Paying Guest, we prioritize cleanliness, safety, and convenience. Our rooms are well-furnished and maintained to provide a cozy and welcoming atmosphere. Each room is equipped with essential amenities such as comfortable beds, study desks, storage spaces, and high-speed internet connectivity.

Safety and security are paramount at our premises. We have implemented robust security measures, including CCTV surveillance and secure access controls, to ensure the well-being of our residents. Additionally, our staff members are trained to handle any emergencies promptly and efficiently.

In addition to comfortable living spaces, Krishna Paying Guest offers various facilities to enhance the overall experience of our residents. These may include common areas for socializing and recreation, such as lounge areas, TV rooms, and outdoor spaces. We understand the importance of a balanced lifestyle, and our facilities are designed to promote relaxation and camaraderie among residents.

Furthermore, we provide essential services to cater to the daily needs of our tenants. This may include regular housekeeping, laundry facilities, and maintenance services. Our goal is to create a supportive and nurturing environment where residents can focus on their studies or work without worrying about mundane tasks.

Krishna Paying Guest is committed to providing value for money to our residents. We offer competitive rental rates without compromising on the quality of our accommodations and services. Moreover, we strive to maintain transparent and fair policies, ensuring a positive and respectful living environment for everyone.

Our customer service team is always available to assist residents with any queries or concerns they may have. Whether it's arranging for repairs, addressing noise complaints, or providing guidance on local amenities, we are dedicated to ensuring the satisfaction and well-being of our tenants.

In summary, Krishna Paying Guest is your ideal choice for PG accommodations in Ahmedabad. With our focus on comfort, safety, and convenience, we aim to provide a home away from home for students and professionals seeking affordable and quality living spaces in the city. Experience the difference with Krishna Paying Guest and make your stay in Ahmedabad truly memorable.
Paying Guest Accommodation in Ahmedabad
Tags: pginahmedabad, boyspginahmedabad, girlspginahmedabad, pginnavrangpura
Published: 2024-02-20 19:50:18

"**[Paying Guest in Ahmedabad](https://payingguestinahmedabad.com/)**" offers comfortable and convenient living spaces for students, professionals, and individuals seeking temporary housing in the city. Located in various neighborhoods across Ahmedabad, our accommodations provide a range of amenities to suit different preferences and budgets.

Each paying guest accommodation is furnished with essential amenities such as comfortable beds, study desks, storage space, and high-speed internet connectivity. Additionally, residents have access to shared facilities like common areas for socializing, kitchens for meal preparation, and laundry facilities.

Safety and security are paramount, and our accommodations are equipped with measures such as CCTV surveillance and secure access controls. Our staff members are trained to address any concerns promptly, ensuring a secure and peaceful living environment for all residents.

Whether you're a student looking for a quiet place to study, a professional in need of temporary housing, or an individual new to the city, our paying guest accommodations provide a convenient and hassle-free living solution in Ahmedabad.
Culturally Rich Stays: Authentic Paying Guest Accommodation in Ahmedabad
Tags: pginahmedabad, boyspginahmedabad, girlspginahmedabad, pginnavrangpura
Published: 2024-02-20 19:47:09

"Krishna Paying Guest: Culturally Rich Stays" offers authentic paying guest accommodation in Ahmedabad, providing residents with an opportunity to immerse themselves in the rich cultural heritage of the city. Situated in culturally vibrant neighborhoods, our establishment offers a unique living experience that celebrates the traditions, arts, and cuisine of Ahmedabad.

Each room at **[Krishna Paying Guest](https://payingguestinahmedabad.com/)** is designed to reflect the cultural essence of Ahmedabad. From traditional decor elements to local artwork and textiles, our accommodations offer residents a glimpse into the city's rich cultural tapestry. We strive to create a warm and inviting atmosphere where residents can feel a deep connection to the city's heritage.

In addition to culturally inspired living spaces, Krishna Paying Guest offers various experiences and activities to further enrich the cultural immersion of our residents. These may include guided tours to historical sites and landmarks, cultural workshops and events, and opportunities to sample authentic local cuisine. We believe in providing residents with authentic cultural experiences that foster a deeper appreciation for Ahmedabad's heritage.

Safety and security are paramount at Krishna Paying Guest. We have implemented comprehensive security measures, including CCTV surveillance and secure access controls, to ensure the safety of our residents. Additionally, our staff members are trained to handle any emergencies promptly and efficiently, providing residents with peace of mind.

Our services are designed to enhance the cultural immersion of our residents. From arranging cultural excursions to providing information about local festivals and traditions, we strive to make residents feel truly at home in Ahmedabad. Our attentive staff members are always available to assist with any queries or concerns, ensuring a memorable and enriching living experience.

Krishna Paying Guest is committed to providing affordable accommodations without compromising on quality. We offer competitive rental rates, transparent pricing, and flexible payment options to suit the budgets of our residents. Our aim is to deliver value for money and exceed the expectations of our culturally curious residents.

Customer satisfaction is our top priority. Our customer service team is responsive and approachable, ready to address any issues or inquiries that may arise. We value open communication and actively seek feedback from our residents to continually improve our services.

In conclusion, Krishna Paying Guest: Culturally Rich Stays is the perfect choice for those seeking authentic paying guest accommodation in Ahmedabad. With our focus on cultural immersion, comfort, safety, and excellent service, we provide residents with a truly unique and memorable living experience. Experience the richness of Ahmedabad's culture with Krishna Paying Guest and make your stay in the city truly unforgettable.