Alexander Picoli
alexander-picoli.bsky.social
Alexander Picoli
@alexander-picoli.bsky.social
Programador amador desde 1985, profissional desde 2001, e programando java desde 2003.
Quando pensamos em segurança de sistemas, não pensamos na situação em que segurança demais pode ser perigosa. bsky.app/profile/tomg...
My latest cartoon for @newscientist.com

p.s. this week I am on a USA/Canada tour with my new book. Details and preorder links at tomgauld.com
September 15, 2025 at 6:33 PM
Esse vídeo do Porta dos Fundos está simplesmente sensacional www.youtube.com/watch?v=g-m_...
BANDIDO BOM
YouTube video by Porta dos Fundos
www.youtube.com
September 13, 2025 at 2:08 AM
Pensamento: seria muito legal ter um apoia.se, patreon, etc, diluído: Eu gostaria de contribuir um valor mensal, distribuído para vários projetos: são 5 reais aqui, 10 reais ali, 5 reais naquele outro, 5 reais em outro , outro , outro, quando você viu, você está doando metade do seu salário. ...
apoia.se
May 25, 2025 at 2:36 PM
For those who uses Docker on Ubuntu inside the Windows Subsystem for Linux (WSL ubuntu/ etc) at Windows 10/11, it is common to periodically have disk full issues. I'm sharing the gist with the actions I do to clear space and compress the virtual disk. gist.github.com/abmpicoli/43...
February 17, 2025 at 10:05 AM
java.util.concurrent.CompletableFuture is nifty!

bad: sleeping an arbitrary time inside a loop to wait for something.

String action=null;
void submit(String action) {
this.action=action;
}
void doTurn() {
while(action==null) {
Thread.sleep(100);
}
doSomethingWith(action);

}
December 16, 2024 at 2:30 PM
#java Builder antipattern: use inheritance in builders.

Exemple: ABuilder method "withKey(x)" returns ABuilder
BBuilder extends ABuilder with method "withSomethingElse(y) that returns BBuilder.
BBuilder.withKey("opa").withSomethingElse("y") fails to compile: withKey returns ABuilder.
October 25, 2024 at 8:34 PM
#java Builder antipattern: aplicar inheritance em builders.

Exemplo: ABuilder tem método "withKey(x)" para gerar objeto A.
BBuilder extends ABuilder e tem metodo "withSomethingElse(y)" pare gerar Objeto.

BBuilder.withKey("opa").withSomethingElse("y") explode, porque withKey retorna ABuilder.
October 25, 2024 at 8:33 PM
Very interesting video by Anton Petrov www.youtube.com/watch?v=XGR_... . Asteroids boils ocean water to 100C(212F). Instead of killing all life, due to a "blender like" effect iron becomes more available, and microbial life blooms.
Evidence of a 60km Asteroid Hitting Earth and Insane Effects That Followed
YouTube video by Anton Petrov
www.youtube.com
October 25, 2024 at 8:25 PM
Acabei de ver o vídeo do Anton Petrov www.youtube.com/watch?v=XGR_... . Um impacto de asteroide bem antes da extinção dos dinossauros ferveu a água dos oceanos: temperatura 100C. Em vez de matar todos os organismos, aquilo aumentou a disponibilidade de ferro, causando um boom de vida microbiológica.
Evidence of a 60km Asteroid Hitting Earth and Insane Effects That Followed
YouTube video by Anton Petrov
www.youtube.com
October 25, 2024 at 8:18 PM
Yesterday I just made a beta-delivery of the (proprietary) framework with a new feature: to allow the user to configure when and what to count with a prometheus counter. I have just tried the beta-release with a real integration, and found, as always, that there is always something missing
#java
October 24, 2024 at 9:22 PM
Ontem fiz um beta-delivery no framework (proprietário): nova feature para inserir de forma configurável pelo usuário métricas prometheus de contagem. Hoje fiz meus primeiros testes com uma integração: e descobri, pra variar, que está na hora de mudar mais coisas no framework. #java
October 24, 2024 at 9:18 PM