teleren/devto huggingface dataset:
Music Monday — What are you listening to? (June 27)
Tags: watercooler, discuss, music
Published: 2022-06-27 14:52:56

_cover image source: [producthunt](https://giphy.com/gifs/producthunt-cats-music-streaming-3o72EX5QZ9N9d51dqo)_

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others suggestions.

If you like talking about music, consider following the org [#music discussions](https://dev.to/music-discussions) for more conversations about music!

{% embed https://dev.to/music-discussions %}

Also noteworthy, my friend @duxtech has a Spanish speaking version of this series [here](https://dev.to/duxtech/series/17890) in case you'd like to chime in there as well. 🙌

***

So, what have y'all been listening to today? _Note: you can embed a link to your song on most platforms using the following syntax `{% embed https://... %}`._

I look forward to listening to y'all's suggestions! 👂 🎶
Getting railed by ruby
Tags: webdev, beginners, ruby, rails
Published: 2022-06-27 14:51:37

Finally made it through my ruby and ruby on rails curriculum and I have a lot of thoughts on the backend framework. First and foremost: writing out CRUD is so incredibly quick and easy. Just a simple 

```
    def create
        user = User.create!(user_params)
        render json: user, status: :created
    end

```
(with different variables and params, obviously) will get you a super quick way to write out a way to store new data as you continue through your project. I began learning coding in Java and JavaScript like most devs and I always wondered why certain actions were so convoluted and I just wanted to start learning ruby/ruby on rails to see if programming would always lead me to want to put my head through a monitor. While each and every language and framework has its own benefits and setbacks I personally feel like ruby reads a lot more modern AND does a lot of work for you. Which personally, the less I have to type the better.

All in all, Ruby and Ruby on rails is such a lightweight framework that pulls heavy weight work in a way that is incredibly easy to understand, build out, and manipulate into exactly what you want done. Along with super easy integration with JavaScript, Ruby and rails helps make complex websites that run quickly and smoothly.

One of the main benefits I've noticed about Ruby as a whole is absolutely the fact that when you have an error, it'll freak out on you and tell you exactly where things went wrong and HOW to fix it. Makes debugging and finding that stray comma a thousand times easier.

All in all every language and framework has their own benefits and drawbacks and I really feel like I have only started chipping away at the tip of the iceberg in really understanding what I as a newer developer can do.
3 Javascript features you probably didn't know
Tags: javascript, webdev, beginners
Published: 2022-06-27 14:30:35

1. **Deep object destructuring**
You probably know you can destructure objects, but did you know you can destructure a destructured object? 

```tsx
const {
    dog,
    cat: { legs, eyes, breed },
  } = pets;
```

2. **Destructuring an array**
You can also destructure an array by its index

```jsx
const {0: first, 5: sixth} = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"];
console.log(first) // expected output: "Jan"
console.log(sixth) // expected output: "Jun"
```

3. **The comma operator** (,) 
Evaluates each of its operands (from left to right) and returns the value of the last operand.

```jsx
let x = 1;

x = (x++, x);

console.log(x); // expected output: 2

x = (2, 3);

console.log(x); // expected output: 3
```

This is used when you need multiple variables for `for` loops

```jsx
for (var i = 0, j = 9; i <= 9; i++, j--)
  console.log('a[' + i + '][' + j + '] = ' + a[i][j]);
```
Day 5 : 100DaysOfSwift🚀
Tags: ios, swift, 100daysofcode, swiftui
Published: 2022-06-27 14:27:05

## Day 5
## Functions

Functions let us re-use code, which means we can write a function to do something interesting then run that function from lots of places. 
Repeating code is generally a bad idea, and functions help us avoid doing that.

```
func printHelp() {
    let message = "Namste Swift"

    print(message)
} 


```
Run using

```
printHelp()
//output: Namste Swift

```

## 1.Accepting parameter
Values sent into functions this way are called parameters.

```
func sauChavan(Parameter: DataType){
//code
}

sauChavan(Parameter: argument)


```

```

func sauChavan(Surname:String){
    let name="saurabh \(Surname)"
    print(name)
}

sauChavan(Surname:"Chavan")
//Output: saurabh chavan
```


## 2.Returning values

```
func square(number: Int) -> Int {
    return number * number
}

let result = square(number: 8)
print(result)
```

## 3.Parameter labels

```
func sayHello(to name: String) {
    print("Hello, \(name)!")
}

sayHello(to: "Saurabh")
//output: Hello Saurabh
```

## 4.Omitting parameter labels

```
func Hello(_ person: String) {
    print("Hello, \(person)!")
}
Hello("Saurabh")
//output: Hello Saurabh
```

You can refer here also best Way and easy [Function](https://www.programiz.com/swift-programming/functions)
Meme Monday! 🥸
Tags: discuss, watercooler, jokes
Published: 2022-06-27 14:26:44

Welcome to another **Meme Monday** post! Today's cover image comes from my favorite submission from [last week's thread](https://dev.to/ben/meme-monday-3ji7).

DEV is an inclusive space! Humor in poor taste will be downvoted by mods.
How is building in web3 different from building in web2?
Tags: webdev, blockchain, polygon
Published: 2022-06-27 14:24:06

Part of my learning process at the [Polygon Fellowship 2022](https://polygon.technology/polygon-fellowship/)

Most of you are familiar with apps being built with a frontend and backend, using the countless languages and frameworks out there.  
What is up with web3? What exactly is the **technological** difference in web2 and web3? Let's explore that.

## Paradigm of web2 vs web3
### Frontend
web3 doesn't reinvent the internet. In fact, it supplements it. You still need a website, UI design and other frontend principles in order to use Decentralized Applications (Dapps).

The difference is in the new concept of:
1. Wallet Connection (Ex: [MetaMask](https://metamask.io/), [WalletConnect](https://walletconnect.com/))
2. Smart Contract Interaction (Ex: [EthersJS](https://docs.ethers.io/v5/))
3. Handling wallet and transaction states

You may have also noticed a trend in many dApps, especially Decentralized Finance (DeFi) apps, they have:
1) Central Card Layout
2) Gradient cards, backgrounds

It is hard to trace back exactly who started this, but [Uniswap](https://app.uniswap.org) is the pioneer that may have popularized this.

### Backend
Think of the backend components in web2. API routes, databases, server-side processing, etc. They are what you start working on when you create, say, a social media app, an e-commerce site, etc.  
Now in web3, you have the blockchain technology as your backend. Your data will directly or indirectly come from smart contracts instead of APIs and Databases.  
The Smart Contracts handle all the business logic and some amount of storage. For large storage, [IPFS](https://ipfs.io/) can be used.  

**Does blockchain tech replace the backend?**
Absolutely...Not 👀
As I said, web3 is an addition, supplementary and will not replace existing tech.  
In major blockchain applications, getting data from smart contracts can cost time and sometimes fail if the RPC is unresponsive. You would still want a database and API to query data collected from smart contracts from, say, events.  
Examples: [The Graph](https://thegraph.com/), [Moralis](https://moralis.io/).  

The database doesn't have to be centralized, there are decentralized solutions available too. 

Going forward, you can learn solidity from the official docs or check out free courses from [Buildspace](https://buildspace.so/) and [CryptoZombies](https://cryptozombies.io/).

## Conclusion
There are conceptual differences in building blockchain applications, but it cannot exist without the existing infrastructure of web2. It is an interesting piece of technology which I think is unlocking new ways we look at governance, money and decentralization.

Follow me to get updated on my blockchain journey as part of the Polygon Fellowship 2022 :)
HashTables in Java
Published: 2022-06-27 14:20:16

- Hashtables? 
- Hashset and Hashtable difference?
- use Cases

- implementation
   - Array implementation
   - Linear probing
   - Linear Probing- removing items
   - Linear Probing- Rehashing
   - Chaining
   - Bucket Sort
   - Hashtable Challenge

<hr/>

Hashtables provides Speedy recovery of data

Differences between hash map and hashtable :
**HashMap** and **HashTable** both store key and value pairs in the hash table, we have to specify the key and a value linked to that key.
key is hashed, hence hashcode are used as index at which values are stored

- Hashmap is non-synchronised, not thread safe and cannot be shared between many thred without proper synchronisation 
whereas hashtable can be synchronised, can be shared between multiple threads.
- **HashMap** allows one **null key **and multiple null values.
Hashmap no null key or value.
- Hashmap is prefred when synchronisation is not needed 


Now you must be wondering why HashTable doesn’t allow null and HashMap do? (GFG)

The answer is simple. In order to successfully store and retrieve objects from a HashTable, the objects used as keys must implement the hashCode method and the equals method. Since null is not an object, it can’t implement these methods. HashMap is an advanced version and improvement on the Hashtable. HashMap was created later.
New Flutter Package [flutter_user_guildance]
Tags: flutter, beginners, programming, dart
Published: 2022-06-27 14:13:26

Provide the user guidance widget to make developers easy to make new user tips.

[Github](https://github.com/Flutter-Queen/flutter_user_guildance)

[Package](https://pub.dev/packages/flutter_user_guildance)

✨UserGuildanceAnchor:✨
The widget is used to mark what widget needs highlight.

✨UserGuildance:✨
The widget is used to show highlight items. It makes sure the widget show on full screen.

✨UserGuidanceController: ✨
The controller is used to show, hide and move the next step.

✨TipWidget:✨
The widget is the default widget that is used in UserGuildance. You can customize it to implement the different styles. It just wraps BubbleWidget.

✨BubbleWidget:✨
The widget provides basic tip functionality.


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

Follow:
[Instagram](https://www.instagram.com/_flutter.queen/) 
[Medium](https://medium.com/@flutterqueen)
[Github](https://github.com/Flutter-Queen)
Facebook
AI-assisted newsletter dashboard
Tags: programming, opensource, news, github
Published: 2022-06-27 13:58:08

Hey there everyone, hope you’re having a great day 😊 We would like to share a few things about our workshop at the datalift summit last week. "AI-assisted newsletter dashboard" is the title of the workshop we had hosted at the datalift summit. We used a streamlit frontend with a minimal fastAPI backend, which is not only really fun to program but also ridiculously fast to set up. The data was collected over a couple of months, where we settled on three newsletters which were really interesting. BERT embeddings power the recommendations and similarity search. They are also the foundation for the topic classification of the application.

The best part ? It is python only and we got it all on GitHub ready for you to explore, so check it out! There are also tons of improvements to be made, we left a little inspiration in the repo for you to start with right away. Let’s start collaborating to build better AI solutions together ✌🏻

Link to our GitHub 👉🏼 https://github.com/code-kern-ai/datalift-summit
Containerizing a .NET Core-based Application for AWS
Tags: dotnet, docker, jetbrainsrider, visualstudio
Published: 2022-06-27 13:52:30

In our last post in this series, we talked about Containerizing a .NET 4.x Application for deployment onto AWS, and as you may have seen it was a somewhat convoluted affair. Containerizing a .NET Core type application is much easier, because a lot of the hoops that you must leap through to manage a Windows container will not be necessary. Instead, all AWS products, as well as IDEs, will support this out the gate.

## Using Visual Studio

We have already gone through adding container support using Visual Studio, and that we are doing it now using a .NET Core-based application does not change that part of the process at all. What does change, however, is the ease of getting the newly containerized application into AWS. Once the Docker file has been added, the “_Publish to AWS_” options when right-clicking on the project name in the Solution Explorer is greatly expanded. Since our objective is to get this application deployed to Amazon ECR, make the choice to _Push Container Images to Amazon Elastic Container Registry_ and click the **Publish** button. You will see the process walk through a few steps and it will end with a message stating that the image has been successfully deployed into ECR.

## Using JetBrains Rider

The process of adding a container using JetBrains Rider is very similar to the process used in Visual Studio. Open your application in Rider, right-click the project, select **Add**, and then **Docker Support** as shown in Figure 1.

![Figure 1. Adding Docker Support in JetBrains Rider.](https://i0.wp.com/billthevestguy.com/wp-content/uploads/2022/06/image-7.png)_Figure 1. Adding Docker Support in JetBrains Rider._
 
This will bring up a window where you select the **Target OS**, in this case, Linux.  Once you have this finished you will see a _Dockerfile_ show up in your solution. Unfortunately, the AWS Toolkit for Rider does not currently support deploying the new container image to ECR. This means that any deployment to the cloud must be done with the AWS CLI or the AWS Tools for Powershell and would be the same as the upload process used when storing a Windows container in ECR that we went over in an earlier post.

As you can see, containerizing a .NET Core-based application is much easier to do as well as easier to deploy into AWS.
How to Hire Remote Developers For Your Business
Published: 2022-06-27 13:51:47

How to [Hire Remote Developers](https://optymize.io/) For Your Business

Remote development has become the dream work culture of many companies as it introduces product development at a cheaper cost, and if you are the owner or manager of the company and constantly looking for solutions that can enhance your product development in no time then this article is for you as in this we discuss the benefits of remote development and how to hire remote developers for your business.



What is Remote Development-
Remote development is a method of hiring an offshore candidate who can deliver effective software solutions by working outside of the office environment. These remote developers are hired on a contract basis to fulfill any level of expertise, they are mostly hired for crucial roles as they have years of experience working on any particular technology.
Benefits of Hiring Remote Developers-
Increased Product Development
24*7 working teams.
Cost-effective approach.
Expands market reach.
Best pool of talent.
Why Optymize for Hire Remote Developers -
Optymize is the perfect destination if you want to scale your development teams in no time, as it's an emerging talent marketplace that focuses on providing vetted top 5% of elite remote developers in every other technology. Our handpicked elite team of remote developers is capable of serving you with the best possible solution to your project as they have years of experience working on different technical aspects.
Our Expertise-
Blockchain.
NFT.
DeFi.
IoT.
Cyber Security.
Data Science.
Machine Learning.
Metaverse.

Efficient Hiring Process of Optymize-
A Quick Call- 
Give us a quick call where we will get to know your business and the area in which you want to build the product, provide us with the necessary project requirements so we can suggest the best suitable remote developers for your product development.
48-Hour Matching-
We at Optymize value your time and effort and hence we act quickly to find you the elite developer from our side, we promise our clients to provide the best-suited developer in 48 hours so you can rest assured about finding the best candidate and focus on your core development.
Review and Onboard-
The next step would be to interview the shortlisted candidate, you can schedule the interview in your timezone and proceed with your interview process using any video conferencing tool. After you select the desirable developer, onboard him to begin your remote development journey.
Conclusion :
Remote developers are the need of every other Business as they are highly experienced in providing effective software solutions. So if you are in need to scale your team and achieve greater product development then Optymize is the ideal destination for you as we offer cost-effective development in no time.
Python
Tags: python
Published: 2022-06-27 13:47:42

Python is a very popular coding language. Its creator Guido van Rossum made it to be read easily and to be used for any task. Guido has a master’s degree in computer science and mathematics, which explains why python works great with mathematics. It’s open-source so anybody can help by contributing to the language. Today python’s latest update is a major version 3. As much as I wanna go over everything in python, I’m going to just go over the very basics of syntax and forming strings. Python uses a new line to finish an operation, whereas javascript uses a semicolon. For loops, functions, and classes are made through spaces with python, javascript uses curly braces. At least one space is needed, but four is the standard practice. The amount of spaces chosen has to be used on each line for the block of code to work, else python gives an error.

**Variables**

Python creates variables by assigning them to a value. Theres no declaring a variable in python as there is in javascript. 

```python
name = 'Bruce Wayne'
```

Pseudo coding, writing comments, is done by writing after the # character. In python, a variable can be set to a particular datatype through a process called casting.

```python
x = str('1') # prints '1'
x = int(1) # prints 1
```
Type method is a python function that returns the datatype of a variable

```python
print(type(name)) # prints <class 'str'>
```
Python's string datatype can be formed with single or double quotes. For a string that will run more than one line, they can be formed with three single or double quotes.

```python
achilles = '''Let no man forget how menacing we are, we are lions! Do you know
whats waiting beyond that beach? Immortality! Take it! It's yours!'''
```

If looking for a word inside of a string, the keyword in can be used.

```python
print('lions' in achilles) # prints true
```

Can also use an if conditional to check for a word

```python
sparta = 'SPARTANS! what is your profession?'

if 'profession' in sparta:
  print('HA-OOH! HA-OOH! HA-OOH!') # prints HA-OOH! HA-OOH! HA-OOH!
```

Or can check if a word isn’t in a string with the not keyword

```python
if 'cook' not in sparta :
  print('false') # prints false
```

To turn the characters in a string from lower case to upper case, theres an upper method.

```python
upperCaseBatman = name.upper()
print(upperCaseBatman) # prints BATMAN

print(upperCaseBatman.lower()) # prints batman
```

Adding a string and a variable can be done with the addition operator.

```python
def vengeance():
  print('I am ' + name)

vengeance() # prints I am Batman
```

Python has many methods for strings. These are just a few. The syntax is pretty easy to catch on. And I must admit, it does make python very easy to read. Also makes it look really clean.




_Sources_

- https://www.w3schools.com/python/default.asp
🦊 GitLabCheatsheet - 13 - Environment
Tags: devops, gitlab, tutorial, cheatsheet
Published: 2022-06-27 13:44:38

This GitLab Cheatsheet speaks about environments.

<a href="https://jeanphi-baconnais.gitlab.io/img/cheatsheet/GitLabCheatsheet-13-Environments.jpg" alt="13 - Environments" target="blank">
<img src="https://jeanphi-baconnais.gitlab.io/img/cheatsheet/GitLabCheatsheet-13-Environments.jpg"/>

</a>


I will create others cheatsheet. Tell me if you have comments or suggest about those cheatsheet 😃.
That time I almost quit a Hackathon
Tags: career, beginners, codenewbie, devjournal
Published: 2022-06-27 13:36:18

#<h1> Hola Mundo! </h1>
<Enter>

Oh frustration! 🤦🏽‍♀️​

I've never been the most patient person. And if there's something I've learned - the hard way - as developer, is that there is **a lot** of frustration involved🙅🏽‍♀️. 

But I'm lucky, most of the times the frustration kicks in, I try to manage it and I ask for help 💬​. And I have received that help, which is a huge privilege.

###Now...let me tell you about that time I almost quit a Hackathon.

The thing is, a couple of months ago, after I started learning Swift, I enrolled to a Femhackathon 👩🏽‍💻​ that has mobile challenges. Fun right?

I got in the Hackathon with a good mindset: I'm gonna do as much as I can. I'm learning and this is another opportunity to try new things. I was like, I can do this 💪​!
___
###The challenge 💻

So the challenge started, they gave us this list of things we have to do. And well you had until certain time to send your solution.

I did like a list of things I needed to tackle. Wrote down all the requirements. But for some reason **I didn't follow my own list**.

Now I'm starting to write my "solution", starting with the Database. An **optional** requirement and something that 💥​I've never done before💥​.

___
###The quitting point 😵

Well, it took me a lot of hours to do the Database. I decided to use Coredata, checked some notes I had and did my thing. But then when I thought it was ready, it wasn't. I had errors and I wasn't able to solve them on my own.

At this moment, I watched the clock ⏱️​ and got so frustrated it felt like I've being doing so much for nothing and THIS WAS A PLUS. Am i dumb or what!? 🤦🏽‍♀️. 

I honestly thought like, you know what? I'm done, I'm going to play some Playstation and won't compete. Why did I even enrolled to this, I could be relaxing on my weekend, blah blah blah...I was in a wormhole.

But then I looked at my own checklist again and well...it didn't look that hard ✅​. 

So, I deleted the nonsense I've been doing and decided to go step by step for another time. To follow the list that my past self did and to send whatever I was able to do, because that's the idea: to learn 🧠​.

___
###The outcome 🌈

Definitely I did learn to have patience and to prioritise 💯. And also to believe in the progress. If I had written my pseudocode and wrote down a series of tasks I needed to do, why did I start by the end? So this was also a reminder to focus 💡.

Actually I did pretty well and scored 🥈​second place🥈​ in my category which made me feel very proud and also was a perfect motivator to keep reminding myself to not give up.

And of course sometimes things will go wrong. But if they go bad, I want it to be because I've to keep on learning and not because I didn't try it 💪.​

So to you, thank you for reading this much and remember, do not give up. **🫵​ You are worth the shot. 🫵​**

___
Have you had any similar experience? Let me know and if you haven't see it, check on my ["Jr. Dev: Do not give up"](https://dev.to/silviaespanagil/jr-dev-do-not-give-up-15pa) series 💪🏽.
Creating a Vitess POC
Published: 2022-06-27 13:35:24

---
title: Creating a Vitess POC
published: true
description: I look into Vitess, talking about the different benefits of distributed database services, and create a quick Proof Of Concept to show how the system is put together.
tags:
cover_image: https://i.ytimg.com/vi/Y_UyV5pe14E/maxresdefault.jpg
---

{% youtube Y_UyV5pe14E %}

I look into Vitess, talking about the different benefits of distributed database services, and create a quick Proof Of Concept to show how the system is put together.