teleren/devto huggingface dataset:
Don't be afraid to make mistakes
Tags: codenewbie, beginners, webdev, javascript
Published: 2020-11-04 03:11:30

Hi Everyone!

This is my first post on here. I'm currently in my third week of my Full stack boot camp with [CodeOP] (https://codeop.tech). I'm loving every minute of it. CodeOp is a coding boot camp with a mission to empower marginalized people like folks who identify as women, TGNCNB (Transgender, Gender Non-Conforming, Non-Binary) and are also POC (Person of Color). The environment is very diverse, international, warm and welcoming.

But that isn't why I'm here. I wanted to touch on the topic that most beginners seem to be struggling with, and that's the fear of making mistakes. From my own experience and from watching others, there are people who are starting out like me, in their early-mid 30s, looking to change careers. At this age, or even older, a person can feel extremely vulnerable to admit that they don't know, or understand something. They're adults who have had full-time jobs for a while, so yeah, it is daunting to be in a group with folks in their 20s. Some programmers are also parents, and the feeling to admit that to yourself can be very awkward. 

I want to let you know, it's okay to feel that way, and it is expected. Don't feel ashamed to make mistakes, or ask someone if you get stuck. Everyone has to start somewhere. When you are learning, really take the time to learn the concepts, theories and applications. Coding is one place where you can't pretend your way through because it's like a team sport when you work in pairs or on a team project. Everyone relies on one another in order to function as a whole. If you need to take the long route to code everything out, then so be it. You can always go back and clean-up/refactor your code as you get better at it. 

When I share my assignments with the other people in my cohort, I feel bad sometimes. I can tell that some of my classmates think they did the assignment wrong, or their code is too long. There is no wrong way if the end result is still the same. Don't shy away when you see other people's work. Be proud, be confident and have faith in your struggles because you're thinking in a way that makes sense to you and that's a good thing! This journey is going to be a long and life-learning adventure, and it is important to keep an open mind to constructive feedback but not be ignorant to them. It will definitely help you grow as a developer. 

If we want to be better developers, we have to become vulnerable and embrace our mistakes. But it doesn't mean to dwell on them, or walk pass them once we acknowledge them. Go back and see what caused the error/bug/malfunction. Deconstruct and isolate where it went astray and once you get it, re-do it a bunch of times until it sticks.

You got this! Here are some posts to help boost your confidence level if you ever feel like you need it :). 

[What I Wish I Knew as a Junior Dev by Endy Austin] (https://www.freecodecamp.org/news/lessons-learned-after-11-years-coding)

[How to Make a Successful Mistake by Pramono Winata] (https://www.freecodecamp.org/news/how-to-make-a-successful-mistake)
Venta y Alquiler de Contenedores en Lima
Published: 2020-11-04 03:29:36

Disponemos para la <a href="https://nsgmilan.com/venta-y-alquiler-contenedores-lima.html">venta y alquiler contenedores en Lima</a>, marítimos de: 10 Pies Standard, 20 Pies Standard, 40 Pies Standard y 40 Pies High Cube. Los contenedores son aptos para resistir diferentes condiciones ambientales.
Code Smell 16 - Ripple Effect
Tags: programming, tutorial, beginners
Published: 2020-11-04 03:28:17

*Small changes yield unexpected problems.*

> TL;DR: If small changes have big impact, you need to decouple your system.

# Problems

- Coupling

{% post https://dev.to/mcsee/coupling-the-one-and-only-software-design-problem-2pd7 %}

# Solutions

1. Decouple.
2. Cover with tests.
3. Refactor and isolate what is changing.
4. Depend on interfaces.

{% post https://dev.to/mcsee/how-to-decouple-a-legacy-system-30ke %}

# Examples

- Legacy Systems

# Sample Code

## Wrong

[Gist Url]: # (https://gist.github.com/mcsee/3861429b0a02eb2a3906d0f939cc1809)
```javascript
class Time {
   constructor(hour, minute, seconds) {
     this.hour = hour;    
     this.minute = minute;  
     this.seconds = seconds;  
  }
    now(){
      //call operating system
    }  
}

//Adding a TimeZone will have a big Ripple Effect
//Changing now() to consider timezine will also bring the effect
```

## Right

[Gist Url]: # (https://gist.github.com/mcsee/7fbceedcae6aae7f15d392c9bbe0ffa1)
```javascript
class Time {
   constructor(hour, minute, seconds, timezone) {
     this.hour = hour;    
     this.minute = minute;  
     this.seconds = seconds;  
     this.timezone = timezone;  
  }  
  //Removed now() since is invalid without context
}

class RelativeClock {
   constructor(timezone){
     this.timezone = timezone;
   }
   now(timezone){
     var localSystemTime = this.localSystemTime();
     var localSystemTimezone = this.localSystemTimezone();
     //Do some math translating timezones
     //
     return new Time(..., timezone);     
   }  
}
```

# Detection

- It is not easy to detect problems before they happen. [Mutation Testing](https://en.wikipedia.org/wiki/Mutation_testing) and root cause analysis of [single points of failures](https://en.wikipedia.org/wiki/Single_point_of_failure) may help.

# Tags

- Legacy

# Conclusion

There are multiple strategies to deal with Legacy and coupled systems. We should deal with this problem before it explodes under our eyes.

# Relations

- [Code Smell 08 - Long Chains Of Collaborations](https://dev.to/mcsee/code-smell-08-long-chains-of-collaborations-30c3)

# More info

- [How to Decouple a Legacy System](https://dev.to/mcsee/how-to-decouple-a-legacy-system-30ke)
 
# Credits

Photo by <a href="https://unsplash.com/@jtindall">Jack Tindall</a> on <a href="https://unsplash.com/s/photos/big-wave">Unsplash</a>

* * *

> Architecture is the tension between coupling and cohesion.

_Neal Ford_

{% post https://dev.to/mcsee/software-engineering-great-quotes-26ci %}

* * *

This article is part of the CodeSmell Series.

{% post https://dev.to/mcsee/how-to-find-the-stinky-parts-of-your-code-1dbc %}

*Last update: 2021/06/24*
Parameters for Deep Link in React Navigation
Tags: reactnative, reactnavigation
Published: 2020-11-04 03:21:58

Recently I run into an issue that I need to pass more than 1 parameter via deep link into my react native app (and I use react-navigation). From the doc, once you set a path for your route, you can access it via deep link. For example,

```js
const SimpleApp = createAppContainer(
  createStackNavigator({
    Home: { screen: HomeScreen },
    Chat: {
      screen: ChatScreen,
      path: "chat/:user",
    },
  })
)
```

You can access the page by using deep link via (let's say that your uriPrefix is `mychat://`) `mychat://chat/test1` (more detail about deep link in react navigation, https://reactnavigation.org/docs/en/deep-linking.html).

What if you want to pass more parameters into this page? let's say that this chat page needs one more parameter to specify a product that you may want to refer to. Luckily that react-navigation has already provided a method to add more parameters by using queryString. So in this case the url will look like this:

`mychat://chat/test1?productId=10`

and in your ChatScreen page, this query string will be added to your params

```js
const { params } = this.props.navigation.state
console.log("product id: ", params.productId)
```

You can also add more parameters using &&

`mychat://chat/test1?productId=10&&source=email`
Expo Camera set up in Bare workflow
Tags: reactnative, expo, camera, expocamera
Published: 2020-11-04 03:20:06

Found a difficulty when I tried to eject an app with expo-camera from Expo Managed into Bare workflow. Our team managed to solve this problem and I blog it as a reference

From my experience, it's simple to use most of expo component in the Bare workflow until I come across expo-camera. I expected it to be managed by `react-native-unimodules`. However, thing wasn't that simple. This is the error I observed during gradle build:

```
ERROR: Failed to resolve: com.google.android:cameraview:1.0.0
Show in Project Structure dialog
Affected Modules: app
```

This can be fixed by applying this into build.gradle

```
allprojects {
    repositories {
        ...your code
        maven {
            // expo-camera bundles a custom com.google.android:cameraview
            url "$rootDir/../node_modules/expo-camera/android/maven"
        }
    }
}
```

and you're good to go!

The hardest part is the above hasn't been stated in the [component reference](https://docs.expo.io/versions/latest/sdk/camera/). But it's located deeply in its github repo here https://github.com/expo/expo/tree/sdk-39/packages/expo-camera
dmm - A Deno Module Manager
Tags: deno, dmm, typescript, webdev
Published: 2020-11-04 02:03:46

dmm (pronounced "dim") is a Deno module manager. It can update your `deps.ts` file, check if any of your dependencies are out of date, and give you information about any module in the Deno world. Managing your dependencies hasn't been easier.

## How It Works

dmm reads the `deps.ts` file at the current working directory -- checking versioned `import` and `export` statements and checking to see if they can be updated. If any dependency can be updated, it lets you know which ones can be updated. If you want to update them, dmm will rewrite your `deps.ts` file so that your dependencies reflect their latest versions in just one simple command.

Want to manage your Deno dependencies in a simpler manner? Check out [dmm](https://drash.land/dmm)!
A Rust lib to deploy microservices apps on any Cloud provider
Tags: aws, cloud, cloudnative, docker
Published: 2020-11-04 01:53:13

Hi 👋, after months of hard work with my team of 6. I am glad to announce that we have open-sourced our deployment engine.

https://github.com/Qovery/engine

Qovery engine is still under development, but more than 600 developers and dozens of successful companies use our Engine for 11 months through [Qovery](https://www.qovery.com).

## Features
* **Zero infrastructure management:** Qovery Engine initialized, configure, and manage your Cloud account for you.
* **Multi-Cloud:** Qovery Engine is built to work on AWS, GCP, Azure, and any Cloud provider.
* **On top of Kubernetes:** Qovery Engine takes advantage of the power of Kubernetes at a higher level of abstraction.
* **Terraform and Helm:** Qovery Engine uses Terraform and Helm files to manage the infrastructure and app deployment.
* **Powerful CLI:** Use the provided Qovery Engine CLI to deploy your app on your Cloud account seamlessly.

![](https://preview.redd.it/7d5msvtk6lw51.png?width=1722&format=png&auto=webp&s=594771af8b1dc9496cfd303bafb356eb497b9031)

Qovery engine supports many different plugins to compose your own deployment flow.

As Qovery Engine is a plugin system, we are looking for contributors interested in helping us making Rust successful in the Cloud industry.

What do you think?
Day 248: Work To Do
Tags: hiphop, code, coding, lifelongdev
Published: 2020-11-04 01:43:36

_liner notes_:
- Professional : Got to play with a framework to make a CLI. I was able to put together something pretty quickly that I added to a project I'm helping out with. Worked on getting my Web Component into an Angular app for my next blog post. I want to use an online editor so I can embed the project into my post. Ran into some strange issues and errors, but finally got the Web Component to show up in the application. I had to install my Web Component into the application. Going to see if I can get it working another way. At least it's a start.

- Personal : Last night, I was able to deploy the new version of https://otech.events and the organizer dashboard to some test URLs so I can test it out before transferring the domains. I used Sapper for the new version and had to change some things to get it working with Firebase. I used Sapper for https://dwane.in and https://myslides.page so this time it wasn't as bad.

![A stream with many moss covered stones and a waterfall in a forest in Dolni Sokolovec, Czech Republic](https://dev-to-uploads.s3.amazonaws.com/i/4dmsapkql5uwka7z90o9.png)

I almost forgot to post this blog. haha It's election day in the US so my mind is elsewhere. haha. We'll see what happens. Regardless of what happens, we still need to fight to get what we need. Spoke with some meetup organizers and will be giving them a demo of the new site and we may be using it to stream their upcoming events. Would be great to get some meetups going again even though they aren't in person. I want to start thinking about the design for my next project. Pretty excited to start. Almost the end of the year and still got work to do!

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube h7AGTOgfdng %}
UI/UX inspiration from these epic websites
Tags: ux, webdev, css, design
Published: 2020-11-04 01:26:22

Hey, developers, this is my latest Post on this topic and now I'm bringing 10 epic websites UI/UX inspiration. They all are unique and amazing and interactive and many things. Read and see to find out. 

# Let's Start 🤘👊

###  [WannaThisOne](https://wannathis.one/humans) 

![1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603596988923/9IAyvfv10.png)

###  [Adidas Chile 20](https://adidaschile20.com/) 

![2.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603597399006/G_kVS6HuE.png)
-> Can you see those 3 Bars below products ? They Glow when you hover on product. This is just amazing. 

###  [Loven Morcel](https://www.loevenmorcel.com/en/home)

![3.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603597425225/Xk8SRgObW.png)

###  [Simon Daufresne](https://simondaufresne.com/)
 
![4.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603597461609/UzPs7cA60.png)
-> This has a great scroll feature. 

###  [Climate Justice](https://climatejustice.style.greenpeace.org/) 

![Screenshot_2020-10-25 Climate Justice.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603597603132/7WoeY1C_u.png)
-> Moving Flag                         
-> Amazing typography

###  [Kirk Whayman](https://www.kirkwhayman.com/)

![6.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603597847786/KFgyN6mqf.png)

###  [The Weeknd : Spotify](https://theweeknd.withspotify.com/)

![7.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603598439485/2puQ2QwH3.png)
-> This is hell lotta amazing and best experience.           
-> This will take a bit to load but this is a  freaking amazing experience.                            
-> You have to log in with Spotify in order to see.               

###  [M-Trust](https://www.m-trust.co.jp/)

![8.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603598284445/UlwPaU82d.png)

###  [Virtual Toor GUCCI](https://virtualtourguccigarden.gucci.com/#/en/piano-0/neon-1) 

-> We all know Gucci by name **We can't afford** wait, no. It's with the name **we can afford but not everything** 🤘          
-> Get a virtual tool for free guys. 😂            
-> It took a bit to load on my (coz of freaking slow internet) pc.

###  [MVP Assembly Line](https://fulcrum.rocks/mvp-development) 
![9.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603599144063/UI7rsd3pq.png)

###  [With Code](https://withcode.cmiscm.com/#metaballs) 

![10.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1603599190881/jLSUuKs9J.png)
<hr>
Get the  [daily.dev](https://api.daily.dev/get?r=rahxuls)  extension for yourself. This is the epic extension for the latest news and updates for developer. 
<hr>
**Don't forget to get  [daily.dev](https://api.daily.dev/get?r=rahxuls)  extension. **                                                    
Thanks For Seeing these websites if you loved then plz subscribe and comment. 🙂
Day 3 of 100 Days of Code
Tags: 100daysofcode, html, css, braziliandevs
Published: 2020-11-04 01:16:35

# Hello coders! How y'all doing?


In this [project] [repo], following a tutorial, I tried to create a page using a little Javascript to make 3D animations.

### Connect with me:

[<img alt="ricardo.digital" width="22px" src="https://img.icons8.com/ios/452/internet.png" />][website]
[<img alt="ricardocas | LinkedIn" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/linkedin.svg" />][linkedin]
[<img alt="clickdoricardo | Instagram" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/instagram.svg" />][instagram]


[repo]: https://github.com/ricardo-cas/site-produto
[website]: http://www.ricardo.digital/
[twitter]: https://twitter.com/rcosta_digital
[instagram]: https://www.instagram.com/clickdoricardo/
[linkedin]: https://www.linkedin.com/in/ricardocas/
The Credit Chef

Published: 2020-11-04 00:23:20

Financial Education was never taught in our schools and many consumers are unaware of how the credit system works. The Credit Chef has been educating consumers over the past fifteen years. Thousands of consumers have been able to purchase their dream home, dream car, and start their very own dream company. Here at The Credit Chef we want you to “taste the difference” and fall in love with healthy credit!

What the FICO? Do you have a bad credit taste in your mouth? Let us whip up the healthiest fico score you have ever seen! Taste the Difference - The Credit Chef


Bad Credit? BIG problem? Not with The Credit Chef…. Fixing bad or poor credit standing that may have deteriorated for a variety of different reasons is our main goal. We aim to prepare perfect recipe for your successful credit, because having a healthy credit will help you achieve your dreams. For more visit: http://www.thecreditchef.com
Modelling value types in kotlin
Tags: kotlin, design
Published: 2020-11-04 02:12:32

---
title: Modelling value types in kotlin
published: true
date: 2020-11-04 00:00:00 UTC
tags: [kotlin, design]
canonical_url: https://amolrv.github.io/modelling-value-types/
---

In this article, you’ll see how to model value object[^1] particularly in kotlin.

Imagine we want to improve below model:

```kotlin
class Customer(id: UUID, email: String,..)

class Order(id: UUID,..)
```

I had 2 use reason for modelling value type

## Type safety

lots of time I want to distinguish between let’s say `customerId` and `orderId`. so that accidental passing of wrong Id can be avoided. the best way is use inline class[^2] concept but be careful with it’s stability status.

```kotlin
// option #1
inline class CustomerId(val value: UUID)
// option #2
data class CustomerId(val value: UUID)
// option #3
data class CustomerId(private val value: UUID) {
    override fun toString(): String = value.toString()
    fun asString(): String = value.toString()
    fun asUUID(): UUID = value
}
```

Option 1 and 2 are more recommended where as option #3 is example of over modelling.

> I often have tendency to make props as private by default. but when we’re modelling immutable data type. You don’t need to mark props as private.

## Represent a domain concept with constraint

Let's take an example of `email` which need to match some fancy regex.

This is bit complicated one especially with kotlin because of language design. But we have 2 options here:

1. Use constructor to throw violations 😟
    ```kotlin
    data class Email(val value: String) {
        init {
            // if (!isValid(value)) then throw InvalidEmail()
        }
    }
    ```
    This option is not bad but it has few limitations and such as
    - constructor is not honest enough because it can blew on your face
    - it can hijack your program’s execution
1. don't use kotlin since well-known design flaw [^3] 😅
1. [Use NoCopy plugin 🎯](https://github.com/AhmedMourad0/no-copy#nocopy-compiler-plugin----)
    There is really nice article about NoCopy [here](https://medium.com/swlh/value-based-classes-and-error-handling-in-kotlin-3f14727c0565).

## Summary

Kotlin has few limitations but those can be fixed. Always go for more transparent and honest representation.

[^1]: <https://martinfowler.com/bliki/ValueObject.html> "Value object"

[^2]:  <https://kotlinlang.org/docs/reference/evolution/components-stability.html#current-stability-of-kotlin-components> "inline class is at Alpha stability level"

[^3]: <https://youtrack.jetbrains.com/issue/KT-11914> "Confusing data class copy with private constructor"
Getting Over Hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-11-03 23:28:15

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### My First Open Source Contribution: Hacktoberfest 2020

My name is Aman Kumar Dewangan, pursuing B.Tech in Electrical Engineering from the National Institute of Technology Raipur. I am a proficient IoT developer, Electronics Enthusiast, Frontend Developer, and Begineer in Cloud Engineering.

### Background

I took CSE as my extra subject in Class 12<sup>th</sup>, hence I have a pretty good knowledge of coding in C++. With the time I learnt the implementation of C++ in Arduino and choose my Area of Intrest as IoT. I further learnt Python during my initial days of college and spent a significant time understanding the concepts of Machine Learning. As time spent I decided to move to Frontend Development and still learning many things related to it. I am familiar with many programming languages like C, C++, Java, Python, JavaScript etc... (!Alert: HTML and CSS are not programming languages.).

### Progress

As I have recently learnt JavaScript and I realised that it is pretty much different from other languages and there is no textual content available on the Internet to explain it easily, so I wrote articles on JavaScript and how learning Javascript can actually become fun. 

### Contributions

1. Adding articles on JavaScript
2. Pulse Oximeter for Calidad Healthcare


### Reflections
It was really enjoying and informational, we get to learn from each other through interaction and learn what mistakes we possibly make while developing something. If possible, I surely wish to participate in it next year as well.
What podcast, article, or media rocked your world recently?
Tags: podcast, writing, devops, googlecloud
Published: 2020-11-03 23:26:51

# What podcast, article, or media rocked your world recently?

For me it was an episode of the **Google Cloud Podcast**, titled [NASA and FDL with James Parr and Madhulika Guhathakurta](https://www.gcppodcast.com/post/episode-242-nasa-and-fdl-with-james-parr-and-madhulika-guhathakurta/). It talks about different challenges that we've faced as humans, the steps that we've taken to understand these challenges, and put forward solutions once we understand the data.

It also talks about very valuable data sets of things that we know very little about, hence we have very little data about. Definitely one of the more exciting Google Cloud Podcast episodes.

You can view it at these places, or wherever you get your podcasts!
* [GCP Website](https://www.gcppodcast.com/post/episode-242-nasa-and-fdl-with-james-parr-and-madhulika-guhathakurta/)
* [Spotify](https://open.spotify.com/episode/02YcUolFVf74LWmi5Kwm7c) (where I listened in)

# What about you?

What rocked your world or made you think recently? Let me, and others know in the comments down below!