teleren/devto huggingface dataset:
The Semantic Emptiness of Objects in the If Statement
Tags: java, opensource, programming, productivity
Published: 2022-01-19 03:11:10

## Philosophy
A semantic emptiness is a key concept used to indicate the absence of a value. Even if an object is not actually referenced as `null`, it can be considered `null` if it is semantically filled with empty values.

### In the beginning there was...
You had to convert an empty value to `null` to persist it in a database. Also you had to convert `null` to an empty string to display it in a GUI or something elsewhere like Stream or Writer. If you don't want to use `null` at all, you had to write a code to getting default value/object. like this:

```java
if (value != null && value.length() <= 0) {
    entity.setValue(null);
} else {
    entity.setValue(value);
}
```

or

```java
entity.setValue(value == null || value.length() <= 0 ? null : value);
```

### Okay, That's totally fine. But how about this?
```java
entity.setValue(Nullify.of(value));
```

in some cases, you might want to use empty string(`""`) instead of `null`:

```java
Nullify.toString(value);
```

### Further, checking for semantically empty
```java
if (collection == null || collection.size() <= 0) {
    collection = Arrays.asList("default_value");
} else {
    boolean isSemanticallyEmpty = true;
    for (String value : collection) {
        if (value != null && value.length() > 0) {
            isSemanticallyEmpty = false;
            break;
        }
    }
    if (isSemanticallyEmpty) {
        collection = Arrays.asList("default_value");
    }
}
```

above code can also be replaced with:

```java
Nullify.of(collection, Arrays.asList("default_value"));
```

## Conclusion
If you're tired of writing code that checks whether a value is semantically empty or not, you can use [Nullify](https://github.com/silentsoft/nullify).

{% github silentsoft/nullify %}
How to get a job programming in Julia?
Tags: machinelearning, julialang, julia, datascience
Published: 2022-01-19 15:18:44

---
title: How to get a job programming in Julia?
published: true
date: 2022-01-19 02:52:23 UTC
tags: machinelearning,julialang,julia,datascience
canonical_url: https://towardsdatascience.com/how-to-get-a-job-programming-in-julia-7f24a2ee563f
---

[![](https://cdn-images-1.medium.com/max/1600/1*eg-x0402hJatANCTGY2SeA.png)](https://towardsdatascience.com/how-to-get-a-job-programming-in-julia-7f24a2ee563f?source=rss-2c8aac9051d3------2)

Tips to get hired programming with the Julia Language

[Continue reading on Towards Data Science »](https://towardsdatascience.com/how-to-get-a-job-programming-in-julia-7f24a2ee563f?source=rss-2c8aac9051d3------2)
#20 - Sort Numbers CodeWars Kata (7 kyu)
Tags: javascript, webdev, tutorial, programming
Published: 2022-01-19 02:03:08

##Instructions

Finish the solution so that it sorts the passed in array of numbers. If the function passes in an empty array or null/nil value then it should return an empty array.

**For example:**
> solution([1, 2, 10, 50, 5]); // should return [1,2,5,10,50]
> solution(null); // should return []

---

##My solution:

```javascript
function solution(nums){
  return nums !== null ? nums.sort((a,b)=> a-b) : [] 
}
```
---

##Explanation
I returned a value using a conditional, if the nums array isn't null it will sort the nums array using a comparison function, it will rest a-b so it returns the nums array sorted correctly and if the element is null it will return an empty array

---

**Did you like this solution? 👇🤔**

[My Github](https://github.com/Cesardlr)
[My twitter](https://twitter.com/cesar__dlr)
[Solve this Kata](https://www.codewars.com/kata/5174a4c0f2769dd8b1000003)
Memilih versi PostgreSQL di production
Tags: postgres
Published: 2022-01-19 01:54:37

Ini merupakan cara yang saya gunakan ketika akan menginstall PostgreSQL di production.

## Mode cepat
Memilih PostgreSQL 1 versi di belakang.
Contoh:
Di awal tahun 2021, PostgreSQL yang terbaru ada di versi 13.
Jika akan menginstall PostgreSQL di waktu itu maka versi yang diinstall versi 12.

## Mode reguler
Mendata resource yang dimiliki, kebutuhan kemudian membandingkannya dengan fitur yang dimiliki PostgreSQL yang paling mendekati
Contoh:
Di awal tahun 2021, server yang disediakan memiliki processor 16 core. Saat memilih versi, maka dipilih versi yang bisa menggunakan processor semaksimal mungkin (misal paralel query). Jika kita mengecek featurematrix di [link ini](https://www.postgresql.org/about/featurematrix/) maka akan diketahui fitur paralel query sudah ada sejak versi 10. Kita memiliki pilihan versi 10, 11, 12, 13, 14. Silahkan Anda pilih dari 5 versi tadi.
Selesai!
Automagically REST and GraphQL endpoints from your Azure SQL database
Tags: javascript, webdev, database, azure
Published: 2022-01-19 01:18:54

I'm pretty sure that at some point of your developer career you have wished - dreamed! - to have **something that could turn your database tables exposed as a REST or GraphQL endpoint, automatically**, just by expressing that intention (maybe via a configuration file or some other conventions).

Such a thing could make your life so much easier and your work more efficient for certain projects.

Well...dream no more, _now there is a solution_ for that and it is free and open source!

And yes, for solution I really mean creating a GraphQL and REST endpoint starting from a database (maybe even from an existing table) without the need to write *any* code at all. 

Curious? Well, I'm sure. So, if you want to go head down to the code and the details, you can just head to this GitHub repo: 

{% github Azure-Samples/azure-sql-db-rest-graphql-directus no-readme %}

where you can create a full-stack / Jamstack end-to-end solution, to store a To-Do list in an Azure SQL database, and present it via Vue.JS, communicating entirely via REST or JSON. 

The sample implementation uses:

- Azure Web App: to run the Directus container
- Vue.Js as front-end client
- Directus to provide GraphQL and REST endpoints automatically from the Azure SQL database
- Azure SQL as database to store ToDo data

[Directus](https://directus.io/) is a Node application you can run in Azure using, for example, a container. Once it is running, you just have to configure which tables you want to expose via REST and GraphQL, configure the permission level (I'm quite sure you don't want to make all your table publicly available) and...nothing else, you're done. Of course, you can do much more, but if you don't need any additional complexity, this is really all you have to do.

You can go from a completely no-code/low-code approach to a more developer oriented one (as I did, for example, in the deployment script, where I also create sample To-Do items via the REST endpoint), so depending on where you are in our career or position, you can decide what is best for you. As a developer I'm just glad that I don't have to write any plubming code anymore (unless I really need to, in that case I may want to use [Prisma](https://dev.to/azure/graphql-rest-with-prisma-and-azure-sql-love-at-first-sight-12ni) or [Dapper](https://dev.to/azure/10k-rps-rest-api-with-azure-sql-dapper-and-json-3me2)).

Aside from the aforementioned GitHub post, you can also learn more about Azure SQL and Directus via this nice blog post that we just published:

https://devblogs.microsoft.com/azure-sql/automatic-graphql-and-rest-endpoint-for-azure-sql-with-directus/

Enjoy! (I surely enjoyed it A LOT!)
100 días de código: 55, he terminado con los estilos de mi pagina de portafolio.
Tags: spanish, webdev, 100daysofcode
Published: 2022-01-19 00:06:14

¡Hey hey hey!

Hoy he terminado con los estilos y las media queries necesarias para mi pagina y realmente me siento satisfecho con como luce. 
Solamente me falta agregarle algunos detalles de transición y algunas animaciones para que el contenido no se vea tan plano  ademas de las imágenes, los proyectos y el logotipo.

Puedes ver una vista previa del sitio en este [link](https://darito97.github.io/portafolio3/).

Habia pensado realizar este proyecto con sass y react pero como es un sitio estático y realmente no es un gran proyecto preferí realizarlo con **html y css** y asi comprobar que mis habilidades base no se han atrofiado por aprender otras.

Si tienen alguna recomendación o algún problema con la pagina les agradecería que me comentaran.

¡Adiós mundo!
Can a "feature factory" be "Agile"?
Tags: agile, cleancode
Published: 2022-06-18 19:48:00

---
title: Can a "feature factory" be "Agile"?
published: true
date: 2022-01-19 00:00:00 UTC
tags: agile,cleancode
canonical_url: https://jhall.io/archive/2022/01/19/can-a-feature-factory-be-agile/
---

You may have heard the term “feature factory” thrown around in certain circles. It’s usually a derrogatory term meant to convey a team, or company, that focuses on building as many features as possible, as quickly as possible, rather than focusing on business outcomes or customer demands.

It is probably assumed that those concerns (business outcomes and customer demands) are handled at a different level of the organization.

To some degree or another, it’s likely that many of you have worked on a team that could be described this way. Maybe you worked on a Scrum team, where the backlog was defined by a BA outside the team, and the team was only measured on metrics such as story point velocity.

So can such a team, a “feature factory”, be “agile?” If you find yourself on such a team or in such a company, and you want to be more agile, is there any hope for you?

My simple answer: Yes and no.

Let’s start with the “no” part because that’s pretty straight forward. The [Manifesto for Agile Software Development](https://agilemanifesto.org/) contains four values, one of which is:

> Customer collaboration over contract negotiation

If your team never interacts with customers (as is typical among “feature factories”), it is impossible to engage in customer collaboration.

A second likely casualty in such factories is “Responding to change over following a plan”, as the feedback cycles are often so large (months in length) that often all you, as the implementation team, has access to is a (possibly outdated) plan in the form of a backlog.

So if that’s the bad news, is there good news?

There’s still room for local optimization of agile processes. Even if you don’t have direct access to customers, and even if you’re required to build features out of context, you can still strive for technical excellence, and technical agility.

You should still be able to [retrospect](https://jhall.io/posts/great-habits/), and pursue technical excellence, design software according to SOLID principles, [WET/DRY](https://jhall.io/archive/2021/11/13/staying-dry-in-a-wet-codebase/), use [TDD](https://jhall.io/posts/tdd-roi/), [trunk-based development](https://jhall.io/archive/2021/03/10/a-case-for-trunk-based-development/) and [Continuous Deployment](https://jhall.io/posts/benefits-of-cd/).

The sad part is that: even if you achieve technical excellence in all of these areas, you may still be efficiently shipping technically excellent, but utterly meaningless features. At the very least, it will be good experience, and may help land a better job, at a more holistically agile organization in the future.

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
🚀 Angular 13 + ESLint, Material + Transloco + Jest, TestCafe + Docker + Prettier 🚀
Published: 2022-01-18 23:29:37

This is an Angular 13 Starter with Material, Transloco, Jest, Compodoc, Docker Support, ESLint & Prettier

**Project**
https://github.com/wlucha/angular-starter

## Features

✅ [Angular 13](https://angular.io/)
✅ [Angular Material](https://material.angular.io/)
✅ Unit Testing with [Jest](https://jestjs.io/)
✅ End-to-End Testing with [TestCafé](https://testcafe.io/)
✅ Internationalization with [Transloco](https://github.com/ngneat/transloco)
✅ Auto documentation with [Compodoc](https://compodoc.app/) 
✅ Analyse your project with [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer)
✅ [Docker](https://www.docker.com/)
✅ [ESLint](https://eslint.org/)
✅ [Prettier](https://prettier.io/)
✅ [Commit Linting](https://github.com/conventional-changelog/commitlint)

## Demo

[![StackBlitz Demo](https://user-images.githubusercontent.com/7531596/83507657-2424e180-a4c9-11ea-8e4f-b3f8e7d6b4c5.png)](https://stackblitz.com/github/wlucha/angular-starter)

## Install / Development

```bash
# Clone the project
$ git clone https://github.com/wlucha/angular-starter
$ cd angular-starter

# Install dependencies
$ npm install

# Start server
$ npm run start

# Open in browser: http://localhost:4200
```

## Docker Deployment

```bash
# Build Docker image
$ docker build . -t angular-starter

# Run Docker Container
$ docker run -p 3000:80 angular-starter
```

## Docker Hub

https://hub.docker.com/r/wlucha/angular-starter

## Commands

- `npm run start` - start the app
- `npm run lint` - lint the project
- `npm run test` - run unit tests
- `npm run build` - build the project
- `npm run build:prod` - build the project in production mode
- `npm run build:prod:stats` - build the project in product mode with stats
- `npm run analyse` - analyse bundle with [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
- `npm run compodoc` - generate [compodoc](https://github.com/compodoc/compodoc) documentation
- `npm run changelog` - generate changelog
- `npm run prettier` - format the whole project
Angular 13 + NestJs + NX
Published: 2022-01-18 23:24:10

This is an Angular 13 Starter project with Ngx-admin, NestJs, Nx Workspace, Jest, Cypress, ESLint & Prettier

**Project: https://github.com/wlucha/angular-nest-nx**

## Features

✅ [Angular 13](https://angular.io/)  
✅ [Ngx-admin](https://akveo.github.io/ngx-admin/)   
✅ [NestJS 8](https://nestjs.com/)   
✅ Next generation build system with [Nx](https://nx.dev/)  
✅ Unit Testing with [Jest](https://jestjs.io/)  
✅ End-to-End Testing with [Cypress](https://www.cypress.io/)  
✅ [ESLint](https://eslint.org/)  
✅ [Prettier](https://prettier.io/)  

## Frontend App
The Angular 13 frontend app is based on the [ngx-admin](https://github.com/akveo/ngx-admin) starter kit.  

![image](https://user-images.githubusercontent.com/7531596/148551080-de61fdb5-ffa4-496e-a26b-4bbf9dd35e9e.png)

## Install / Development

```bash
# Clone the project
$ git clone https://github.com/wlucha/angular-nest-nx
$ cd angular-starter

# Install dependencies
$ npm install

# Start frontend server
$ npm run start

# Start backend server
$ npm run api

# Open in browser: http://localhost:4200
```

## Commands

- `npm run start` - Start the ngx-admin frontend app
- `npm run api` - Start the NestJS backend
- `npm run lint` - Lint the project
- `npm run test` - Run tests

## License

MIT License

Copyright (c) 2022 Wilfried Lucha

**Project: https://github.com/wlucha/angular-nest-nx**
Trello tips
Tags: trello, tutorial, tip, productivity
Published: 2022-01-18 22:51:33

##I was passed for a bad situation because I used Trello on the app and web at the same time. What happened? Aaah.. a bad thing!



I write a lot of things on the web version and for some reason, I have opened a card to make modifications to my app too. When I closed the web version I saved it, but after that, I saved my app too, for a pure mistake and as a result, I lost everything. OMG!
I lost a little time looking for a solution for my difficulty, tested some options, but now...


##I can resume this in an only link and share it with you all.


> Using Chrome, install the JSONView Chrome Extension.
> Than you just need open this link:
> https://trello.com/1/cards/hpAcP7IS*/actions?filter=updateCard:desc*
> This hpAcP7IS is used as a exemple, you need look for your card ID.

After that, you'll see actions for each time the description was changed. Now you need to see this changed and chose your version.
How can I look at my card ID?

> Open on web your card and take a code immediately after /c/ as exemple bellow:

https://trello.com/c/**hpAcP7IS/814**-multiple-log-in-credentials


Reference: 
https://help.trello.com/article/783-recovering-the-description-of-a-card-that-has-been-changed
My very first portfolio
Tags: sass, javascript, webdev
Published: 2022-01-18 22:44:01

[Visit](https://hachikoi-the-creator.github.io/index.html)
[Github Code](https://github.com/Hachikoi-the-creator/Hachikoi-the-creator.github.io)
This is my baby, I hate it/love it so much, please leave any kind of feedback I want to become a better dev!
Microsoft announces $68.7 billion buyout of Activision Blizzard
Tags: news
Published: 2022-01-18 22:17:19

This is the **biggest transaction** in Microsoft's history.


Indeed, Microsoft bought [Activision Blizzard](https://en.wikipedia.org/wiki/Activision_Blizzard) which is an industry of video games very well know through many different games like :

- Call Of Duty
- Crash Bandicoot
- Doom
- World Of Warcraft
- Overwatch

And many others...

![Activision Blizzard Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d31w4i57aftjqtisikv3.png)
 
On **18 January**, Microsoft reached an agreement to buy Activision Blizzard for a total of **$68.7 billion**.

Through this buy, Microsoft could be the third biggest industry of video games in the world after Tencent and Sony by adding at Microsoft 400 million monthly players in nearly 190 countries. 
Knowing that Microsoft was early implemented a strategy to compete with PlayStation by the marketing of [Xbox Game Pass Ultimate](https://www.xbox.com/fr-FR/xbox-game-pass) since August 2019.


![Xbox and Activision Blizzard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xafecucuowl9u52brbpf.png)

> The Xbox Game Pass Ultimate gives a catalog of 100 free games (and much more with the buy of Activision Blizzard) for only $15 by month at gamers of Xbox and PC.

To conclude, with this buy Microsoft could be a reference in the world of video games and could also turn more to metaverse platform development who would be the future of video games according to [Satya Nadella](https://en.wikipedia.org/wiki/Satya_Nadella).


<a href="https://www.buymeacoffee.com/tykok"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a sushi&emoji=🍣&slug=tykok&button_colour=5F7FFF&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00" /></a>
Asignar alias a nuestra cuenta de AWS
Tags: aws, iam
Published: 2022-01-18 21:24:15

He visto  que varias personas aun no conocen esta función de IAM en AWS; qué me parece util para todos.

Cada cuenta de AWS tiene un identificador que una de sus funciones es servir para la autenticación en la consola de los usuarios que no son root.

![Autenticar]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/autenticación.png)

Este identificador es un numero de 12 dígitos que debemos colocar cada vez que nos vamos a autenticar (como usuario no root o IAM), sin embargo en algunas ocasiones se nos dificulta recordar estos 12 números. 

Con el objetivo de no tener que recordar estos 12 dígitos AWS nos proporciona un mecanismo de asignación de alias a nuestra cuenta por medio de la consola de AWS.

1.Para esto buscamos el servicio IAM en la consola (Menu **Dashboard** de IAM). En la parte derecha de la pantalla vamos a ver:

![Alias]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias.png)

2.Damos click en editar.

![Alias]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias%20editar.png)

3.Ingresamos el alias.

4.Ahora cuando queramos acceder nuevamente a nuestra cuenta AWS con un usuario IAM o no root podemos utilizar la url creada o colocar el alias al momento de autenticarnos (Primera Imagen del Post).

![AliasURL]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias%20url.png)


Me pueden encontrar en

[Camilo Cabrales](https://www.linkedin.com/in/camilo-cabrales-31a0bb53/)
Asignar un alias a nuestra cuenta de AWS
Published: 2022-01-18 21:18:23

He visto  que varias personas aun no conocen esta función de IAM en AWS; qué me parece util para todos.

Cada cuenta de AWS tiene un identificador que una de sus funciones es servir para la autenticación en la consola de los usuarios que no son root.

![Autenticar]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/autenticación.png)

Este identificador es un numero de 12 dígitos que debemos colocar cada vez que nos vamos a autenticar (como usuario no root o IAM), sin embargo en algunas ocasiones se nos dificulta recordar estos 12 números. 

Con el objetivo de no tener que recordar estos 12 dígitos AWS nos proporciona un mecanismo de asignación de alias a nuestra cuenta por medio de la consola de AWS.

1.Para esto buscamos el servicio IAM en la consola (Menu **Dashboard** de IAM). En la parte derecha de la pantalla vamos a ver:

![Alias]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias.png)

2.Damos click en editar.

![Alias]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias%20editar.png)

3.Ingresamos el alias.

4.Ahora cuando queramos acceder nuevamente a nuestra cuenta AWS con un usuario IAM o no root podemos utilizar la url creada o colocar el alias al momento de autenticarnos (Primera Imagen del Post).

![AliasURL]
(https://raw.githubusercontent.com/cecamilo00/posts/circleci-project-setup/iam%20-%20alias%20url.png)


Me pueden encontrar en

[Camilo Cabrales](https://www.linkedin.com/in/camilo-cabrales-31a0bb53/)
How a hacker, a hustler, and a designer made RSS feeds cool
Tags: podcast, techtalks, webdev, startup
Published: 2022-01-18 21:05:29

Building a platform that 100,000 devs use every day is no accident, but it can happen (almost) overnight. 

[Daily.Dev](https://daily.dev/) is the fastest growing online community for developers to stay updated on the hottest developer news, and their mission is to build the home page that every developer deserves.

It pulls together and rewards dev-focused content from 400 sources – letting its users vote on which ones they find the most useful, the most interesting or the most entertaining.

Co-founders Nimrod Kramer and Ido Shamun sit down with me to discuss their mission, the trick to building something that grows itself and why they chose to create a platform that actually makes RSS feeds cool!

{% spotify spotify:episode:2lgAQ3EbDtd3rb86M50v4u %}

## Episode Highlights Include:
* Building the homepage every dev deserves
* Why RSS feeds are still relevant
* The importance of curating dev-focused content
* How to achieve explosive community growth
* Why Nimrod & Ido are excited about [INTERACT](https://devinterrupted.com/event/interact/)

___________________________

***Starved for top-level software engineering content? Need some good tips on how to manage your team? This article is inspired by [Dev Interrupted](https://devinterrupted.com/podcasts/) - the go-to podcast for engineering leaders.***

*Dev Interrupted features expert guests from around the world to explore strategy and day-to-day topics ranging from dev team metrics to accelerating delivery. With new guests every week from Google to small startups, the Dev Interrupted Podcast is a fresh look at the world of software engineering and engineering management.*

[***Listen and subscribe on your streaming service of choice today.***](https://devinterrupted.com/podcasts/)

![Our Favorite Podcasts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5o5jcxrgw6ecv2xzavu.png)