Gobbel2000

joined 7 months ago
[–] Gobbel2000@programming.dev 5 points 7 months ago (1 children)

When you import circles in the test file (even if you only select circles_area) the circles file basically gets executed from top to bottom to run all definitions at the point of the import statement. This executes your for loop which fails, and the actual tests are never run. Just remove that loop in the circles module, and it should work.

[–] Gobbel2000@programming.dev 9 points 7 months ago (2 children)

Huh? Hexagonal Architecture?

[–] Gobbel2000@programming.dev 23 points 7 months ago (3 children)

Natürlich! Wo sollen Erdnüsse sonst herkommen, wenn nicht aus der Erde?

[–] Gobbel2000@programming.dev 7 points 7 months ago (1 children)

While there certainly is some overlap, Python is a scripting language and not a shell language. Some tasks that involve calling lots of different programs and juggling input and output streams are much easier done in bash than in Python.

[–] Gobbel2000@programming.dev 29 points 7 months ago (1 children)

This blog post goes into some specifics of Rust reusing Vec allocations and some of the consequences. I think it's really worth a read to better understand Vecs. From what I understand, it is possible that Rust will reuse the allocation of vec_a in your case, but it ultimately is quite complicated.

[–] Gobbel2000@programming.dev 3 points 7 months ago (6 children)

I won't argue with you that bash is janky and easily insecure, but what shell language do you think should replace bash?

[–] Gobbel2000@programming.dev 15 points 7 months ago (1 children)

Jon Gjengset on Youtube is doing live coding where he uses neovim quite well. And you'll learn about Rust while you're at it.

[–] Gobbel2000@programming.dev 39 points 7 months ago (2 children)

I'm just glad that type inference can improve this sort of situation a bit:

ConfigManager configManager = new ConfigManager();

[–] Gobbel2000@programming.dev 2 points 7 months ago

I (luckily) haven't had much experience using autotools, but I do suppose it was no coincidence that the injection was initiated there. I really like the comparison that was made in the post of the Meson maintainer you linked:

Several "undefeatable" fortresses have been taken over by attackers entering via sewage pipes.

view more: ‹ prev next ›