teleren/devto huggingface dataset:
Day 14/100 Java
Tags: 100daysofcode
Published: 2022-02-07 14:03:34

Have a great week!

Day 14/100

**Language:**
JAVA

**Time Period Spent:**
2hrs

**Course Taken:**
Udemy: Java Programming Masterclass - Tim Buchalka

**Todays Learning:**
- Reference vs Object vs Instance vs Class
- This vs Super
- Method Overloading / Overriding Recap
- Inheritance
	- Class Inheritance
	- Override Methods
	- Calling Private Methods


**Additional Notes:**
Inheritance is a handy concept in-which we create classes as default templates of other classes and then extend the functionality by just inheriting. I somewhat prefer the inheritance in Java than I do to python, it feels more fluid and easier to define the extension of functionality. As long as we define a constructor to the inheriting class and define the class to extend from the other class, we are set.
Day 13/100 Java
Tags: 100daysofcode
Published: 2022-02-07 14:03:12

Another Productive Day,

Day 13/100

**Language:**
JAVA

**Time Period Spent:**
2hrs

**Course Taken:**
Udemy: Java Programming Masterclass - Tim Buchalka

**Todays Learning:**
	- Constructors
		- Overloading
		- Initialising Constructors
		- Setting Default Values
	
	- Code Challenges
		- Wall Area
		- Point
		- Carpet Cost
		- Complex Operations

**Additional Notes:**
The special use case of a constructor is to initialise the instance of the class. This meaning that we can initialise the values from one instance of the code instead of having to use the setters of a class. All we need to do is introduce the values and then manipulate the data accordingly, depending on what the class is used for.

Identically to methods, constructors also have an override facility. We can also set default values in the constructor without needed to parse any data into the constructor.
VS Code vs. WebStorm: A Comparison
Tags: vscode, ide, beginners, discuss
Published: 2022-02-07 14:03:09

Everyone has a clear IDE preference and lately I've been using both VS Code and WebStorm. Here's why: 

## VS Code

- Free & open-source

- It's customizable, multi-language, fast & lightweight

- VS Code combines modern editing & debugging with code assistance and navigation 

## Webstorm

- Highly comprehensive and intelligent

- Makes running, debugging, and unit testing of Node.js apps easy

- Great code refactoring & auto importing 

## Considerations

- WebStorm gives you the majority of the features you'll need whereas with VS Code, you'll end up installing some extensions manually

- WebStorm has amazing Git merge tools that provide for great visualizations of the Git diff changes, making merging complex changes a whole lot easier

- WebStorm tracks all file changes out of the box & enables the inspection of file histories, directories & rollbacks

- VS Code is lightweight, making it ideal for remote development & fast prototyping 

Tl;dr [VS Code is open-source, fast & lightweight and WebStorm maximizes code inspection and refactoring. ](https://swimm.io/blog/vscode-vs-webstorm-a-detailed-comparison/)

What's your IDE of choice?
Add a Jenkins controller and Jenkins agent node in azure | Jenkins Tutorial | Part VII
Tags: javascript, beginners, tutorial, jenkins
Published: 2022-02-07 13:36:08

{% youtube -NUQhwmhTCw %}

This video is a part of our Jenkins Tutorial series. In this video, Moss(@tech_with_moss), explains how you can set up and add a Jenkins agent controller and an additional azure agent node with a Jenkins controller node example. 

By the end of this video, you will learn 🎫 -: 
🔸 What is the purpose of an agent in Jenkins?
🔸 What is Jenkins controller?
🔸 How does Jenkins agent work?
🔸 How to launch agent via ssh in Jenkins?
🔸 How to add Jenkins agent node controller?
🔸 How to add additional agent node in azure?
Integrating Social Media Accounts with webMethods.io
Tags: video, webmethods, interation, esb
Published: 2022-02-14 12:34:18

---
title: Integrating Social Media Accounts with webMethods.io
published: true
date: 2022-02-07 13:34:06 UTC
tags: Video, webmethods, interation, esb
canonical_url: https://tech.forums.softwareag.com/t/integrating-social-media-accounts-with-webmethods-io/255040
---

_webMethods Developers India presents_

### [Seamless content sharing across multiple social media accounts](https://groups.softwareag.com/e/my4psj/)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjg9j078i7ixh1q62lec.png)
 
[https://www.youtube.com/embed/2BycO67yfWc](https://www.youtube.com/embed/2BycO67yfWc?autoplay=1&feature=oembed&wmode=opaque)

* * *

To get notified for future events join the webMethods Developers India group:

[webMethods Developers India](https://groups.softwareag.com/webmethods-developers-india/)

  <p>Connect with our experts and your peers to learn about all things Software AG and not-to-be-missed trends and technologies for integration, APIs, the Internet of Things, analytics and transformation.</p>



[Visit original post](https://tech.forums.softwareag.com/t/integrating-social-media-accounts-with-webmethods-io/255040)
CSV-File to HTML <table>
Tags: javascript, html
Published: 2022-02-07 13:30:46

## it only takes a few lines of code

I have an Excel generated CSV file with some events...

```plaintext
Date;Event;Location
22.02.2022;Carnival Parade;Cologne
23.02.2022;Yoga for Wimps;Gran Canaria
25.02.2022;Melee fighting for tough guys;Moscow
26.02.2022;Binge Drinking;Munich
```
... which I would like to display within a table element.


![table Element](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9v1crs5texmze58o4qyh.png)

take the file from data Attribute...

```html
<!DOCTYPE html>
<html lang=de>
  <meta charset=UTF-8>
  <title>CSV2Table</title>
  <link rel=stylesheet 
   href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
  <div class=container >
    <h1>CSV File to Table</h1>
    <h3>Events for February</h3>
    <table data-csv=events.csv></table>
  </div>
  <script>
  const CsvToTable = async (tableElement) => {
    try {        
        const req = await fetch(tableElement.dataset.csv, {
          method: 'get',
          headers: {
            'content-type': 'text/csv;charset=UTF-8'}
        });
        if (req.status === 200) {
          const csv = await req.text();
          let myTableArray = csv.split('\n')
          let myTable=`<thead><tr><th>
           ${myTableArray[0].replaceAll(';',
          '<th>')}</tr></thead><tbody>`
          myTableArray.shift()
          myTableArray.forEach((aktRow) => {
          myTable+=`<tr><td>${aktRow.replaceAll(
          ';','<td>')}</tr></tbody>`})
          document.querySelector('table').
           insertAdjacentHTML('afterBegin', myTable)
        } else {
          console.log(`Error code ${req.status}`);
        }
    } catch (err) {console.log(err)}
  } 
 CsvToTable(document.querySelector('[data-csv]'))
</script>
```
Paracetamol.js💊| #47: Explica este código JavaScript
Tags: javascript, beginners, spanish, webdev
Published: 2022-02-07 13:28:38

## **Explica este código JavaScript**

```js
function sum(num1, num2 = num1) {
  console.log(num1 + num2)
}

sum(10)
```

-     A: `NaN`
-     B: `20`
-     C: `ReferenceError`
-     D: `undefined`

Respuesta en el primer cometario.

---
One path to a successful implementation of NaturalONE
Tags: adabas, natural, naturalone
Published: 2022-02-09 10:35:02

---
title: One path to a successful implementation of NaturalONE
published: true
date: 2022-02-07 13:22:52 UTC
tags: adabas, natural, naturalOne
canonical_url: https://tech.forums.softwareag.com/t/one-path-to-a-successful-implementation-of-naturalone/255039
---
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xehxj1xk0r4n33nya7i.png)
 
[https://www.youtube.com/embed/mhjBvte52VU](https://www.youtube.com/embed/mhjBvte52VU?autoplay=1&feature=oembed&wmode=opaque)

Join the Natural Administration team from the Texas Comptroller of Public Accounts and discover how they overcame programmer resistance to successfully implement and thrive using NaturalONE and DevOps. Get tips and techniques as well as real-world samples of architecture, configuration, and implementations.

The Texas Comptroller of Public Accounts successfully implemented NaturalONE in the spring of 2019, deploying the NaturalONE client to 40+ Windows 10 laptops, and upgrading to mainframe Natural V9 a few months later. We had a rocky start and a lot of resistance from senior programmers, but we survived and are thriving – even the programmer with Natural 1.2 mainframe editing experience has made the leap and is editing Natural code in NaturalONE.

Join us as we share our experienced-based insights on the following topics:
- How to get your programming staff to accept the change to NaturalONE
- Overview of TX CPA NDV Architecture for Application Development Life Cycle
- Sample an NDV configuration reference guide provided to NaturalONE users
- Discuss differences between configuration files for NDV batch server and NDV server with the CICS adapter
- How to set up NDV Monitor (NATMOPI)
- Review pre-requisites/restrictions to adhere to for NDV CICS Adapter
- External Security Configuration requirements you won’t want to miss
- How do I DEBUG code in NaturalONE? (Just an overview reference)
- Lessons learned from issues we encountered, so you can have a smoother implementation
- Tips and techniques for using NaturalONE features that highlight the power of the NaturalONE IDE


[Visit original post](https://tech.forums.softwareag.com/t/one-path-to-a-successful-implementation-of-naturalone/255039)
CPS Test!
Published: 2022-02-07 13:21:13

Recently got obsessed with a [CPS Test](https://www.arealme.com/click-speed-test/en/).

It's so hard to score higher than 8 in the [CPS Test](https://www.arealme.com/click-speed-test/en/) without any auto clickers.

My best approach:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nlztbkhcphipfr87m5bi.png)
 
Can anyone do better than 9?
Building an analytics API
Tags: contributorswanted, programming, database, analytics
Published: 2022-02-07 13:17:23

## Looking for collaborators
So, a bit about me before I dive into the title and what I plan to make.
I've been working as a Software Engineer for 3 years now. Initially I was working primarily with backend systems and fullstack engineering projects. But I always had a knack to learn about distributed systems and how they work to manage this big data that we read everywhere about these days. So, I started my journey for a career transition and became a fulltime Data Engineer. This gave me an advantage as I now had a broader domain to contribute to in the projects that I'm working in.

Recently, I've been very fascinated with the advancements in the field of analytics and how important they are to any business in driving decisions. So, I searched a few articles over the internet and came across this term "Analytics API", and while I still don't know much about the subject, it seems like a good place to start as an opensource and fun side project.

The tech stack I'm hoping to use include but not limited to:
 - Golang
 - GraphQL
 - A visualization tool to show results

The vision for the project that I have can be something like this:
 - Identify the existing analytics api solutions and understand how they work.
 - Based on the research, come up with an MVP which includes usage of GraphQL and can be standardized in connecting with different type of data sources.
 - Develop a MVP and try integrating it with a visualization tool (opensource preferred)

If you're someone who's interested in starting a side project, based on data engineering or just analytics, Feel free to reach out to me, here or at [LinkedIn](http://linkedin.com/in/amanjaiswalofficial). 

My github can be found [here](http://github.com/amanjaiswalofficial), although I haven't been very active lately.

I think a project of this size can be done by 2-3 people at max. Irrespective of the contributors, I will definitely get started with it within a week or so, and I'll keep on sharing updates on what I've made.

I wish you a great day ahead anyway :)
And, Happy Learning

P-e-a-c-e :)
Do you need classes in JS/TS?
Tags: javascript, typescript, beginners
Published: 2022-02-07 12:56:00

If you are starting out as a developer, you might run into these conflicting schools of thought: should I write _"functional style"_ with its _"pure functions"_ or go with _"object oriented classes"_?

The answer would be really long and this is going to be just a quick tip.

Beforehand it is important to know that **Javascript** (and consequentially **TypeScript**) is neither _functional_ nor an _object oriented language_. It has elements of both and it breaks important contracts of either. See the last paragraph: _"Only for the curious!"_.

> If you are going to have several similar objects that persist over time (i.e. you keep them around for a long time and you regularly) and have some form of state that you access a `class` is a really good choice. However if you just need to transform an object to another object a `function` is your best bet.

## The symptoms of not needing a class
The feature a `class` is truly giving us is accessing `this` in any of the defined `functions`. When some or more of your class methods do not access `this` and only the parameters passed and they _also_ return the result, then you will need a `function`. Even better if you can make the `function` _pure_ (in other words none of the parameters passed in are mutated)...

### The algorithm to refactor this
1. Find a class method that do not access `this`. Extract it into a method and update the depending methods.
2. Check the class again, if the changed methods no longer access `this`: move them out as well.
3. If every method access `this` you have the real class that is actually managing its own state.

## Only for the curious
The classic example of breaking the _functional paradigm_ is  that on an array `.sort()` method mutates the array, while `.map()` returns you a new array instance. This is inconsistent and creates regular problems.

On the other hand objects created from traditional classes "own" their own functions, while in Javascript you can pass the `function` of an `object` and lose its `this`. You can also bind a `function` to a totally different `object`. There is a lot of frustration voiced when this phenomenon dawns on a developer coming from real object oriented background.

**Questions, mistakes or do you wish examples?** Blogging and learning is a collaborative effort, I need your help to help you. 🤝 Let me know in the comments! Cheers!
Quasar "Nuxt-like" Routing is here!
Tags: vue, javascript, quasarframewor, nuxt
Published: 2022-02-07 12:49:41

Ever wanted auto-routing in Quasar? Kinda like Nuxt?
Well now it's possible with Quasar [auto-routing](https://github.com/ldiebold/quasar-app-extension-auto-routing)

To get started:
```sh
quasar ext add auto-routing
```

And use the generated routes in your `routes.js` file:
```js
import autoRouting from './auto-routing' // 💥

const routes = [
  ...autoRouting, // 💥

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
```

[Find out more on the github repo!](https://github.com/ldiebold/quasar-app-extension-auto-routing)

This is still new, so feedback/PRs most welcome!

## Thank You ktsn...
And a MASSIVE thankyou to the following libraries:
[vue-route-generator](https://github.com/ktsn/vue-route-generator)
[vue-router-layout](https://github.com/ktsn/vue-router-layout)

Quasar Auto Routing is basically just "sticky tape" for these two libraries so 99% of the work is not my own!

That's all for this but before I go remember,

You can build anything...
How to take backup of a database through SSH tunneling
Tags: ssh, database, security, linux
Published: 2022-02-07 12:35:30

> Step by step guide on how to take a database backup through an ssh tunnel

There are situations where we have to take backup of databases that are only accessible via ssh and that can be a challenge if you don’t know the steps. One example of that can be a database only accessible via a jump box (think AWS’s RDS in a VPC only accessible via an ec2 instance, where this ec2 instance has its port 22 open to the world)

> For this tutorial my example setup is like this -

The Database is AWS’s RDS (Relational database system) Aurora within a VPC (virtual private cloud)


![AWS RDS VPC SETUP](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ako6fnds3a9sujw2pz3b.png)

> Step 1: Open a terminal and connect to your database instance via the ec2 instance (or any other server that you have)

```javascript
sudo ssh -N -v -L 9001:[replace with host url for the database]:5432 -i key_file.pem [replace with user for the server]@[replace with ec2/server ip/url]
```
In the above command, we are connecting to the server using the key file and username via port 22 (default), and once that is done, then we are connecting to the database server. In the example above, I am connecting to a Postgres database on port 5432 via my local machine’s port 9001. You can adapt it to the port of your database (3306 for MySQL and so on… ) and any other available port on your local machine.

![Connecting to DB via bastion box](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vnvd3sdiz71qojysfqzg.png)

> Step 2: Open a new tab on the same terminal and run your db backup command over port 9001

```javascript
pg_dump -U [replace with you db username] -v --format=c -h localhost -p 9001 --file=db_backup.psql [replace with your database name]
```
Now you are running commands on your connected database server (and it’s not just limited to taking backups, you can do whatever you are allowed with your database user).

![Running command on the connected db server](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ls9juap989c7pslldc3.png)

Once this is complete you will have a backup file on your local machine 🙌 🎆 🎉
Indecisão e a grande quantidade de tecnologias no mundo Dev. 
Published: 2022-02-07 12:35:05

Se você viu meu ultimo post sabe que sou um Analista de suporte em processo de migração de carreira para a área Dev. 

Atualmente eu possuo conhecimento em redes de computadores, sistemas operacionais e assuntos correlatos, já acostuamdo com resolução de problemas pois já trabalho nessa área há mais ou menos 4 anos. 

Provavelmente tenho entre 7-8 meses estudando programação e tem sido um processo difícil. Dia após dia encontramos novas tecnologias e novas promessas de um mundo incrível com salários altos e produtividade fora do normal com linguagem X e Y e infelizmente eu tenho caído em papos desse tipo nos ultimos meses. 

Tem sido um processo difícil me focar em uma tecnologia durante bastante tempo até que eu fique realmente bom com ela e a cada vez que eu mudo, fico mais distante do meu objetivo. Não tem como conseguir uma vaga de desenvolvedor Jr Sabendo um pouquinho só de java, html, css, ruby, flutter, C#, etc e etc. 

O que acontece é que eu sempre começo super empolgado com uma linguagem e vou esfriando com o tempo. Ao me deparar com uma vaga em determina tecnologia, texto falando sobre ou até mesmo um programador elogiando a tecnologia no twitter eu entro no processo de empolgação novamente e corro para buscar um curso, livro ou tutorial no youtube que ensine aquela tecnologia e um novo ciclo se inicia. 

Já entendo que neste ritmo as coisas não vão funcionar e que preciso deixar de ser generalista e preciso ficar realmente bom em algo. Até porque não sou um generalista que tem conhecimento o suficiente em tecnologia a ponto de construir algo, até agora no meu github possuo pequenos projetos com cada tecnologia que eu estudo, mas nada tão relevante. 

Todos os dias penso no potencial que eu sei que tenho mas que infelizmente não consigo aproveita-lo. Um milhão de dúvidas tomam minha mente no processo de aprendizado de alguma tecnologia justamente porque penso muito no futuro e não consigo aproveitar o processo. 

Após muitas pesquisas e conversar com muitas pessoas da área de tecnologia as coisas vão ficando mais claras e cada pecinha se encaixa no seu devido lugar.

Concluí que o melhor caminho para mim seria seguir com o Java, linguagem que já estudava anteriormente. Sem justificativas, apenas foco. 

Tem funcionado e já me aprofundei mais no Java do que em qualquer outra tecnologia que eu vivia tentando estudar anteriormente. O que funcionou para mim foi segurar aquela empolgação ao ouvir o quão boa é uma tecnologia e quão fácil seria arrumar um emprego com ela fazendo um curso de 30 dias e assim sigo rumo ao meu objetivo. 

Vou ficando por aqui e em breve volto para contar mais sobre meu processo até chegar lá. 

Se você leu até aqui muito obrigado e se tiver algo para me contar, como experiências, opiniões ou até mesmo críticas construtivas podem deixar aí nos comentários. 

Vida longa e prospera. 🖖
Which charities are close to your heart?
Tags: discuss, watercooler
Published: 2022-02-07 12:27:22

---
title: Which charities are close to your heart?
published: true
description: 
tags: #discuss #watercooler 
//cover_image: https://direct_url_to_image.jpg
---

We at Developer Nation have been supporting developers and organisations who help developers, plus other charities close to our heart since 2019. The way we do this is through our donation program during our Global Developer Surveys.

##Who we've supported

Every 6 months we donate $1,700-$2,000 in total to organisations. So far, we’ve supported Black Girls Code, CoderDojo, Electronic Frontier Foundation, Free Code Camp, Mozilla Foundation, the Raspberry Pi Foundation,Techfugees, The Nature Conservancy and Women in Big Data (South Africa).

Last year we kicked off a new way of donating. We gave developers who participated the choice of which organisation (from a list) they wished to support. Each developer taking the survey raised the donation amount by $0.10. 

We're running our survey now, and are supporting the following organisations:

- Code.org
- Free Code camp
- Free Software Foundation
- Girls Who Code
- Greenpeace
- The Nature Conservancy

Which of these organisations would you support? Who else should we consider? 

You can also [take our survey](https://www.developereconomics.net?utm_medium=post&utm_source=dev_to&utm_campaign=charity), discover new tools and make your charity choice.