Jesús Gómez

Un padre de familia computista
komputilisto
Software Developer
@jgomo3
@jgomo3@twitter.com

'✊

Jesús Gómez boosted:
2025-04-27

Secretary of the Navy Phelan, has "cancelled" the Navy's Climate Action 2030 Plan.
That plan was designed to help the Navy prepare for the now unavoidable security impacts of climate change and to reduce emissions of greenhouse gases.
This action will make the US more vulnerable and less prepared for the security risks of climate change.

stripes.com/branches/navy/2025

Jesús Gómezjgomo3
2025-04-27

@celadevra everything? I believe you, but I couldn't do that unless I learn how to.

Do you have any examples?

Jesús Gómez boosted:
2025-04-27

Canadians using Twitter/X are being bombarded by misleading right-wing posts designed to boost Conservative leader Pierre Poilievre and tarnish the reputation of Mark Carney.

The FT’s analysis finds a growing volume of that misinformation is coming not from Russia or China, but the United States.

ft.com/content/743c1dec-0c5c-4

#tech #canada #cdnpoli #twitter #x #elonmusk #misinformation #cdnelxn #cdnelection

Jesús Gómez boosted:
2025-04-26

Devs sound alarm after Microsoft subtracts C/C++ extension from VS Code forks

lemm.ee/post/62482717

Jesús Gómez boosted:
2025-04-26

Dejo por aquí un par de cosejas para quienes quieran adentrarse en la creación de un videojuego con #Godot

Godot – Compilar la última versión 56k.es/fanta/godot-001-compila

Godot – Texto rollo máquina de escribir 56k.es/fanta/godot-004-texto-r

Godot – Mover nuestro personaje con las teclas ASWD 56k.es/fanta/godot-002-mover-n

Godot – Crear y usar un TileMap propio a partir de varios sprites 56k.es/fanta/godot-003-crear-y

una textura de hierba
Jesús Gómez boosted:
Tom Morristommorris
2025-04-26

about the highlight changes mode. It is very handy. Other text editors should have something like this.

tommorris.org/posts/2025/til-t

Jesús Gómez boosted:
Architecture Newsarchitecture@masto.ai
2025-04-25

Dwell : An Earthship Just Landed on the Market in Taos for $290K dwell.com/article/earthship-su

Jesús Gómezjgomo3
2025-04-25

Teóricamente hablando, modificar un algoritmo recursivo por uno iterativo con la ayuda de una pila es innecesario: estarías cambiando una pila («La Pila», que es la pila de invocaciones o llamadas) por otra (la pila auxiliar del algoritmo iterativo).

Pero en la práctica, estarías cambiando «La Pila» por «El montículo», que tiene todo el sentido del mundo porque normalmente el espacio reservado para «El Montículo» es órdenes de magnitud más grande que el reservado para «La Pila».

Jesús Gómezjgomo3
2025-04-24

@multipara_ You found Gold for me 😃

Thank you!

Jesús Gómez boosted:
mʌɫˈtʰɪpəɹəmultipara_@berlin.social
2025-04-24

@jgomo3 well, there's the entry in sensei's library: senseis.xmp.net/?UrgentPoint
– to sum up, in chinese it's indeed more like "key point", whereas japanese puts the stress on "urgency" (and same in korean).
in a way, chinese might be more specific, while japanese kind of gets straight to the point of the proverb "urgent before big" (which would sound less tautological and more interesting if formulated as "critical before big")

Jesús Gómezjgomo3
2025-04-22

@borkdude Beautiful, thank you!

Tangent: I think this alternative is valid:

```
(defn foo [^bytes x] (String. x))
```

Jesús Gómez boosted:
(λ. borkdude)borkdude
2025-04-22

codeshow: a codesnippet shower in any language, made with !

mccormick.cx/apps/codeshow/
github.com/chr15m/codeshow

Jesús Gómezjgomo3
2025-04-21

@cturnbow

Yes. It is obvious that one should play first what one *must* play and after that what one *should* play. The challenge is to identify what Is what.

In Go culture, I constantly hear: play urgent first and then big/important. This suggests *urgent* is a *must* and *big/important* is a *should*.

I argue that the phrase should be: play first what's *critical* (must) and then *big/important* (should).

Jesús Gómezjgomo3
2025-04-21

In Go (weiqi, baduk), the word "urgent" is used a lot to identify what should be done first.

I wonder if it is an unfortunate mistranslation from Japanese, Chinese or Korean, because I think the most appropriate term should have been "critical" instead.

Jesús Gómezjgomo3
2025-04-10

Firefox was not opening the file dialog:

file:///home/jgomez/Public/blog/firefox-was-not-opening-the-file-dialog.html

Jesús Gómezjgomo3
2025-04-08
Jesús Gómez boosted:
2025-04-08

When building config objects, I've gone back and forth between a simple dataclass with an external validate() function, and a regular class with a validate() method.

Do you have a strong preference for one of these approaches? What's the reasoning?

#Python

@dataclass
class Config:
    target_dir: Path
    target_file: Path    
    
def validate(config):
    ...
    
my_config = Config(...)    
validate(my_config)class Config:

    def __init__(self, target_dir, target_file):
        self.target_dir = target_dir
        self.target_file = target_file
     
    def validate(self):
        ...

my_config = Config(...)
my_config.validate()

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst