teleren/devto huggingface dataset:
What every junior developer should know
Published: 2022-02-18 04:24:12

## Let me get this straight - Every developer is a junior developer all his life.

 *Get this as soon as possible.*

### Now let's talk about the actual junior developer , the people who are just to starting there career in development .
Let's talk about you guys.

- First thing first nobody knows every thing **"nobody"** .

Not even the best dev in your company would know every thing.

So never feel like damn i don't know this , nobody does - just go ahead , research about the task you have been assigned  -  and learn 

- Ask as many relatable questions as you can .
Don't ever feel like by asking many questions your seniors will judge you, they wont.

If i were them i would think of you as a good dev who actually knows when to ask for help because let's get this clear every one needs help at one part or another .

But what you should do is don't just go and ask for help all the time, do your research first.

Try to do it on your own but if you feel like giving up only then ask for help and when you ask for help explain it to them what you did and where do you got stuck.

That will give the seniors a clear idea that you have done a good job by researching a lot and now you are stuck somewhere and needs help.


- Now when you are a junior dev you will be given tasks that are doable by you as per the team so try to solve them by your own first only when you feel like stuck only then go and ask for help.



**Alright now**
Being a junior dev you will be baffled with new and crazy technologies and being a developer you would be so pumped to learn new tech(if you are not , you definitely should ask yourself is this what you want to do in life?)

You will learn a lot of things , you should be open to it - maybe unlearn something to learn new things as done by the company.

I started my first company by only knowing the basics of react , had done some small projects 
and just in one year i learned about 

- Typescript
- Next js
- Flask
- Postgres

all these things and so much more things like patterns , code quality etc.

So try to learn as much as you can and you will be amazed by where you will be even after six months.


**I wish you all the junior dev's best of luck -  i know you will rock .**
Container With Most Water
Tags: beginners, dsa, python
Published: 2022-02-14 19:37:18

##Instructions 
You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

Find two lines that together with the x-axis form a container, such that the container contains the most water.
Return the maximum amount of water a container can store.
Notice that you may not slant the container.

####Example

```python
Input: height = [1,8,6,2,5,4,8,3,7]
Output: 49
Explanation: The max area of water in the container can contain is 49.
```

##Approach

Basically, this problem involves getting the area of a rectangle by multiplying the length and width.
We can initialize a left and right pointer where the left starts at the height[0] and the right starts at height[-1] to maximize the width.
We can then compare the right and left pointers and shift the one with the lowest value to attempt to increase the area by changing the height. We then update the maximum area as we shift the pointers.

##Python Implementation

```python
def maxArea(height):
        left = 0
        right = len(height) -1
        max_area = 0   
        while left < right:
            areas = (right-left) * min(height[left],height[right])
            max_area = max(max_area,areas)
            if height[left] < height[right]:
                left +=1
            elif height[left] > height[right]:
                right -=1
            else:
                right-=1
        return max_area
```
We can also implement the two-pointer approach as follows:

```python
def maxArea(height):
    # start looking from both ends of the array
    l, r = 0, len(height) - 1
    max_area = 0
    while l < r:
        if height[l] < height[r]:
            area = height[l] * (r - l)
    # height at the left is smaller so we should look for the larger heights by moving towards right.
            l += 1
        else:
            area = height[r] * (r - l)
    # height at the right end is smaller so we move towards the left.
            r -= 1
        if area > max_area:
            max_area = area
    return max_area
```

I hope you found this helpful
How to configure an OAuth app in Jira App management and OAuth account in webMethods.io
Tags: webmethods, integration, esb, cloudstreams
Published: 2022-02-23 13:35:18

---
title: How to configure an OAuth app in Jira App management and OAuth account in webMethods.io
published: true
date: 2022-02-18 03:50:14 UTC
tags: webmethods, integration, esb, cloudstreams
canonical_url: https://tech.forums.softwareag.com/t/how-to-configure-an-oauth-app-in-jira-app-management-and-oauth-account-in-webmethods-io/238428
---

## Summary

This article describes how to configure an OAuth app (3LO) in Jira App management, token generation and configuring an account in [webMethods.io](http://webMethods.io) workflow

## Prerequisites

- User must have a Jira Instance and an account created in that instance.
- Working [webMethods.io](http://webMethods.io) tenant.

## Contents

- Create an OAuth App in Jira App management
- Generate an Access Token and Refresh Token using a REST client
- Configuring an OAuth Jira Account in [webMethods.io](http://webMethods.io) workflow

## Steps

Find the step by step guide on how to configure an OAuth app (3LO) in Jira App management in the [original article](https://tech.forums.softwareag.com/t/how-to-configure-an-oauth-app-in-jira-app-management-and-oauth-account-in-webmethods-io/238428) in the Software AG Tech Community.
JavaScript: A Multi Paradigm Language
Tags: javascript, programming, react
Published: 2022-02-18 03:35:12

The JavaScript language is full of paradoxes. It has famously been invented in ten days and is now enjoying popularity almost unique in programming history.

JavaScript’s multi-paradigm nature means you can write imperative, object-oriented or functional code, choosing the right tool for the job and leveraging your previous programming experience. As always, diversity is a source of flexibility and ultimately a strength.
6502 Math and Strings Part I
Tags: opensource, assembly, 6502, assemblylanguage
Published: 2022-02-18 03:15:04

This week I'm working on another assembly program for the 6502, with the conditions that the program:
- Must work in the [6502 Emulator](http://6502.cdot.systems/)
- Must output to the character screen as well as the graphics (bitmapped) screen.
- Must accept user input from the keyboard in some form.
- Must use some arithmetic/math instructions (to add, subtract, do bitwise operations, or rotate/shift)

Almost all of these are new to me in assembly, with the exception of having printed graphics to the bitmapped display, so this should be fun! 

I'll start by breaking down the requirements and getting up to speed on each one so I can then apply them to my program. The first is a given as I'm writing the program directly in the 6502 emulator, so let's dive into the second requirement.

This requirement is twofold - output to the character screen as well as the graphics screen. I've already covered outputting colours to the bitmapped screen [here](https://dev.to/gusmccallum/calculating-6502-execution-time-part-3-4jf1), so the next thing to look into is outputting to the text screen. This can be accomplished in a few ways. 

The first is to manually assign a decimal or hexadecimal value representing each ASCII character to an address. 

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

The second is to use the DCB (Declare Constant Byte) mnemonic to define a string and then assign it to memory.

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

You can also use the CHROUT ROM Routine to output characters to the text screen, which works the same as the last way but without manually assigning and iterating memory locations. 

In the my next post I'll go into the second two requirements and start writing my program.
Nước uống
Published: 2022-02-18 03:00:48

đây là các loại nước uống
shop nước uống
Bạn có biết nước uống được chiết xuất từ màu vàng tươi và thơm của những quả chanh, những lá cam, những chiếc quýt không ngán ngua? Nước uống này có giá trên 50 ngàn đồng 1 lít. Bây giờ bán và phân phát liên tuyện
Một sản phẩm của Nước uống
Nước uống không chỉ đắt tiền mà còn có hại cho sức khoẻ
từ khoảng không truyền là nước uống rộng vùng cùng các đàn ông
Uong nuoc trai cay la mot trong nhung thoi quen sinh hoat tot nhat cho sức khoẻ và hạn chế khả năng mua thêm thức ăn béo (từ tiếng Anh: Fat). Nước ép táo là món ăn có nguồn gốc từ miền Trung Việt Nam. [2] Ấy là món ăn truyền thống được pha chút muôi và tiêu (hoặc còn giúp rượu khan). Người ta dùng nước ép táo vào bua trưa và bua tối;
tất cả mình đem lênđây
Đỏ Chùm Chùm đang chuẩn bị ra mắt các loại nước uống mới và tuyệt vời, như nước thơm ngát, tính năng aspartame, hoàn toàn không có hương thu�?�?c hoa hồng. Đúng lúc vào tháng 5/2018.
Nước uống là các loại nước đó co dung dụng cho con người, và cũng là bom ao3
 Loại nước uống này là món ăn hàng ngày khi nhẹ. Đa dạng các màu sắc
Nước uống là một thành phần tối thiểu và cần thiết để hãy bình tĩnh nhưng không hơn nhiều như ngay càng có thể dân đang sống, vì vậy hãy chú ý đế kiêng khi chọn.
Đây là những loại nước uống hay dùng
Nước uống là nguồn nước do con người sử dụng trong các hoạt động hàng ngày
Tâm Trí Sức Khoẻ chúng tôi tự hào trang bị máy pha nước uống, tạo nguồn nước tinh khiết đã chiết xuất từ máy làm lạnh.
nước uống tố âm là những thứ hạt nhân như đã phân tách khỏi các quán lính ráp bán gói nước ngâm trong chép. Các loại hạt nhân này có mùi và vô dư béo, nhanh chíu dưới áp suất và không có ảnh hưởng đến số pH đưa ra làm phòng ngũ khác Bicarbonate có thể ức chăng bao quanter bao giờ đang đóng thành phần tuvien hoan:
Những sản phẩm nước trái cây Dưỡng 100% tuyệt đối không chất bảo quản, dùng các nguyên liệu có nguồn gốc từ nhà xuất khẩu uy tín. Thường xuyên hãng kiểm tra, đo sô-béo trong quá trình chuyên gia pha chế đem lại món ăn thơm ngon hương và phong phú về dinh dư���ng.
https://tiensinuoc.com/product-category/nuoc-chai-350ml/	https://tiensinuoc.com/product-category/thuong-hieu/bidrico/	https://tiensinuoc.com/product-category/thuong-hieu/evian/
The Challenges of iOS Development for Android Developers
Tags: ios, android, swift, swiftui
Published: 2022-02-18 02:54:36

A little background on me. I've been an Android developer for the last 10 years, and in the last 2 years started diving into iOS development (mostly using SwiftUI) as well. Something that has stood out to me in the difference between developing on these two platforms is the community. 

On android the platform is somewhat more chaotic in terms of API's changing very frequently and not always working as expected, but you know that you'll most likely be able to find a solution to any problem you run into or at-least find help. iOS on the other-hand seems to have much more stable API's but finding examples of how to solve seemingly simple problems is a nightmare more often than not. 

Another great thing about how Android's API's are maintained: If I run into a bug or want a feature I can simply file a bug/feature request directly with google, and I know one of their developers will see it and at least read it. That's way more than I can say for Apple. If I have an issue or feature request I have literally no idea where to take it (let me know if there is a place). 

Another massive difference between the two platforms is that on Android if I run into an issue that is very difficult and maybe no open source solution exists, I can simply look at the source code for every API and figure out exactly how it works, and maybe even extend it. On iOS this is not the case, all you get are header files. This is a very rough change especially since many times the iOS API documentation from apple can be cryptic and/or confusing. 

I don't mean this post to be purely iOS bashing, since in a lot of ways iOS development is great, but I do think that there needs to be a better community around iOS. Why is it that it's so hard to find documentation on solving seemingly simple things. Really by far the best resource I've found is [hackingwithswift.com](https://www.hackingwithswift.com) if it wasn't for this site I'd certainly be lost. 

I'm curious if this is a common perception from other developers or if I just haven't found the right place to find information yet. In the future I intend to write some posts on solutions I've come up with for seemingly common use cases in iOS since there seems to not be too many examples online outside of [hackingwithswift](https://www.hackingwithswift.com)
Configuring AWS SSO
Tags: sso, terraform, aws
Published: 2022-02-18 02:31:41

Terraform provides several resources for configuring AWS SSO across an organization. Once the service is enabled, you will need to define an identity source. This can be using the built-in directory service, active directory, or any external identity provider with SAML integration. At this time of writing, [identitystore](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Operations.html) doesn't have a fully fleshed out API, so you will have to configure this manually.

However, once the identity store is configured, it can utilize those pushed or self-created users and groups and assign permission sets to accounts.

### Get SSO Instance ID and Identity Group Via Lookup

```terraform
data "aws_ssoadmin_instances" "this" {}
data "aws_identitystore_group" "this" {
  identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]

  filter {
    attribute_path  = "DisplayName"
    attribute_value = var.group_name # Fill in the group you defined
  }
}
```

### Create a Permission Set to Define Accounts

```terraform
resource "aws_ssoadmin_permission_set" "this" {
  name             = var.policy_name
  description      = var.policy_description
  session_duration = "PT12H" # Set this duration to the time you desire
  instance_arn     = tolist(data.aws_ssoadmin_instances.this.arns)[0]
}
```

### Define Policy For Permission Set

##### Managed Policy

If you have a list of managed polcies you'd like to attach, you can loop over and attach them indiviudally.

```terraform
resource "aws_ssoadmin_managed_policy_attachment" "this" {
  for_each           = toset(var.managed_policy_arn)
  instance_arn       = tolist(data.aws_ssoadmin_instances.this.arns)[0]
  managed_policy_arn = each.value
  permission_set_arn = aws_ssoadmin_permission_set.this.arn
}
```

##### Inline Policy

```terraform
data "aws_iam_policy_document" "sample_bucket_read" {
  statement {
    sid = "0"
    actions = [
      "s3:GetObject"
    ]
    resources = [
      "arn:aws:s3:::sample-bucket/*"
    ]
  }
}

resource "aws_ssoadmin_permission_set_inline_policy" "this" {
  inline_policy      = data.aws_iam_policy_document.sample_bucket_read.json
  instance_arn       = aws_ssoadmin_permission_set.this.instance_arn
  permission_set_arn = aws_ssoadmin_permission_set.this.arn
}
```

### Apply the permissions sets to Accounts

```terraform
data "aws_organizations_organization" "this" {}

resource "aws_ssoadmin_account_assignment" "this" {
  for_each           = toset(data.aws_organizations_organization.this.accounts[*].id)
  instance_arn       = aws_ssoadmin_permission_set.this.instance_arn
  permission_set_arn = aws_ssoadmin_permission_set.this.arn
  principal_id       = data.aws_identitystore_group.this.group_id
  principal_type     = "GROUP"
  target_id          = sensitive(each.value)
  target_type        = "AWS_ACCOUNT"
}
```
February 17th, 2022: What did you learn this week?
Tags: weeklyretro, weeklylearn, discuss
Published: 2022-02-18 02:30:08

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![Yoda wooping someone's butt](https://media.giphy.com/media/yDYAHbqe5DfyM/giphy.gif)
</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{%link https://dev.to/devteam/what-was-your-win-this-week-4bb2 %}

<center>

![Little kid making a fist as if to say "Yes!"](https://media.giphy.com/media/6brH8dM3zeMyA/giphy.gif)
</center>
Don’t Overthink It; Typescript Isn’t Scary
Published: 2022-02-18 01:47:21

A few years ago, when I first delved into the world of strongly-typed JavaScript, I absolutely hated it.

Don’t get me wrong, I didn’t hate the concept of it. I didn't mind the sometimes obtuse type errors it spits at you, that it was perceived to be difficult to learn, or even the corporation pushing it. It was the setup process and the excessive configuration necessary at the time that made me want to chew on marbles.

When I have an idea or a project that I want to work on, I just want to...well, work on it! Not configure it. 

Nowadays, with enhancements to build tools ([Vite](https://vitejs.dev/) specifically), that headache, thankfully, is all but extinct.

With a couple of terminal commands, you have a complete Typescript-ready workspace that is not only a joy to use, but it is faster than starting with a basic httpd server and an `index.html` file.

Now that the configuration junk is no longer an issue, you would think you could finally get to work.

Then, it happens… you stumble upon your first type error. When you do, like everyone does, you Google it. 

Suddenly, you are assaulted by blog post after blog post written by people making Typescript seem way more complicated than it really is.

You cower in the corner with tears streaming down your face,  wondering how you could possibly ever memorize all of the [utility types](https://www.typescriptlang.org/docs/handbook/utility-types.html). 

You start to assume everything needs a class decorator for some reason, and you start begging your fellow coders for answers to riddles like, “What the hell is the difference between `String` and `string`?" 

You then kneel and pray to Gozer to make it past your first battle with `any`.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32n1deyggin3r5wsztvk.jpg)

Back up! Slow down! It’s not that complicated. Nine times out of ten, all you need to do is examine your code and ask yourself what you are actually trying to accomplish.

Once you do that, the type, or interface that you need to define will jump out at you. Define it based on what your code is trying to do and go from there.

Before you know it, your code editor will spring to life. You’ll get auto completion, jumping to definition functionality, and documentation for what you’re writing as you are writing it.

Once this miracles occurs, you realize that all of the fear you once had was unfounded. 

You’ll find that when you start small and with the basics, the scary factor of Typescript vanishes and you’re left with an amazing coding experience.

If you can get past the initial projection that Typescript is tough, and just make it easy, you’ll be rewarded.
TypeScript and the Error: Cannot Redeclare Block Scoped Variable <Name>
Tags: typescript, beginners, programming, webdev
Published: 2022-02-18 01:09:00

## Hi, Devs!

Who are getting start in Typescript could face this error: "_Cannot Redeclare Block Scoped Variable Name_" and it means a concept into that language.

Let's see an example:

![Cannot Redeclare Block Scoped Variable Name](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tm7i1cydd7ezfqc9e0j4.png)

**The error is coming because we have a TypeScript feature.** 

1 - The file needs to be declared as a module (exports) with its own scope.
2 - The script into file will be comprehended in a global scope.

The first example is the 2 option. So, how can we solve that? Let's see another example with the export:

![export and create a scope module](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z11861yo286dku95nyom.png)

Therefore, when we use the _export_ it's created a module with its own scope and not shared in global scope.

**Is there other possibility? Yes!** Use [namespace](https://docs.microsoft.com/pt-br/learn/modules/typescript-namespaces-organize-code/3-exercise-single-file-namespace)

```
namespace Greetings {
    function returnGreeting (greeting: string) {
        console.log(`The message from namespace Greetings is ${greeting}.`);
    }
}

```

All the things into namespace it's out of global scope. You can put functions or classes into there.

**Contacts**
Email: luizcalaca@gmail.com
Instagram: https://www.instagram.com/luizcalaca
Linkedin: https://www.linkedin.com/in/luizcalaca/
Twitter: https://twitter.com/luizcalaca
Testei e estou testando tabnine
Tags: brasil, braziliandevs
Published: 2022-02-18 01:08:43

---
title: Testei e estou testando tabnine
published: true
description: Minha opinião sobre Tabnine e Eclipse
tags: brasil,braziliandevs
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nmvhsyvz0lreb98p50h3.png
---

Bom dia, boa tarde e quem sabe a hora que você está lendo isto, mas boa noite...

Bom, aqui quero registrar minha opinião sobre o Tabnine que é um code completion com a inteligência artificial. E esta é a primeira vez que uso isto e sempre procuro me basear com a code completion da IDE mesmo.

Pra quem não me conhece programo em Java a algum tempo, maior parte do tempo não como profissional, e fazem mais de 5 anos. Usava a IDE Netbeans e de uns 2 anos pra cá estou usando Eclipse e recentemente instalei o Tabnine como uma extensão do eclipse.

E decici postar minha opinião sobre a união kkkk.

E sobre esta união nestes poucos dias que estou usando vi que o tabnine é de grande ajuda, mas sabe como é usuários né?? se não reclama de um jeito reclama de outro kkk o que quero dizer com isso é que sinto que ele meio que quer "impor" seu código na frente das opiniões da IDE.

Não que isto esteja errado, mas acho que as opiniões tanto da ide quanto do Tabnine deveriam tentar se mesclar ao invez de estar separado. No link abaixo coloquei o print do codigo que estou fazendo agora com o que estou falando e verá que fica separadinho, mas no meu entendimento deveria ter ambos da ide do tabnine.

[Link foto insta](https://www.instagram.com/p/CaGUMSHLXMvl_fZAvG7oi_BdcKeFbsaFMf5opw0/)

E é isso, você já usou algum AI Code completion?? como o GitHubCopilot?? Comente aqui o que você achou disso.