teleren/devto huggingface dataset:
Using bindings to connect SwiftUI view with view model based on a protocol with property wrapper requirement
Published: 2023-02-08 09:28:12

Let's try to make a MVVM based SwiftUI feature that has a `Toggle` element.

We'll make our Model, View and ViewModel. To make our ViewModel easily replaceable for DI we'll define it in our View as a protocol.

Let's start, create a new SwiftUI Project and you should have your ContentView as this

```swift
import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("Hello, world!")
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

```

Ok, let's create a new file and call it `ContentViewViewModel` that will look like this

```swift
import Foundation

struct ContentViewViewModel {

}
```

Let's get back to our View and add a reference to our ViewModel 
`private let viewModel = ContentViewViewModel()`

Our view will look like:

```swift
import SwiftUI

struct ContentView: View {

    private let viewModel = ContentViewViewModel()

    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("Hello, world!")
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
```
How to use classes correctly in Qwik
Tags: webdev, qwik, javascript, programming
Published: 2023-02-08 09:16:39

Recently, I encountered a problem with style classes while learning and coding a Qwik application and I believe it would be beneficial to share my knowledge with the community.

I spent quite some time debugging this before finding out where the problem is and that it is not properly documented anywhere in the documentation, even though it is there ("kinda").

## **The problem**
Qwik uses `class` keyword while specifying styles instead of `className`. Problem with this is that you can still use `className`, in development mode. Qwik will give you warning that `className` is deprecated, but you can still use it. In production build, Qwik will only apply styles to those components that are styled with the `class` keyword. It will still leave the `className` there, without any styling being applied to your component.

---

## **The solution**
While writing this blog post I was thinking about what can I give back to community to prevent this from happening to anyone else. Of course I can say: "Just don't use the `className`", but we are all human beings. People can error. And to save you some time during development in Qwik, I've created this small eslint plugin you can use:
https://github.com/vladimirgal1012/eslint-plugin-qwik-additions

---

## **Installation**
1. Ensure your project uses eslint
2. Install `Qwik Additions` eslint plugin: ```bash
npm i eslint-plugin-qwik-additions --save-dev
yarn add -D eslint-plugin-qwik-additions
```
3. Enable the plugin in .eslintrc.js: ```js
{
 //...your config
 plugins: ['qwik-additions' ,...yourPlugins],
 //...your config
}
```
4. Enable the `forbid-class-name` rule (I've used error level, this will ensure that you won't build your application while having any component using `className` keyword): ```js
{
 //...your config
 rules: {
  //...your rules
  'qwik-additions/forbid-class-name': 'error',
 },
 //...your config
}
```

---

## **Conclusion**

In today's blog post I explained a problem with using classes in Qwik and how to prevent it from happening. This was my first blog post ever, thanks for reading everyone :)
module class method fast look
Published: 2023-02-08 09:13:22

```rb
module M 
    def report
        puts "'report' method in module M"
    end
end

class C 
    include M # module M is mixed into class C
end

class D < C  # Class D is subclass class C

end

obj = D.new # obj is an instance of D

obj.report
```
Create a documentation + API with Nuxt.js 3
Tags: webdev, javascript, beginners, programming
Published: 2023-02-08 09:08:15

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

Nuxt.js 3 is a powerful JavaScript framework for building fast and scalable full-stack web applications. It provides a comprehensive set of tools and features for creating rich and interactive user interfaces, connecting to APIs, and managing data flow.

To create a full-stack documentation with Nuxt.js 3, you will need to have a basic understanding of web development technologies, such as HTML, CSS, JavaScript, and Node.js. You will also need to have a development environment set up, including a text editor, a local web server, and a version control system such as Git.

In this introduction, you will learn how to install Nuxt.js 3, create a new project, and start building your first full-stack application. We will cover the basics of the framework, including how to create pages, components, and APIs, as well as how to manage state and data. By the end of this guide, you will have a solid foundation for creating full-stack applications with Nuxt.js 3.

A good documentation should be clear, concise, and easy to understand. It should provide all the information necessary to use the product or service in question effectively.

To write a good documentation, start by identifying the target audience and their needs. Then, organize the information in a logical and coherent manner, using headings and subheadings to break up large blocks of text. Use simple language and avoid technical jargon as much as possible.

It's also important to include examples and visual aids, such as screenshots, diagrams, or videos, to help illustrate complex concepts. Make sure the documentation is easy to navigate and search, and provide a table of contents or index for quick reference.

Finally, regularly update the documentation to reflect any changes or improvements to the product or service. This will help ensure that the information remains accurate and relevant.

Guillaume Duhan
Pulse Report - Key Insights from the 23rd Edition of the Developer Nation Survey
Published: 2023-02-08 09:02:28

42.3% of developers learn as a profession and hobby. The professional and hobbyist nature of involvement shows technology passion and career prospects at 42.3% in the top spot.


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

Read the report [here](https://www.developernation.net/developer-reports/dn23)
The Ardent Need For PPC Management Services
Tags: ppc
Published: 2023-02-08 09:00:49

PPC or Pay-per-click management is the process to enhance ROI in which every click on an ad can bring money. PPC is one of the best strategies used by website creators to get the maximum Return on investment. It is always a good option to go for the perfect PPC strategist so you can never go wrong. There are numerous [PPC services in Delhi](https://www.digitalberge.com/ppc-services-management-company-india.php) that can help you in the process. But before that, you need to understand the need for PPC management service in the first place. 

## The Importance Of PPC Management

If you know how to manage your campaigns properly, then the brand can make and alter decisions. This will, in turn, remove PPC performance and there are a lot of elements involved in the same. 

The elements are as follows:

1. PPC testing
2. Competitive analysis
3. Creation of a landing page
4. Channel targeting, and 
5. Keyword analysis

## Cost Of PPC Management Services

The best [SEO services in Noida](https://www.digitalberge.com/best-seo-company-in-noida.php) are not going to be cheap, especially if you are looking for expert professionals. Before you dive in, know that most companies spend something between $300 to $100 million per month on pay-per-click campaigns. There are two different costing models- namely, PPC campaign in-house, and hiring a company. 

## In-house PPC

If you are willing to do major costs, then in-house PPC is the best. You have to provide salaries to all the in-house staff and the maintenance of the marketing team. There will be some additional compensation for you to pay like benefits and office setup. 

Besides, you also need to be able to provide your time to them so that you can instruct the employees about your specific requirements. 

## PPC Management Company

If you are hiring a company, you have to pay a fixed rate and choose among the type of packages available, can expect an expense ranging from $350 to $5000 per month in addition to your ads. Start looking for the best PPC services in Delhi right now. 

## Why Should You Hire Someone?

Remember that hiring a generic ad manager is not going to be as good as hiring a PPC management agency. Here are some additional reasons. 

**Specialization In PPC:** If you are not familiar with the idea of PPC, then it can be a challenge for you to run the company. When you are partnering with a good agency, you will see how successful campaigns are created. 

**Monitoring the campaign:** It can be quite difficult to run a successful campaign and monitor them from time to time. So it is better to outsource the work and stay on top of this strategy. 

**Saving time:** PPC campaign management will help you to save a lot of time so that you can improve the results and you do not need to check things for yourself. 

Find the PPC services in Delhi that caters to your requirement and knows your target audience. Invest well and you can get the returns pretty soon.
nyc school closures 2023
Published: 2023-02-08 08:20:23

[https://multischolar.com/school-calendar-nyc/](https://multischolar.com/school-calendar-nyc/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)
https://plaza.rakuten.co.jp/chenlee/diary/202302080001/
https://www.provenexpert.com/nyc-school-closures/
https://www.producthunt.com/@nycschoolclosu1
https://www.divephotoguide.com/user/nycschoolclosures/
https://vocal.media/authors/nycschoolclosures
https://www.lifeofpix.com/photographers/nycschoolclosures/
https://seedandspark.com/user/nycschoolclosures
https://rosalind.info/users/nycschoolclosures/
http://phillipsservices.net/UserProfile/tabid/43/userId/198031/Default.aspx
https://app.roll20.net/users/11606461/nycschoolclosures
https://speakerdeck.com/nycschoolclosures
https://social.msdn.microsoft.com/Profile/nycschoolclosures
https://camp-fire.jp/profile/nycschoolclosures
https://plazapublica.cdmx.gob.mx/profiles/nycschoolclosures/activity
https://www.metal-archives.com/users/nycschoolclosures
https://storium.com/user/nycschoolclosures
https://trabajo.merca20.com/author/nycschoolclosures/
https://www.intensedebate.com/people/nycschoolclosur
https://www.mifare.net/support/forum/users/nycschoolclosures/
https://pinshape.com/users/2570187-nycschoolcl
http://foxsheets.com/UserProfile/tabid/57/userId/120283/Default.aspx
https://www.kompasiana.com/nycschoolclosures
https://www.credly.com/users/nyc-school-closures/badges
https://www.myminifactory.com/users/nycschoolclosures
https://www.sqlservercentral.com/forums/user/nycschoolclosures
https://www.longisland.com/profile/nycschoolclosures
https://guides.co/a/nyc-school-closure/
https://myanimelist.net/profile/nycschoolclosure
https://www.iheart.com/podcast/269-nyc-school-closures-108512261/
AWS EC2: An Introduction
Published: 2023-02-08 08:08:51

**Amazon Web Services (AWS)** is a cloud computing platform that offers a wide range of services, including computing, storage, and databases. One of the most popular services offered by AWS is Amazon Elastic Compute Cloud (EC2), which provides scalable computing capacity in the cloud.

AWS EC2 offers a variety of benefits over traditional on-premise computing, including increased scalability and cost savings. In this article, we will discuss what AWS EC2 is, how it works, and provide live examples of its usage.

**What is AWS EC2?**

AWS EC2 is a web service that provides scalable computing capacity in the cloud. EC2 allows you to run virtual machines, called instances, on a scalable infrastructure, making it easy to deploy and manage applications. EC2 instances can be easily launched from a pre-configured Amazon Machine Image (AMI) and can be customized to meet specific requirements.

**How Does AWS EC2 Work?**

AWS EC2 instances run on top of Amazon's infrastructure, which is designed to be highly available and scalable. When you launch an EC2 instance, you are essentially renting a virtual server in the cloud, which can be used to run applications and store data.

EC2 instances can be easily scaled up or down based on your computing needs, and you only pay for the resources you use. Additionally, EC2 instances can be launched in different regions and availability zones, providing a high level of redundancy and availability for your applications.

**Live Examples of AWS EC2**

1. Deploying a Web Application: One of the most common uses of EC2 is to deploy a web application. For example, you can launch an EC2 instance with a pre-configured web server and deploy your application to it. You can then use Amazon's load balancing service to distribute incoming traffic across multiple instances, providing a high level of availability and scalability for your web application.

2. Hosting a Database: EC2 can also be used to host a database, such as MySQL or PostgreSQL. For example, you can launch an EC2 instance with a pre-configured database server and use Amazon's Relational Database Service (RDS).
Codecrumb #1
Tags: typescript, webdev, javascript, programming
Published: 2023-02-08 08:02:32

In the never ending learning journey of programming, it's easy to forget a lot of the details that you learn. Especially, if said details are not used in your day to day job.

I found that the best way to never forget is to have a reference of all the fun little tips that you find, to explain it to your future self in the best way possible and let the all-great power of the internet be your memory.

**It's you to you**


![Spider man pointing to Spiderman ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shofviygmq627iomytkb.jpg)

That way, if you want to remember something, you don't go searching for it in all the vast world wide web, you can find a simple explanation for it, narrated by you and in the best way you can understand it.


Inspired by this, I decided to create this series of small little codecrumbs. Think of it as digestible pieces of knowledge concerning code, software engineering and whatever else I might find useful for me and hopefully you, my dear reader.
Join the Movement: Collaborate with Us to Launch Emailmework.com
Tags: webdev, opensource, career, github
Published: 2023-02-08 08:00:57

Are you tired of the inefficiencies of traditional job boards and the frustration of irrelevant job postings? I am and that's why I am launching Emailmework.com, a platform that revolutionizes the job search process by connecting companies and customers in the most efficient and fair way.

At Emailmework.com, my aim is to provide in-depth company profiles and a sophisticated algorithm that rates both companies and customers based on factors such as customer behavior, frequency of reviews, and response time. This ensures a seamless and effective match between the right company and customer.

I am committed to fostering a respectful and collaborative community between companies and customers. Say goodbye to irrelevant job postings and hello to a job search process that actually works.

I am a decent web designer with a background in programming development. However, I am currently a one-man team and am in search of like-minded individuals who are passionate about innovation and revolutionizing the job search process. If you have programming skills or expertise in a particular industry and a drive to make a difference, I would love for you to join me on this exciting journey.

To learn more about this opportunity, email me at bcw1995@gmail.com. Let's change the job search game together.

Here is the repo with more information (I have only just now started this repo):
https://github.com/byronwade/emailmework.com

As the CEO of Wade's Inc, which owns Wade's Plumbing & Septic and Clog Monsters Septic Pumping, I have a passion for innovation and a desire to revolutionize the job search process. That's why I have taken the time to create Emailmework.com, a cutting-edge platform that connects companies and customers in the most efficient and fair way.

I have a background in programming and web design, having attended Cherokee High School in Georgia and currently pursuing a degree in Computer Science and Civil Engineering at Cabrillo College in Santa Cruz. My expertise in plumbing and sanitation systems, combined with my passion for programming, makes me the ideal person to bring my vision for Emailmework.com to life.

I am eager to collaborate with others who share my passion for making a difference in the job matching process. If you're a professional with expertise in a particular industry or have programming skills and a drive to innovate, I would love to hear from you. Let's work together to change the job search game and make finding the right job or customer easier than ever.
How You Can Consider Exiting From the Start 🏁
Tags: startup, productivity, books
Published: 2023-02-08 07:56:24

Starting a company can be exciting, but it's easy to get caught up in the day-to-day and forget about the future. You might think "It's too early to worry about exiting." But, what if I told you that thinking about exit strategy from the beginning can actually benefit your business even before you exit?

Many first-time founders fall into the trap of building a business that revolves solely around their decisions and actions. They believe this is what it means to be a leader, but it's a dangerous misconception. When a product is closely tied to its founder, it becomes less appealing to potential buyers who want to lead the company themselves.

The key to creating an "exitable" company is to build a business that can thrive without your constant intervention. This not only makes your company more attractive to buyers, but it also sets you up for success in the long run.

Built to Sell is a business book that offers guidance on how to build a company that is attractive to potential buyers. It considers the case I've mentioned before and more. The main points made in the book are:

1. Building a business that is "built to sell" means creating a company that is attractive to potential buyers and can be sold for a good price.
2. To build a company that is "built to sell," you need to focus on creating a repeatable and scalable business model, rather than relying on the personal efforts of the owner.
3. One way to create a repeatable and scalable business model is to develop proprietary systems, processes, and intellectual property that can be easily replicated and used by others.
4. Another way to create a "built to sell" business is to diversify your customer base, so that you are not reliant on any one customer or group of customers for a significant portion of your revenue.
5. To increase the value of your company, you should also focus on building a strong management team that can run the business effectively without you.
6. To maximize the value of your company when you sell it, you should start planning for the sale early and consider bringing in outside advisors to help you with the process.

These are the main ideas of the book. I believe the ideas are powerful and useful. 

In the book, there's a founder who didn't consider this aspect of their business while building it. Hence, he consults a friend who helps him step by step to make the business independent of the founder. The book is written as if it's fiction and it helps you understand the concepts better. I highly recommend you read it.

What is your favorite book related to exiting? Let us know in the comments!
Understanding Docker: part 41 – DockerFile Tips & Multi stages build
Tags: docker, devops, beginners, cloud
Published: 2023-02-08 07:45:03

---
title: Understanding Docker: part 41 – DockerFile Tips & Multi stages build
published: true
description: Serie of sketchnotes about Docker. Explaining in a visual way Docker principles.
tags: Docker, DevOps, beginners, Cloud
series: Understanding Docker in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wpzrtp9pcse3whnbxjmo.jpg
---

Understanding Docker can be difficult or time-consuming. In order to spread knowledge about Cloud technologies I started to create sketchnotes about Docker. I think it could be a good way, more visual, to explain Docker (and other technologies like Kubernetes and Istio).

We continue the series of Docker sketchnotes with a focus about DockerFile Tips including Multi stages build.

![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wpzrtp9pcse3whnbxjmo.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3wvc8mc0l354met8hytu.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qc3raz8ojllm4fjub9pq.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/162skrf9pbhhtel850ug.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1jgwzqw57z9lozi1pmee.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nxjwed1snlxhf5by65w.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8nd4h3k0l8fokzs4u3vh.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ll8w1jnncpwuhj64lkt.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/av91176t9jffa0ymotbd.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qc6vcuukdrvxo6v5pns2.jpg)
![DockerFile Tips](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0805pyj8v0x5q8e5vibx.jpg)

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I published the book in a paperbook version on Amazon: [Understanding Docker in a visual way](https://www.amazon.fr/Understanding-Docker-visual-way-sketchnotes/dp/B0BT6ZXR1W/ref=sr_1_1) and also in a PDF/ebook version on [GumRoad](https://gumroad.com/aurelievache#YTLzM).

![Understanding Docker in a visual way](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9xs45orcsh2og8rnbi2b.jpg)

If Kubernetes interest you too, the book [Understanding Kubernetes in a visual way](https://www.amazon.fr/dp/B0BB619188/ref=cm_cr_arp_d_product_top?ie=UTF8) is available also.