teleren/devto huggingface dataset:
50 Shades of Gray - Are Standups Good or Not
Tags: beginners, management, organisation
Published: 2021-10-30 12:32:03

---
title: 50 Shades of Gray - Are Standups Good or Not
published: true
date: 2021-10-03 14:29:46 UTC
tags: beginner, management, organisation
canonical_url: https://alexandrubucur.com/tech/2021/50-shades-of-gray-are-standups-good-or-not/
---

I’ve noticed that a few articles are arguing about how useful standups are or aren’t on a day-by-day basis, making it a white or black decision. But the situation is a bit more complicated than that.

To make it clear, I **100% agree** that if your standup is a quick recap of _Alex is working on feature X_ and _Bob the sailor man_ is working on feature Y, tasks that are in your task management system then it brings **zero value** to the table.

But it doesn’t need to be that way and I’ll try being the devil’s advocate.

- You don’t need to do standups if your team/squad/cell/happy family is all spread across the world.

  It should be possible to better isolate projects and have smaller 3–5-man team in each time zone (+/- 2 hours)

- Check a standup’s team composition, you might not need your managers.

  Call them Morning Sunshine Chat, or Brainfart Session, or whatever name you want.
  Why might you ask? Because it’s good to have engineers staying together for a few minutes, rant off about what they’re bothered about and increase the team cohesion. This might sound like a cliche (and it is) but for me, so far interaction with my fellow peers is high on my list of nice things to have.

- It might trigger some unexpected domain knowledge sessions:

  Think of it this way, you might have a perfectly documented system with 100% test coverage and CI/CD, with updated 3’rd party components that magically don’t break anything, or you might admit you had a nice dream and wake up.

  The reason is that the bigger the project, and the varied the feature set, there just might be things that fell between the cracks. That’s normal, there’s no magical fix-it button for a system.

  A quick chat about an engineer’s issues with a task in your sprint/Kanban board/email list/cookie template might just remind somebody else in your team that:

  - They worked on something similar before in the project
  - They worked on something similar before in another company
  - They might want to pair up or offer to pair up. The reason is since they know this is a convoluted piece of code in which 100% test coverage means nothing since you could introduce new exceptions that might or might not be covered by tests.
Guide to starting a quick http dev server from the command line (Python, Node, Ruby, PHP)
Tags: python, ruby, php, node
Published: 2021-10-03 14:08:04

If you are developing in VSCode it's quite typical that you'd be using the live-server extension to spin-up a quick development server. A few reasons sometimes you may not want to use liveserver.

- It injects code into the file running that may create bugs where there is none

- your not using VSCode

- For some reason the extension isn't showing up in the menu making it less convienient

In that case, the command line to the rescure, as there are several one line commands you can run to spin up a quick webserver for basic static file serving from a particular folder. Just navigate to that particular folder in terminal and run this command and now you can see those files served in the browser.

Likely you have one of the following installed or pre-installed on your computer, just run the following commands to see what you have.

- `python -v` do you have pythong installed and what version

- `php -v` do you have pythong installed and what version

- `node -v` do you have pythong installed and what version

- `ruby -v` do you have pythong installed and what version

## Python

```
# If Python version returned above is 3.X
# On Windows, try "python -m http.server" or "py -3 -m http.server"
python3 -m http.server

# If Python version returned above is 2.X
python -m SimpleHTTPServer
```

## Ruby

- If you have ruby installed, first install webrick `gem install webrick`
- then this command will start a server on port 8000 `ruby -run -e httpd . -p 8000`

## Node

- `npx lite-server` will start server on localhost:3000
- `npx http-server` will start server localhost:8080
- `npx serve` will start server on localhost:5000

## PHP

- `php -S localhost:5000` will start a server on localhost:5000

## More

- [This github gist covers even more options for Perl, Erlang and more!](https://gist.github.com/willurd/5720255)
Precisamos Falar Sobre Algoritmos: Pesquisa Binária
Tags: português, python, programming
Published: 2021-10-03 13:32:29

A pesquisa binária é um dos muitos algoritmos de busca, ele recebe como entrada uma lista ordenada de elementos e o elemento que desejamos buscar, se o elemento buscado estiver na lista, recebemos como resposta a posição que aquele elemento se encontra, caso contrário a pesquisa retorna None. É preciso lembrar que pesquisa binária só funciona se a lista estiver ordenada, isso é necessário pois o elemento é buscado de forma ordenada dentro da lista. ex: temos uma lista de elementos dentro de um array [1,2,3,4,5,6,7,8,9,10] e queremos saber se o elemento 8 faz parte da lista, a primeira coisa que o algoritmo faz é partir a lista ao meio e verificar se o elemento é maior ou menor do que o elemento do meio, que seria 5 e no nosso exemplo ele seria maior então todos os elementos para trás seriam ignorados e a busca continuaria do numero 6 em diante.

##Implementação de um algoritmo de busca binária usando Python

```
def pesquisa_binaria(lista, elemento):
    esquerda = 0
    direita = len(lista) - 1
    while esquerda <= direita:
        meio = (esquerda + direita) // 2
        chute = lista[meio]
        if chute == elemento:
            return meio
        elif chute > elemento:
            direita = meio - 1
        else:
            esquerda = meio + 1
    return None 
```
C# 10 features
Tags: ptbr, csharp, dotnet, braziliandevs
Published: 2021-10-03 13:05:02

O Oleg Kyrylchuk fez um post no Twitter muito interessante sobre algumas novidades do C# 10. Vou reproduzir por aqui para registrar.

🎯 **Constant interpolated strings**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oj11zsz3wrndgohz561v.png)
---
🎯 **Extended property patterns**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vki4ceqeh6uucuqpk4f.png)
--- 
🎯 **File scoped namespaces**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aroy4gnunbdx414c7x7o.png)
--- 
🎯 **Global usings**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5c1q34dznn5zvgf8mbce.png)
--- 
🎯 **Assignment and declaration in the same deconstruction**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nn02sw3261drvckn2hw4.png)
--- 
🎯 **Sealed when overriding ToString**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmwn3g8m9ptgpr3ikab1.png)
--- 
🎯 **Record struct and class declarations**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zt6a7b46kv65zom43wmt.png)
--- 
🎯 **Struct vs Record struct**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v7aqeal7c6kkcr3xn2vp.png)
--- 
🎯 **Parameterless struct constructors**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y76k7zj2kyt3ptqanj6e.png)
--- 
🎯 **Lambdas with attributes**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ogscbd8kbgx63kezo8h6.png)
--- 
🎯 **Explicit return type in lambdas**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ncf3nlm12lc3cv2pc4hm.png)
--- 
🎯 **AsyncMethodBuilder attribute applying to the method**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o921ko36z7b7ucudwxd4.png)
--- 
🎯 **Expression 'with' in structs**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/biiur23mz5z5x3ez9qo0.png)
--- 
🎯 **Expression 'with' in anonymous types**
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ae8wog1719w2w5x769rx.png)
             
  

**Referências**
<a href="https://twitter.com/okyrylchuk" target="_blank">twitter - Oleg Kyrylchuk</a>

<a href="https://twitter.com/okyrylchuk/status/1442194858425274369?s=19" target="_blank">All my tweets about C# 10 features in one thread.</a>

Até a próxima!👊
 --- 
> us Now you can support me by buying a coffee
pt Agora você pode me apoiar comprando um café
☕😊👇

<a href="https://www.buymeacoffee.com/leandroats" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41">
Terraform workspace | How to handle Terraform Workspaces - Part 11
Tags: terraform, devops, aws
Published: 2021-10-03 12:54:16

{% youtube mZhRxxg9WwE %}



Terraform workspace is a very logical concept where you can have multiple states of your infrastructure configuration. To put this in simple words if you are running an infrastructure configuration in a development environment then the same infrastructure can be run in the production environment.

The main benefit of terraforming workspaces we get is we can have more than one state associated with a single terraform configuration.

If you have not defined any workspace then there is always a default workspace created by terraform, so you always work in a default workspace of terraform. You can list the number of terraform workspaces by running the command terraform workspace show. Also, you can not delete the default workspace


In this lab session, we are going to see - 

1. What is Terraform workspace?
2. How to create a new Terraform Workspace?
3. How to create multiple Terraform Workspace?
4. How to List all terraform workspace?
5. How to switch between Terraform workspace?
6. How to start an EC2 instance using dev and test workspace?
7. How to delete Terraform workspaces?

How to use Workspaces in Terraform? - https://jhooq.com/terraform-workspaces/
Accessibility Automated Tools - What to Expect
Tags: a11y, webdev
Published: 2021-10-03 12:53:26

There are a few popular tools available for the accessibility testing such as Lighthouse, AXE Tool , and plugins.

Developers and Testers expect that these tools magically help them cover 100% accessibility issues. However, accessibility tools cannot provide you 100% cover from the issues but it can help you to atleast report some % of issues and how to fix them. 

Today we are going to learn the issues automated took can and cannot report:
## Common Tools 

- [Lighthouse](https://developers.google.com/web/tools/lighthouse)
- [Axe tools](https://www.deque.com/axe/devtools/)
- [Keyboard focus Extension](https://chrome.google.com/webstore/detail/nerdefocus/lpfiljldhgjecfepfljnbjnbjfhennpd)
- [ESlint JSX A11y Plugin](https://www.npmjs.com/package/eslint-plugin-jsx-a11y)
- [Color Contrast Analyser](https://coolors.co/contrast-checker/112a46-acc8e5)


|   | Can   | Can't  | 
|---|---|---|
|  alt tags |  Can identify if alt tags are missing |  Can't identify if alt tags are meaningful |
|  Labels |  Can identify if labels are missing & order is incorrect |  - | 
| Color contrast  |  Can identify if color contrast is failing |  Can't identify if color contrast on images and gradient |  
| Focus | -  |  Can't identify if the focus order is correct |  
| Order of Headings | Can identify if order of H1-H6 is correct  |  - | 
| ARIA | Can identify if ARIA tag is missing |  Can't identify if the usage is correct  |  
| Role & landmarks | Can identify if ARIA role and landmarks is missing  | Can't identify if the usage is correct  |  
| Semantic | - | Can't identify if the semantic tags are used or not|  
| Responsive | - | Tools cannot identify if app is not responsive   | 
| Experience  | - | Can't identify if the experience of assistive technologies is similar to non-assistive technologies   |  


The above points are important to understand the scope of automated testing. While using the tools one should be aware 'what' the tools will be testing and do the manual testing of 'what cannot' be tested by tools.


Happy Learning!!
Terraform how to SSH into AWS EC2 instance? - Part 10
Tags: terraform, devops, aws
Published: 2021-10-03 12:52:36

{% youtube kHnK3a6xpv0 %}

Terraform SSH into EC2 instance instruction guide? - https://jhooq.com/terraform-ssh-into-aws-ec2/
How to handle SSH keys in AWS? - https://youtu.be/S5B09dq-jGQ 

While working with the AWS EC2 instance you do not get a Username and password to SSH into your EC2 instance. You have to either generate the SSH keys and associate the public key with the EC2 instance. After that, you need to use your private key to SSH into the virtual machine running in the AWS cloud. 

On similar lines, if you are using Terraform to provision your AWS infrastructure you need to associate the public key with your terraform script and after starting the EC2 instance you need to use your private key to SSH into the EC2 instance.

In this lab session, we are going to perform the following steps -  

1. Generate key-pair(public key, private key) using ssh-keygen
2. Use public key to start EC2 instance
3. Use the private key to SSH into EC2 instance
How to create terraform modules? - Part 9
Tags: terraform, devops, aws
Published: 2021-10-03 12:51:11

{% youtube 9w3ZFBvdVNc %}

Terraform is an IaC(infrastructure as Code) framework for managing and provisioning the infrastructure but have you ever thought of creating only a single terraform configuration file for managing the complete cloud infrastructure.

Well, it sounds insane because if you only have a single file for managing the complete infrastructure then it will grow in complexity as well the line of configuration code will be manifold. That is why terraform introduced a concept of the module that will help you to organize your terraform configuration so that you can re-use the configuration and keep your terraform code more clean and more modular.

In this Lab session, we will create two modules module-1 and module-2. Inside each module, we will install the apache httpd server with each module is having its home page.

Steps for Creating the module - 

1. Create your first module
2. Module structure
3. Calling the module
4. Module best practices
5. Benefits of Modules

Terraform Module instruction guide? - https://jhooq.com/terraform-module/
What are Terraform Dynamic blocks? - Part 8
Tags: terraform, devops, aws
Published: 2021-10-03 12:49:31

{% youtube s-Q5oTVVC_o %}

Terraform dynamic block behaves pretty much the same as for or for-each loop. It not only iterates over the value range but also creates nested dynamic blocks which can be complex.  

Terraform dynamic block usually consists of three elements - 

1. Name of dynamic block 
2. for_each
3. content

1. Name of dynamic block - You can keep the name of the block as per your choice, terraform does not have very strict rules on defining the dynamic block names

2. for_each - Here you need to provide any collection or structural values which can be iterated

3. content - It is a terraform block or body which will be generated for each value of the for-each loop


Terraform dynamic block - https://jhooq.com/terraform-dynamic-block/
What are terraform Provisioners?
Tags: terraform, devops, aws
Published: 2021-10-03 12:41:14

{% youtube xZGO7gYGlQY %}

Terraform provisioners are of three types - 
1. file 
2. local-exec 
3. remote-exec

1.File provisioner - The file provisioner will help you to copy the file securely from the local machine or development machine to the remote Ec2 instance.

2. Local provisioner - The local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource. It will help you to run the shell command onto your local machine instead of the remote EC2 instance. The local provisioners are  

3. Remote provisioner - The remote-exec provisioner invokes a script on a remote resource after it is created. This can be used to run a configuration management tool, bootstrap into a cluster, etc. It will help you to run the shell command onto the remote Ec2 instance of AWS or virtual machine of Google Cloud

▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬ 

1. Terraform provisioners - https://jhooq.com/terraform-provisioner/
2. SSH into terrafrom AWS EC2 instance - https://jhooq.com/terraform-ssh-into-aws-ec2/
Starting off as a UX/UI Designer.
Published: 2021-10-03 12:10:23

Being a designer means you bring things to life, from a thought, into a concept that will actually be used by people you've never met. In this year alone I've seen more designers, most self-taught, confess that this is the best career choice they've made because they enjoy what they are doing. 

I have a developer background, precisely frontend development and in my time, I got introduced to [Dribbble](https://dribbble.com). What an inspirational site! I could see all the trends in design implemented. This is where every designer should start, from inspiration and beyond!. In line with this, here are a few easy steps on how to start off as a UX/UI Designer today.

### 1.GROW YOUR PASSION WITH INSPIRATION
You need somewhere to conduct a study and view trends in the design world. You need motivation to start and competitors to match up to. Find all these on:
 
* [Dribble](https://dribbble.com)
* [Pinterest](https://pinterest.com)
* [Behance](https://behance.com)


### 2.ENROLL IN A DESIGN COURSE
There are a number of sites/online institutions that offer Design courses at a fee or even for free. My personal favorite and recommendation is [Uxcel](https://app.uxcel.com/courses/). They have a great interface, easy to learn with, which means they teach and implement.  


### 3.START OFF WITH A DESIGN TOOL
Every designer has to choose their preferred design tool where they can implement their prototypes.Try [Figma](https://figma.com), [Sketch](https://sketch.com)and [Adobe XD](https://www.adobe.com/africa/products/xd.html). These are the main tools, try each and find your favorite, as for me I love Figma(Very good in collaboration).  


### 4.LEARN, PRACTICE, POST
With the above tools and courses, visit [dailyUI](https://www.dailyui.co), signup, and you will receive daily design challenges to keep you on toes. Post your designs on Behance and Dribbble as much as you can to keep perfecting skills and concepts you've learnt.


### 5.CREATE A PORTFOLIO
A portfolio is like an online resume. Its a webpage that showcases who you are, what tools you have used, processes, experience and previous designs that you have worked on. You can create your portfolio in two ways. One, code it all in HTML, CSS & Javascript or use sites like [Webflow](http://webflow.com),[Quest ai](http://quest.ai) and [Uxfolio] (http://uxfol.io/) to do it with no code.

With that, I believe you are on the right path to getting a role as a Designer, either in interface, experience or even product. Remember, keep on practicing and learning. To making more users happy🥂.


Oh, some bonus sites for stuff you might need in between your journey:[Evernote](https://www.evernote.design), [ui8](https://www.ui8.net), [lsgraphics](https://www.ls.graphics)


>Cheers friends!
Story for a Component With Content Projection
Tags: angular, howto, storybook, contentprojection
Published: 2021-10-03 14:41:50

---
title: Story for a Component With Content Projection
published: true
date: 2021-10-03 12:08:46 UTC
tags: angular,howto,storybook,contentprojection
canonical_url: https://medium.com/@redin.gaetan/story-for-a-component-with-content-projection-68836eff45bc
---

#### Storybook and Angular components

**Context** : Angular 12, StoryBook 6.3.9

Hey, I started to use Storybook and I would Like to share my experience. Here’s the use case. I have a simple component which only use content projection:

```
@Component({
  selector: "adr-label",
  template: `<ng-content></ng-content>`,
})
_export class_ LabelComponent {}
```

Here’s the associated story:

```
_export default_ {
  title: "atoms/forms/label",
  component: LabelComponent,
  decorators: [**componentWrapperDecorator** (LabelComponent)],
} _as Meta_;

_const_ BasicTemplate: _Story_<LabelComponent> = (args) => ({
  moduleMetadata: { declarations: [InputDirective] },
  **template** : `<adr-label>{{ ngContent }}</adr-label>`,
  props: { ...args },
});

_export const_ Default = BasicTemplate.bind({});
Default.args = {
  **ngContent** : "Un label",
};
```

The specificity here is to use a [_componentWrapperDecorator_](https://storybook.js.org/docs/react/writing-stories/decorators)_._ It allows to wrap our component and to pass it some extras like in my case a text content.

You just have to define a template like in BasicTemplate to emulate the content projection and using it like an input.

In the _Default_ args, I add an _ngContent_ arg to set the content of my label. I choose this name “ngContent” because it appears in the controls list and I find it consistent to let know that’s a content projection in this way.

You can see the result here:

[Storybook](https://gaetanrdn.github.io/atomic-design/?path=/story/atoms-forms-label--default)

You can access to the full code here:

[atomic-design/src/components/atoms/forms/label at master · GaetanRdn/atomic-design](https://github.com/GaetanRdn/atomic-design/tree/master/src/components/atoms/forms/label)

### Learn More

- [Story for an Angular Directive](https://dev.to/gaetanrdn/story-for-an-angular-directive-11p4)
- [Logger decorator](https://dev.to/gaetanrdn/logger-decorator-47ob)
- [Install Jest for Angular](https://dev.to/gaetanrdn/jest-and-angular-install-fg3)
- [Angular for everyone: All about it](https://medium.com/@redin.gaetan/angular-for-every-one-table-of-contents-d24232940dd4)
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2021-10-03 12:00:01

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12588a43d6b.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What do you call an idle server?

___A:___ A waiter.
 -->