teleren/devto huggingface dataset:
Something Different
Published: 2022-03-31 06:47:55

slight change
this should fail
Short blog.

```python
def python():
  pass

```

**This is bold text**

_This is italic text_

`This is inline code`

[This is a link](www.google.com)

# Heading 1

##### Heading 5

- Bullet points

1. Number points

![Alternate text ](/media/useless-images/all-markdown-types.png "Image title")
![Alternate text YOYOYO](https://raw.githubusercontent.com/libgit2/libgit2sharp/master/square-logo.png "Image title1")

code folding

<details>
<summary>I could use some help...</summary>
<p>

```python
def helloworld():
  print("hello")
```

</p>
</details>
Week 2 - Colors App
Tags: react, function, list, key
Published: 2022-03-31 06:44:22

---
title: Week 2 - Colors App
published: true
description: creating small UI component to build large scale projects
tags: reactjs, function, list, key
cover_image: https://i.imgur.com/ED1LHc8.png
key: 1
series: React Curve
---

## Welcome to Week 2 of React Curve

Hello developer!, glad to see you again.

This is a react-curve, open source project where I can share and start creating small UI components in the way I understood the concepts to build large scale projects .

----------------

## Colors App

![colors app](https://i.imgur.com/POiHDEK.gif)
This week we created a colors app that displays the list of the colors in react.

To create a color component; We have to :

* Create a state that holds the colors
* Colors is an array of objects
* Each color has an id , name, and hex properties
* We loop through the colors array using the <map()> function
* We return an <li> element for each item
* We should provide a key for each list item
* We assign the resulting array of elements to colorItems
* In JSX, we include the entire colorItems array inside an <div> element, and render it to the DOM

## Code
```react
import React from 'react';

const DisplayColors = () => {
    const colors = [
        {id: 1, name: 'brown', hex: '#A52A2A'},
        {id: 2, name: 'crimson', hex: '#DC143C'},
        {id: 3, name: 'red', hex: '#FF0000'},
    ]

    const colorItems = colors.map(color => 
        <li key={color.id} id="currColor">
            {color.id}  | {color.name} | {color.hex}
        </li>)

    return (
        <div className="displayColors">
            <h2>Display Colors</h2>
            <div>
                {colorItems}
            </div>
      </div>
    );
}

export default DisplayColors;

```
### Conclusion
Thank you for reading and any contribution is more than welcome in the threads below!

[Live Preview](https://this-react-curve.vercel.app/colors)
[Source Code](https://github.com/this-mkhy/react-curve)
Kusk Gateway beta1 - OpenAPI-first for Kubernetes
Tags: kuberne, openapi, opensource, devops
Published: 2022-03-31 06:40:30

Folks - we're happy announce beta-1 of our open-source Ingress controller Kusk Gateway - which makes your OpenAPI/Swagger definition the source-of-truth for both functional and operational traits of your API.

If you're using OpenAPI to build REST APIs for Kubernetes Kusk is for you; operational configuration is provided by use of a dedicated x-kusk extension in your OpenAPI/Swagger definition, for example:

```
x-kusk:
  cors:
    origins:
      - '*'
    methods:
      - POST
      - PATCH
      - DELETE
      - PUT
      - GET
      - OPTIONS
    headers:
      - Content-Type
    credentials: true
    max_age: 86200
  qos:
    retries: 10
    request_timeout: 60 
    idle_timeout: 30
```

will ensure timeouts and CORS settings for your API when you deploy it.

Or if you're keen on mocking all (or parts) of your API you can add the following:

```
x-kusk:
  mocking:
    enabled: true
```

which will result in Kusk Gateway returning mock-responses based on your OpenAPI definition. Read more about mocking: https://kubeshop.github.io/kusk-gateway/extension/#mocking

Since all operational configuration is in your OpenAPI definition you can easily automate the deployment of your APIs as part of a CI/CD/GitOps workflow - for example using ArgoCD or GitHub Actions.

Check out the announcement blog-post at https://kubeshop.io/blog/beta-1-release-of-kusk-gateway-openapi-driven-kubernetes-ingress-controller and head over to GitHub to get the release and read the docs - https://github.com/kubeshop/kusk-gateway.

Happy APIing!
What do you think about my portfolio website?
Tags: discuss, showdev, design, webdev
Published: 2022-03-31 06:37:56

[ismaelramos.dev](https://www.ismaelramos.dev/)
I released my website last week. Any suggestions? Do you like the design?

(UPDATE)
- We all agree the cookie consent is bothering a lot. I decided to remove analytics tools...
- The button to toggle the theme vision has been updated
- The timeline is now inverted
Let's talk about software testing
Tags: testing
Published: 2022-03-31 06:02:29

Software testing seems to be one of the most opinionated things in the software ecosystem.
Some people swear by it and only do TDD (test-driven development), while others wing it and see what happens.

I'm not here to tell you which one to pick, as it's personal and dependent on your time/project/and many more factors.

But let's take a look at what testing can do for you.

## Types of testing we'll look at

Before diving into this in-depth, let's look at which types of testing we'll be looking at.

- Manual vs. automated
- Unit testing
- Integration tests
- Functional tests
- End to End

Most of us will have at least done manual testing, which often means you create a system/feature and manually test different options to see if it works.

This is common regardless of the other tests you might have and is often needed to verify the initial product.

## Automated testing

But we can enhance these manual tests by introducing automated tests. The significant part about these is that they are created once run forever.
It means it initially takes us some setup time, but we can keep running them and see no regression or bugs were introduced.

In the automated section, we have many different approaches to testing.

I won't be going over all of them, so here are some well-used ones.

**Unit testing**
Unit tests are the simplest form of automated tests. They are super low level and test a "unit", which can be one function, one component, or even one interaction.
The idea is to have them as small and quick as possible so we can test many small tests relatively fast and cheap.

**Integration tests**
These are used to test integrations with external factors, such as your database, user system, or external APIs.
They often require mocks of these external systems and are considered heavier to run.

**Functional tests**
These are kind of enhancements to the integration tests, where integrations only care about data coming from a connection.
Functional tests take it one step further and want the data to display correctly.

So an example could be:

- API returns users (Integration test)
- API returns users and renders them in a table (Functional test)

**End to end tests**
This kind of testing is there to validate user flows. We want to verify a user flows through a program correctly.
This can even include loading states, disabling a button, and showing a result from a form.
These tests are super valuable and quite expensive as they take a lot of resources and take longer to set up.

## There are more

There are many more types of testing, and depending on your needs, they might be even more important.

However, for this basic introduction, I want to leave it here.
Do let me know what your favorite combination of tests is and how you go about automating it.

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Tailwindcss Dark mode and Light mode Toggle in Reactjs
Published: 2022-03-31 05:58:15

**Implement Dark mode and light mode with TailwindCSS.**

- Copy & paste this code in **public/index.html**
```javascript
    <script>
     const defaultTheme = "dark";
      if (!localStorage.getItem("theme")) {
        localStorage.setItem("theme", defaultTheme);
      }
      if (localStorage.getItem("theme") === "dark") {
        document.documentElement.classList.add("dark");
      } else {
        document.documentElement.classList.remove("dark");
      }
    </script>
```

- Create a function anywhere in your react project with this code👇
```javascript
  const toggleTheme = () => {
    const theme = localStorage.getItem("theme"); 
    if (theme === "dark") {
      document.documentElement.classList.remove("dark");
      localStorage.setItem("theme", "light");
    } else {
      document.documentElement.classList.add("dark");
      localStorage.setItem("theme", "dark");
    }
  };
```

- Now you can use **toggleTheme** function. 


**NOTE:** in this example default theme is **dark** if you don't like dark as default then you can set the light theme as default.
just change **defaultTheme** variable value dark to light.
HairFortin - Shocking New HairFortin Report” This May Change Your Mind!
Published: 2022-03-31 05:46:07


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jtfuvhc93kmc80rdkup8.jpg)
Better still, we want [HairFortin ](https://ipsnews.net/business/2021/10/09/hairfortin-hair-regrowth-formula-really-work-or-scam-complaints-and-user-review/)which can be directly applied to Hair Regrowth Formula. Who better to ask than the parties you know and trust? This is forbidden. This is the free way to get using that because you will realize this feeling doesn't go away. That is the type of resource folks will turn to for serious using this inquiries. Work crews enjoy it. It is a complex procedure to find the best HairFortin. I would like to encounter more original craftsmanship. There was a prosaic time had by everybody. That is a newly found feeling (That is subject to economic growth). To be sure, appearances may be deceiving. Using this is drop dead gorgeous. I suspect you're going to get your setup when you least expect it. Their ruse is a masterpiece. In many respects that pulls back the veil on that notion. Big wigs love reading stories in connection with using it. You may guess that I'm gunning for a fight. It is the biggest stack of speculation I have ever encountered. You can purchase their twist by visiting their blog.

Click Here=> [https://ipsnews.net/business/2021/10/09/hairfortin-hair-regrowth-formula-really-work-or-scam-complaints-and-user-review/](https://ipsnews.net/business/2021/10/09/hairfortin-hair-regrowth-formula-really-work-or-scam-complaints-and-user-review/)
First Release of the New Modal File Manager
Tags: mfm, wails2, svelte, javascript
Published: 2022-03-31 05:40:21

I’ve just released the first version of the new Modal File Manager for the macOS. It is built using [Wails 2](https://wails.io/) and [Svelte](https://svelte.dev/). It is a complete universal application that should work on Intel and M1 Macs. I’ve been develping and using it on my M1 MacBook Pro for several weeks now. I use it as my main file manager everyday.

If you have a problem, please leave an [issue](https://github.com/raguay/ModalFileManager/issues) so that I can track it down and fix it. I haven’t built it on a Linux or Windows system. Therefore, I’m not sure how well it will do there. 

You can read the annoucement [here](First release for the Modal File Manager:
https://github.com/raguay/ModalFileManager/discussions/5) and download the program [here](https://github.com/raguay/ModalFileManager/releases/tag/V1.0.2). 

Currently, the only documentation is the GitHub README.md file. You can read it [here](https://github.com/raguay/ModalFileManager). I’ll be working on better documentation soon.
I made a daily roguelike game that works like Wordle
Tags: gamedev, webdev, clojure, roguelike
Published: 2022-03-31 05:27:19

During the Seven Day Roguelike jam I made an online Roguelike game called [Rogule](https://rogule.com).

I borrowed some ideas from Wordle. You get one dungeon per day to play, and at the end you get emojis showing how well you did that you can share with others. [Check out how people are doing in today's dungeon on Twitter](https://twitter.com/search?q=rogule%202022&src=spelling_expansion_revert_click&f=live)!

I used [ClojureScript](https://clojurescript.org/) and [ROT.js](https://ondras.github.io/rot.js/hp/) to build it.

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

Have fun!
Here's for creating CRUD apps manually
Tags: database, webdev
Published: 2022-03-31 05:19:05

When I started working as a professional software developer we had to implement algorithms and data structures ourselves. Even an administration app created for back office usage typically required knowledge about Big O notation, data structures, and optimisation techniques. Even basic stuff like jQuery didn't exist, and the first chapters in a good C++ book typically taught you how to create a string class. Today we've got `List<T>.Sort`, Postgres, and Angular, and imagining manually creating a string class today for anything but academic purposes is madness.

My business [is CRUD](https://aista.com), literally. In fact, I've got a company around the axiom of CRUD. We're a handful of employees, we've got some VC funding, and we literally _"do CRUD"_ 100% of our time one way or another. Of course, this implies having to think of a lot of other things, such as authentication, authorisation, security, etc - But the basic axiom around which we evolve is that life is too short to having to manually create CRUD apps.

> Don't do manually what the machine can do better automatically

The above is such an obvious truth it's impossible to argue against.

I feel a bit sorry for Chris Rock and Will Smith. Chris made a distasteful joke, and Will over-reacted. However, when you've got passion and love for something, _"loosing perspective"_ for a minute or two is easy. There are roughly 30 million software developers in the world today. Combined we're being paid 1 trillion dollars every single year in salary. Imagine how much further we could evolve as a specie and an industry collectively if none of us repeated ourselves in code?

Don't waste time implementing `List<T>.Sort`, let your library or framework developers do it. They'll probably outperform whatever you could possibly achieve in the space, regardless of how many times you were taught QuickSort in university. Don't waste time manually modifying the DOM using jQuery, use Angular, React, or Vue. The authors of these tools have probably anticipated any problem you might possibly experience in the space. And don't create CRUD apps (manually), because I can guarantee you we're better at it than you.

Notice, I obviously don't condone violence, and I don't think it's OK to make distasteful jokes about other people's wives or partners. Neither will I punch you for manually creating CRUD apps. But in a way you're punching yourself if you do this. Every time somebody finds a way to automate that which you're manually doing today, this creates an opportunity. An opportunity to innovate and move the world collectively forward. Such opportunities makes the world a better place one way or another. I guess what I'm getting at is as follows ...

> Use the best tools available for whatever problem you are currently facing

For CRUD, that just so happens to [be us](https://aista.com)
Apiumhub is a Vue.js Global Summit partner
Tags: events
Published: 2022-06-27 13:02:45

---
title: Apiumhub is a Vue.js Global Summit partner
published: true
date: 2022-03-29 09:00:00 UTC
tags: Events
canonical_url: https://apiumhub.com/tech-blog-barcelona/apiumhub-vue-js-global-summit-partner/
---

[Apiumhub](https://apiumhub.com/) is glad to contribute to the software development community and become a [Vue.js](https://events.geekle.us/vuejs/) [Global Summit partner](https://events.geekle.us/vuejs/). 

## Vue.js Global Summit

Save the date: May 25-26, 2022

10 000+ registrations expected, 30+ speakers, 24+ hours of tech talks. 

In this event you may expect to see speakers from: 

- Microsoft
- Goldman Sachs
- AWS
- Bloomberg
- Philips
- IBM
- And many others..

This event will cover the following topics:

- Composition & Setup API
- Testing, Unit test
- Nuxt.js and Vue.js – what’s new, changes, improvements
- Micro-frontends
- Tailwind CSS
- Vue 3 with TypeScript, Vite
- Vue.js SPA for Security and Scale
- Building your next app in Nuxt 3
- Vuenterprise
- An introduction to Design Language System (DLS)
- Developing your library with Vite and NPM
- Server Side Rendering using Nuxt.JS (Vue)
- Vue Plugin Development
- The Modern Digital pipeline – the future of Jamstack is composable
- Managing state in large Vue applications
- From Zero to Almost Netflix with Vue
- Vue.js 3 impressions: Why I switched from Vue2 – pros & cons
- What you need to know about Web Performance

Vue.js Global Summit has an impressive program committee: 

- Thorsten Lünborg – Core Member at Vue.js
- Binh Nguyen – Creative Technologist at Accenture
- Clément Habinshuti – Software Engineer at Microsoft
- Sanjay Zope – Engineering Manager at Meta
- And others

Line-up of speakers:

- Daniel Roe – Framework Architect at NuxtJs
- Honey Thakuria – Senior Software Engineer at Bayer
- Mikhail Kuznetcov – Engineering manager at Zalando 
- Clément Habinshuti – Software Engineer at Microsoft
- And many others

## Apiumhub became a Vue.js Global Summit partner

We are big fans of events organized by Geekle and we regulatory partner up with them to support such events as: 

1. [Worldwide Software Architecture Summit](https://dev.to/apium_hub/apiumhub-becomes-worldwide-software-architecture-summit-partner-38g4-temp-slug-491904)
2. [Angular Summit](https://dev.to/apium_hub/apiumhub-is-angular-global-summit-partner-56a3-temp-slug-3959896)
3. [QA Summit](https://dev.to/apium_hub/apiumhub-becomes-qa-global-summit-partner-speaker-3bb)
4. [DevOps Summit ](https://dev.to/apium_hub/apiumhub-became-devopstars22-partner-5ec7)
5. [React Summit](https://dev.to/apium_hub/apiumhub-becomes-react-summit-partner-3kf0)

See you at [Vue.js Global Summit](https://events.geekle.us/vuejs/)?!
Star Admin - Premium Bootstrap 5 Template
Tags: webdev, bootstrap5
Published: 2022-03-31 05:07:10

---
title: Star Admin - Premium Bootstrap 5 Template
published: true
description: Premium Dashboard Template crafted by BootstrapDash on top of Bootstrap 5 Framework
tags: webdev, bootstrap5
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ekdmbrseqxz3hyvon91s.jpg
canonical_url: https://www.admin-dashboards.com/star-admin-2-pro-bootstrap-5-bootstrapdash-22nc/
---
Hello Coders! 

This article presents **Star Admin 2**, a premium [Dashboard](https://www.admin-dashboards.com/) Template crafted by `BootstrapDash` on top of **Bootstrap 5** framework. This product is a beautifully designed and well-coded admin template, that comes with excellent support from experts. For newcomers, **Bootstrap** is a leading JS/CSS used to code mobile-friendly user interfaces, actively supported and versioned by programming experts. 

---

> `Thanks for reading!` Content provided by [Admin Dashboards](https://www.admin-dashboards.com)

- 👉 [Star Admin 2 PRO](https://www.bootstrapdash.com/product/star-admin-pro/?ref=23) - product page
- 🎁 [Star Admin 2](https://www.bootstrapdash.com/product/star-admin-free/?ref=23) - the `open-source` version

---  

> *Disclosure* - **This post contains affiliate links**. 

If you use these links to buy something (no additional cost to you) I may earn a commission, product, or service. **Thank you!**

---

![Star Admin PRO (Premium Template) - Dashboard (Bootstrap 5).](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uz185yn0sgauee3agi6s.png)

---

**Star Admin** is a beautifully designed admin template featuring a fine selection of useful Bootstrap components and elements. Star Admin has impressive typography that compliments exceedingly with its colorful and elegant interface.

The pre-built pages of the templates are intuitive and very well-designed. Star Admin is sure to make your development process truly enjoyable.

**Sample Pages** - If you want to get inspiration or just show something directly to your clients, you can jump-start your development with pre-built example pages.

---

![Star Admin PRO (Premium Template) - Dark Mode (Bootstrap 5)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2277ok9uicptf5580om.png)

---

![Star Admin PRO (Premium Template) - UI Components (Bootstrap 5)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ndfxfhyn54vaz5ovil94.png)

---

![Star Admin PRO (Premium Template) - Google Charts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xevu2absxzpyxbx0pt82.png)

---

![Star Admin PRO (Premium Template) - Maps Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ohxh615cznlwz6048sdh.png)

---

![Star Admin PRO (Premium Template) - Charts Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xjhjm2x3x94ll7x8fxkv.png)

---

> `Thanks for reading!` For more resources, feel free to access:

- ✨ More [Free Dashboards](https://appseed.us/admin-dashboards/open-source) crafted in Django, Flask, and [React](https://appseed.us/apps/react)
- ✨ More [Admin Dashboards](https://www.admin-dashboards.com/) - a huge index with products
New blog with spaces in filename
Published: 2022-03-31 05:06:40

slight change
this should fail
Short blog.

```python
def python():
  pass

```

**This is bold text**

_This is italic text_

`This is inline code`

[This is a link](www.google.com)

# Heading 1

##### Heading 5

- Bullet points

1. Number points

![Alternate text ](/media/useless-images/all-markdown-types.png "Image title")

code folding

<details>
<summary>I could use some help...</summary>
<p>

```python
def helloworld():
  print("hello")
```

</p>
</details>
 
new blog 
modified, removed, added
check with constants
Published: 2022-03-31 04:57:13

slight change
this should fail
Short blog.

```python
def python():
  pass

```

**This is bold text**

_This is italic text_

`This is inline code`

[This is a link](www.google.com)

# Heading 1

##### Heading 5

- Bullet points

1. Number points

![Alternate text ](/media/useless-images/all-markdown-types.png "Image title")

code folding

<details>
<summary>I could use some help...</summary>
<p>

```python
def helloworld():
  print("hello")
```

</p>
</details>
 
new blog 
modified, removed, added