teleren/devto huggingface dataset:
Global question
Tags: php, programming, csharp, mvc
Published: 2021-06-18 19:17:13

Just wanted to check if theres logic behind all the 'same-based' different tools and versions and frameworks and if this diversity  really is neccessery to complete certain specific jobs, which cannot be accomplished with other (same-language)-software...?
There are so many different branches.... Cannot Imagine they all need to exist....
Error Handling in JavaScript (Golang Style)
Tags: javascript, node, webdev, go
Published: 2021-06-18 19:00:16

In this short article, we are going to see how we can handle error in JavaScript in Golang style.

I am assuming, you have some experience with JavaScript and you are aware of the issues with error handling like throwing an exception to the parent method from try-catch block or chaining multiple then-blocks and implementing logic inside it. These things can easily mess up with the code making it difficult to read.

Golang avoids these type of problems by handling errors/exceptions atomically.

#### Error handling in Golang

```golang
result, err := methodCall()
if err != nil {
  // handle error
}
// do something with the result
```

We can use a similar pattern in JavaScript with the help of a `try-catch` block like this.

```javascript
const getData = async () => {
  try {
    const result = await methodCall();
    return [result, null];
  } catch(error) {
    return [null, error];
  }
}
```

If any error occurs, we are returning the `error` in the second position of the array and the `result` as *null* in the first position.

If there is no error, we are returning the `result` in the first position and `error` as *null* in the second position.

Now we can call the `getData` method then handle the `result` and `error` like this.

```javascript
const [result, error] = await getData();
if (error !== null) {
  // handle the error
}
// do something with the result
```

This pattern of error handling makes it very easy to read and understand the code.

Let me know what do you think about this pattern.

---

> Originally published on [blog.bibekkakati.me](https://blog.bibekkakati.me/error-handling-in-javascript-like-golang)

---

Thank you for reading 🙏

If you enjoyed this article or found it helpful, give it a thumbs-up 👍

Feel free to connect 👋

[Twitter](https://twitter.com/kakatibibek) | [Instagram](https://instagram.com/bibekkakati) | [LinkedIn](https://linkedin.com/in/bibekkakati)


---

If you like my work and want to support it, you can do it here. I will really appreciate it.

<a href="https://www.buymeacoffee.com/bibekkakati" target="_blank">
<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=bibekkakati&button_colour=FF5F5F&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00">
</a>
What was your win this week?
Tags: discuss, weeklyretro
Published: 2021-06-18 18:38:30

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Hey there!


**Looking back on your week, what was something you're proud of?**

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Catching up with old friends... or whatever else might spark joy ❤️ 

---

Congrats on your wins this week!

![Mae Whitman saying "yassss" in front of Fireworks](https://media.giphy.com/media/zBhZiVNNQjfTG/giphy.gif)
Weird rants of a new Devops + Backend engineer 😤 [19 June 21] 

Tags: devops, devjournal, kubernetes, distributedsystems
Published: 2021-06-18 18:38:27

Welcome to the weird notes of a new DevOps and Backend engineer. This is my (quite open) notebook on what was all the stuff I read and learnt. Not necessarily tech, you can just read on and understand what I am rambling on about.

### [19 June 2021]
## Stuff I learnt 📝
- So, the current **opentelemetry** `sentry-exporter` is indeed incomplete right now. I investigated the elastic APM exporter and realised that Sentry one is just not using it's full capabilities yet. You need to run `span.Events()` to get a list of events which can be further converted into `*sentry.Event`.
![Sentry Error](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2bt8zf3hn6xo17nlz7jv.png)
- Also, in the prometheus-operator helm chart, we figured out how to add additional rules without having to "upgrade the chart" without putting in new values in `values.yaml`. Just create a new **PrometheusRule** object as a rule file and the ConfigMaps will auto grab it.
- PS: I am talking about this operator here : [kube-prometheus](https://github.com/prometheus-operator/kube-prometheus)

## Stuff I need to check out tomorrow? 📅
- How do i link a sentry span and a sentry issue.
- Talk with team and refine the requirements because hell no, Sentry is not a logging platform (or I am an idiot)
- Get vaccinated ffs :cry:

## Stuff I want to work some day in future. 🔭
- **IF** I manage to pull this issue linking stuff off, I think I will contribute this to opentelemetry collector exporter. My first cloud native contribution _might_ be on its way idk man.

Thanks for listening to the rant.

Uddeshya Singh,
Signing off.
Progress on Portfolio and Mentorship
Tags: webdev, beginners, javascript, codenewbie
Published: 2021-06-18 18:21:34

Whatsup Guys Mika here!

Back with another post on updates with my progress on how things have been going with my coding journey so far.

I think it would probably be best to try and submit these once a week instead of every other day as it will help me to compile all the information that I have learned over the week in to one post!

So in terms of progress on the portfolio I have been able to come close to make a functional website that I was working on. I was even able to apply some styles and effects in Javascript with the help of some of the community guys at DEV!

So now the website looks a lot more functional, which is progress!

In other news! I told you guys that I was in dire need of a Mentor, someone that can help steer me along the path to become a great developer! Great news I have found someone! Hopefully through this mentorship I will be able to complete more projects and document more things and experiences that I can share with you guys along my journey.

Key thing to take away from this post today is not to give up when you feel stuck.The next day could offer you another chance to tackle that issue, so just simply sleep on it and try again the next day!

Thanks for Reading,
Mika/Malcolm.
Know React, but you've fallen behind?
Published: 2021-06-18 18:16:28

Do you know React, but you've fallen behind on recent updates? I'm looking for 5 React devs who want free 15 min 1:1 Zoom coaching sessions, so I can test out some micro-course content. 

DM https://twitter.com/ozten/ or reply below to sign up.

Please "Heart" this post to spread #reactjs
How to Master Python for Data Science
Tags: datascience, python, machinelearning, programming
Published: 2021-06-18 17:27:04

*Here’s the Essential Python you Need for Data Science*

So you’re embarking on your journey into data science and everyone recommends that you start with learning how to code. You decided on Python and are now paralyzed by the large piles of learning resources that are at your disposal. Perhaps you are overwhelmed and owing to analysis paralysis, you are procrastinating your first steps in learning how to code in Python.

In this article, I’ll be your guide and take you on a journey of exploring the essential bare minimal knowledge that you need in order to master Python for getting started in data science. I will assume that you have no prior coding experience or that you may come from a non-technical background. However, if you are coming from a technical or computer science background and have knowledge of a prior programming language and would like to transition to Python, you can use this article as a high-level overview to get acquainted with the gist of the Python language. Either way, it is the aim of this article to navigate you through the landscape of the Python language at their intersection with data science, which will help you get started in no time.

[**Read the full article**](https://towardsdatascience.com/how-to-master-python-for-data-science-1fb8353718bf)
Recording – Kubernetes 101 – Getting started in the cloud native world
Tags: kubernetes, recording, cloudnative, learning
Published: 2021-07-05 11:26:15

---
title: Recording – Kubernetes 101 – Getting started in the cloud native world
published: true
date: 2021-06-18 16:52:40 UTC
tags: Kubernetes,Recording,CloudNative,Learning
canonical_url: https://veducate.co.uk/kubernetes-101-recording/?utm_source=rss&utm_medium=rss&utm_campaign=kubernetes-101-recording
---

I had the pleasure of presenting this Kubernetes 101 session to the Veeam Community thanks to my work as part of their [Veeam Vanguards program,](https://www.veeam.com/vanguard.html)and a special thank you to [Michael Cade](https://twitter.com/MichaelCade1/) who co-presented with me!

In this session we cover the following with technical details included:

- How have we got here?
- Kubernetes – The Building Blocks
- Policies
- Wrap-up

{% youtube 5HTLPNuVyqY %}

Regards

[Follow @Saintdle](https://twitter.com/saintdle)<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

[Dean Lewis](https://uk.linkedin.com/in/saintdle?trk=profile-badge)

The post [Recording – Kubernetes 101 – Getting started in the cloud native world](https://veducate.co.uk/kubernetes-101-recording/) appeared first on [vEducate.co.uk](https://veducate.co.uk).
One Handed Typing
Tags: keyboards, layouts
Published: 2021-11-09 23:34:12

---
title: One Handed Typing
published: true
date: 2021-06-18 16:47:00 UTC
tags: keyboards, layouts
canonical_url: https://ivans.io/one-handed-typing/
---

A short while back I had a small sports accident and injured my left thumb quite badly, to the point that my left hand needs to be left alone to heal. As a software engineer, this presents a major challenge.

I decided to look into one handed typing layouts. Mechanical Keyboards have been making huge leaps and bounds with hardware and sofware design, and as a corollary folks have gotten VERY deep into ergonomic keyboard layout design and scientific optimization based on biomechanics.

After some initial research, I found two layouts optimized specifically for one handed typing:

1. [http://www.frogpad.com/](http://www.frogpad.com/)
2. [https://www.artsey.io/](https://www.artsey.io/)

Both of these remind me of [ASETNIOP](http://asetniop.com/combinations/) used by the [Ginny](https://www.gboards.ca/product/ginni), but that one is aiming to be a stenographic keyboard for two handed typists.

The community around Frogpad seemed a little less engaged, so I joined the Artsey.IO discord server and started diving into the layout. I picked up a [Boardsource 3x4 macro pad](https://boardsource.xyz/store/5ecc2008eee64242946c98c1) and flashed [Artsey.IO](https://www.artsey.io/)on it.

![](https://ivans.io/content/images/2021/06/boardsource.JPG)

The training is slow, but it's better than not being able to type at all.
Python's Collections Module: defaultdict
Tags: python, codenewbie, collections
Published: 2021-06-18 16:46:33

## Introduction

It won't surprise you if I tell you it is also a `dict` subclass :) 

`defaultdict` container type eliminates the chances to get _KeyErrors_ in case of normal dictionaries while accessing non existent keys.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w9xtcoi8yko4i6u7jkr3.png)
 
Let's see how `defaultdict` works,

### Importing defaultdict

Importing `defaultdict` is same as in case of `Counter` , just make sure about the capitalization.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lxkupqv681ujvilz0wd9.png)

Before, we move ahead don't forget it is a dictionary internally so we can leverage all the methods of built-in `dict` class.

## Using `defaultdict` to provide default values for non-existent keys
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ikkipc2wwj8xiq0g0hkc.png)
We can simplify the above process using a __lambda__ function.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z6fdlbmheftviz9slktz.png)
> 🦜 Moreover, we can also pass the _builtin_ constructor functions as `default_factory` argument.

Here, I have passed `list` which means the default value for any key will be output of `list()` ➡️ empty list
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8kndccl8lr662z3fewoa.png)
 

And that's all for the `defaultdict` container. I hope you are enjoying the series :) If so, leave a like and please comment down below if I've commited any mistake(s)!
Maximum flexibility in Ruby method arguments with the splat operators
Tags: ruby
Published: 2021-06-18 16:40:56

Ruby has got to be one of the most malleable programming languages out there, which is why I like it so much.  
  
Recently I was adding breadcrumbs to a Rails app and wrote a `drop_breadcrumb` method that could be called in a controller or controller action.  
  
I wanted the call site to look like:  

```ruby
class MyController < ApplicationController
  drop_breadcrumb "Home", :home_path, except: :index
 
  def show
    drop_breadcrumb "Profile"
  end
end
```
  
As demonstrated above, only the first argument is compulsory. So I need a method signature that accepts:  

- A single argument for the label
- Two arguments for the label and path
- Two arguments for the label and an options hash
- Three arguments for the label, path and an options hash

  
Ruby has the `*` (splat) and `**` (double splat) operators for just that kind of flexibility! The splat operator allows a method to take a undefined number of arguments and the double splat operators allows an undefined number of keyword arguments.   
  
Combining the two in the method definition will let us pass in any number of arguments with an optional options hash at the end! `args` can be then deconstructed into the individual values we need and we can use `options` like a regular Ruby hash:  
  

```ruby
def drop_breadcrumb(*args, **options)
  label, path = args
  
  ...
end
```

It's always good to bear in mind to only use this level of flexibility when absolutely required as it's not very expressive for a reader. With the right use case though, as demonstrated above, it's a great tool to have in your toolbox!
Day 1/100
Published: 2021-06-18 16:35:43

The main goal of the day was to go through the template for a Sanity blog built with Next.js. 

[Create Next.js Blog with Comments | Sanity.io](https://www.sanity.io/create?template=sanity-io%2Fsanity-template-nextjs-blog-comments)

Time Start: 10:12pm

I started out by going  through the instructions to get the template set up, was pretty easy and all I really needed to do was provide a project name and check the name of the repo for me. Super easy. 

Here is the link to the Repo: [https://github.com/cdthomp1/nextjs-blog](https://github.com/cdthomp1/nextjs-blog)

Now to clone the repo and learn how it works! 

After cloning down the repo, I spent some time going through the folders and files, conecting the dots with where I think things should be to where they actually were. After going some tutoruals I am basically checking for consistancy when it comes to folder structure. After doing so, I wanted to get the local version going. I did some silly mistakes like forgetting to instal my modules and setting my api token for sanity, but after that I was up and running. 

Playing around in the studo, doesn't seem to support markdown from this template. I will need ot explore this later. If I can get that to work, then I can simply add my markdown articles right into sanity with little effort.

Messing around with the comment feature, didn't know I needed to approve them to see them on the front end. A handy security feature that wasn't mentioned in the docs.

Found a tutorual for the template I used (if you were to do it by hand) will need to look at this later: [https://www.sanity.io/blog/build-your-own-blog-with-sanity-and-next-js](https://www.sanity.io/blog/build-your-own-blog-with-sanity-and-next-js)

The studio (at the moment) allows you to set the date of the post to a time in the future, it does not schedule posts for you (which would be cool)

Got sanity to atleast show some sort of code snipets, would like to use prismjs for highlighting, but that might take some more configuirng.

Time end 11:15pm
"RPA for Dummies" Book Review
Tags: books, rpa, automation, review
Published: 2021-06-18 16:25:00

**“RPA for Dummies”** is a book for the non tech guy. He can learn what RPA is and what wonders can it do. In these days, companies try increasing their ROI not only by increasing their sales but also decreasing their cost on goods (Liabilities) by fine tuning their processes. And what is the better way other than **Robotic Process Automation.** 
The term Robotic might look confusing to you, but it is not based on any humanoid or other kind of hardware robot. Opposite to common comprehension, a robot can be a software as well as a hardware. A robot is anything that acts as human and decrease the human effort and human errors. But are robots not prone to error? Yes, they are. But their error is not like human error.
A robot can err and it could be due to some network issue or any other software update etc. But it will never forget a step in a workflow. And if we design a robot while cautiously accounting the system or business exceptions, we can get a lot of benefit. And the benefit from RPA is shown in income statement not after months or years but in weeks. 
To make robots error free we can design their process flow in such a way that when there is any exception or decision-making it asks human to decide. And if AI meets RPA, it’s a magic stick bro! 
We call this stick The Cognitive Automation. The Cognitive Automation can not only learn the processes itself but also create the bots itself. It's truly amazing. 
I would advise you all tech-savy people to read this book and share your opinions.
Free Roblox Player Download in 2021
Published: 2021-06-18 16:20:24

You can play Roblox games when you download the Roblox Player feature. You can use the feature to directly launch all your favorite Roblox games.It also allows you to chat with fellow Roblox users and gives ease of access.

<h2>How to download Roblox Player</h2>
<ol>
<li>Go onto the Roblox website.</li>

<li>Enter your details and log into your account
Once you log into Roblox search for any game of your choice in the search bar.</li>
<li>Now, click on the green Play button.</li></ol>
this, a new pop-up window will appear informing you that Roblox Player is installing.
A secondary window also will open the very first time.
Click on the Roblox option.
Now, the next time when you use the Player option you won’t have to follow the last 2 steps.
Once installation is complete, the game will automatically open via the player.

How to install Roblox Studio
Go onto the Roblox website.
Enter your details and log into your account
Once you log into Roblox search for any game of your choice.
Now, click on the three dots in the top right corner.
After this, a new pop-up window will appear, and select the ‘Edit’ option.
Now, another pop-up will tell you that Roblox Studio is installing.
A secondary window also will open the very first time.
Click on the Roblox option.
Now, the next time when you use the Player option you won’t have to follow the last 2 steps.
Once installation is complete, the Roblox Studio will automatically open.
Project Ideas for NodeJS or  MERN stack applications
Tags: javascript, react, mongodb, node
Published: 2021-06-18 16:13:45

Hey, I self-taught JavaScript, react, node, MongoDB. I had built many small react projects and One MERN stack app but not myself, by following courses, So you can understand, that without getting hand dirty, you will not get confidence in coding, there will be more self-doubt always in my heart. So decided to make a project by myself to remove that doubt from my heart. But now I am not able to decide on what project I can work on. So I am here to get help from my fellas. Can anybody tell me on which MERN project I have to work on. There are many experience coders here, So please give me some ideas to work on.
EDA 101-Using AMAZON QUICKSIGHT without calculation.
Tags: analytics, datascience, aws, visualization
Published: 2021-06-18 15:29:24

It has been 34 days since I  started in AWS Community Builders Program wherein it offers technical training to use AWS services, technical mentoring, networking and free AWS Exam Voucher for AWS different level of certification for details on how to join in [**program and Program FAQ**](https://aws.amazon.com/developer/community/community-builders/)

Picture above: Mount Taal in my hometown -Batangas, active volcano in middle of lake. 


As I continue with the data program, the work of [**Jared Donboch "AWS Location Service: Where my AWS Community Builders at?"**](http://acbmap.humbleg.com/aws/) steer my motivation to conduct Exploratory Data Analysis. Then sent the pdf Quicksight report file to  [**Jason Dunn/Program Manager**](https://twitter.com/jasondunn) and received a (**"Fantastic!"**) replied. ![AWS Community Builder Q2 2021 ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/apoty1dh2wv2cec5i8j2.JPG)

This just a simple start that boost energy to record a [**video walkthrough AMAZON Quicksight**](https://youtu.be/UV6faqeFSm8)

**The motivation problem**

1.) *How many AWS Community Builders Program members are in each region as of Q2 2021*?
2.) *What total AWS Community Builders Members Top "N" by Country each region*?

[**Theoretical background**](https://www.stat.cmu.edu/~hseltman/309/Book/chapter4.pdf) Exploratory data analysis is a critical first step in analyzing the data from an experiment. Here are the three main reasons we use the EDA technique: detection of anomalies, checking the assumptions and determine relationships among the explanatory variables.

Conduct dataset cleaning wherein identify which Country in the region. Then use AMAZON Quicksight to conduct exploratory analysis using univariate. 

[**What is AMAZON Quicksight**](https://aws.amazon.com/quicksight/)?  

1.) QuickSight is serverless and can automatically scale to tens of thousands of users without any infrastructure to manage or capacity to plan immediately. It is also the first BI service to offer pay-per-session pricing, where you only pay when your users access their dashboards or reports, making it cost-effective for large scale deployments. 

2.) Working with Visual Types in Amazon Quicksight offers a seamless display of your data. [**Check the Documentation here**](https://docs.aws.amazon.com/quicksight/latest/user/working-with-visual-types.html) 

**Data insight-The answer**
-*How many AWS Community Builders Program members are in the Top 5 region as of Q2 2021*?
-> There are 1,228 members globally in the Top 5 region with most member  US, South Asia, UK, Southeast Asia, Asia  

-*What total AWS Community Builders Members Top "N" by Country each region*?
->In the demo video set the parameter to Top 20 AWS Community Members around the world. 

Since I use univariate analysis, the result of the Q2 2021 ACB members shows that the program spreads in region and continue to grow. 

Thank you for reading, and feel free to comment below or email if you have an inquiry or need further explanation.