development

Quais as diferenças entre modificadores public, private, protected e abstract no Typescript?

Quais as diferenças entre modificadores public, private, protected e abstract no Typescript?

o TypeScript, os modificadores de acesso controlam a visibilidade de membros de classes, como propriedades e métodos. Eles definem quais partes do código podem acessar esses membros. Public: O modificador padrão em TypeScript.Permite que membros sejam acessados por qualquer classe, dentro ou fora da classe em que foram declarados.Exemplo: class Pessoa { public nome: string; // Propriedade pública constructor(nome: string) { this.nome = nome; } public falar(): void { console.log(`Olá, meu nome é ${this.nome}`); } } const pessoa1 = new Pessoa('João'); console.log(pessoa1.nome); // Acessando propriedade pública pessoa1.falar(); // Acessando método público Enter fullscreen mode Exit fullscreen mode Private: Restringe o…
Read More
Desvendando o Futuro do Desenvolvimento de Aplicativos com .NET MAUI

Desvendando o Futuro do Desenvolvimento de Aplicativos com .NET MAUI

No mundo dinâmico e em constante evolução do desenvolvimento de software, a busca por frameworks eficientes e versáteis é incessante. É nesse contexto que o .NET MAUI (Multi-platform App UI) surge como uma verdadeira revolução, proporcionando uma plataforma unificada para a criação de aplicativos nativos que funcionam em diversas plataformas. Neste artigo, vamos explorar as vantagens e inovações que o .NET MAUI traz para os desenvolvedores e como ele pode transformar sua abordagem ao desenvolvimento de aplicativos. O que é o .NET MAUI? .NET MAUI é a evolução do Xamarin.Forms, projetado para simplificar o desenvolvimento de aplicativos que podem ser…
Read More
The long path of JavaScript – from ES6 until today.

The long path of JavaScript – from ES6 until today.

According to a Stack Overflow survey, JavaScript was the most popular language among developers in 2023. JavaScript was initially developed for Netscape Navigator - a web browser that was developed in the middle of 1990s - and now is being used in almost every domain of programming - Web Development, Mobile app development, Game development, Machine Learning and many others. But how did a language which was developed in 10 days by Brendan Eich become so popular? In this article, we will go through the life of JavaScript from ES6, which was released in 2015 and was the second major…
Read More
Automatic retry function with Kotlin flows

Automatic retry function with Kotlin flows

Table of contents Short code example Why use this? My app on the Google play store Resources Programming Android with Kotlin: Achieving Structured Concurrency with Coroutines. Chapter 10 Short code example Here is the code that will allow you to make automatic retries on a flow: fun <T, R : Any> Flow<T>.mapWithRetry( action: suspend (T) -> R, predicate: suspend (R, attempt: Int) -> Boolean ) = map { data -> var attempt = 0L var shallRetry: Boolean var lastValue: R? = null do { val tr = action(data) shallRetry = predicate(tr, (++attempt).toInt()) if (!shallRetry) lastValue = tr } while (shallRetry)…
Read More
Ines Montani at QCon London: Economies of Scale Can’t Monopolise the AI Revolution

Ines Montani at QCon London: Economies of Scale Can’t Monopolise the AI Revolution

During her presentation at QCon London, Ines Montani, co-founder and CEO of explosion.ai (the maker of spaCy), stated that economies of scale are not enough to create monopolies in the AI space and that open-source techniques and models will allow everybody to keep up with the "Gen AI revolution". Montani opened her presentation by asking for a show of hands to identify the open-source users in the audience. The vast majority of the audience raised their hand, easily demonstrating that open-source is ubiquitous ("it would be easier to ask who doesn’t use open-source’"). She pointed out the multiple benefits of the…
Read More
YugabyteDB ♥️ Hashicorp Vault – Fun Times

YugabyteDB ♥️ Hashicorp Vault – Fun Times

I have been working with YugabyteDB for a while now. I am always experiment with yugbayte + (something). Today, its Vault. I have also worked on Vault for a bit and did a a lightening talk earlier this year. That talks was primarily around the data masking. But today, I was exploring the database secret engine. For the uninitiated, Vault provides you with ability to dynamically generate database credentials for your application. It does this by leveraging the simple RBAC SQLs provided by the database engine. It supports variety of databases including Postgres, and YugabyteDB by compatibility. What triggered this…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.