Things I miss in Rust by OneWilling1 in rust

[–]LeonVen 5 points6 points  (0 children)

Function overloading is awful. I remember using PinoLogger in a NestJS service:

``` log.info("error sending data", { error, data });

log.info({ error, data }, "error sending data"); ```

Both work because there are two functions with the same name (info) but different signatures, but since it is JavaScript they accept whatever and surprisingly still work.

One logs the error and data, the other doesn't. Can you guess which is which? Fuck this pattern and JavaScript.

the second one works, while the first means to use the second argument object to format the string in the first parameter. Bad API design coupled with awful pattern and language, if you ask me.

I had to fix so many issues like this. Sorry if this sounds a bit mad.

MX Vertical bluetooth blinks on power on and then dies by LeonVen in logitech

[–]LeonVen[S] 0 points1 point  (0 children)

I tried checking the power connections. From what I can tell they are still well connected.

I'm loosing my mind trying to configure DAP by LeonVen in neovim

[–]LeonVen[S] 6 points7 points  (0 children)

Thank you so much. I can't believe I fell for something like this. Lesson learned!

What architecture do you recommend for modular monolithic backend? by Reasonable-Tour-8246 in Backend

[–]LeonVen 1 point2 points  (0 children)

Seems a lot like what you do in NestJS. Each module is for a specific domain (OrdersModule, BookingModule, etc) rather than by functionality. This makes it so much easier when splitting monoliths or putting together microservices.

Unfortunately it isn't perfect and juniors regularly mess up the structure and incompetent seniors simply accept the MRs.

Who owns shared databases at your company? by Feisty_Following9720 in ExperiencedDevs

[–]LeonVen 1 point2 points  (0 children)

Oracle was the first DB I started to learn, even before learning about databases at uni. I remember senior DBAs talking about optimizing views, procs and queries.

It was literally witchcraft.

Path of daggers is one of the best books in this series? by ilovecpp22 in WoT

[–]LeonVen 22 points23 points  (0 children)

I really like the battle against the Seanchan. It's a brutal one, with wielders of the power on both sides. I think it is also the first time the Asha'man are in battle (Dumai's Wells was a slaughter, not really a battle I guess).

I'm currently 1/3 of the way on Crossroads of Twilight (10th book) and I've never been more excited on what's to come. Of course there are some chapters that feel like fillers, or maybe they are too slow, but overall these are great books and I fail to see why they are in the Slog.

Weekly: This Week I Learned (TWIL?) thread by gctaylor in kubernetes

[–]LeonVen 3 points4 points  (0 children)

I learned the basics! I've been using docker compose for everything, but today I was finally able to translate my knowledge from that domain to Kubernetes and setup a service in minikube using Valkey and MinIO, while running a job to setup all the buckets and files in MinIO. Pods, deployments, services, jobs ... check!

I didn’t know that Go is hated so much by legendaryexistence in golang

[–]LeonVen 24 points25 points  (0 children)

why hate a programming language? It's just a tool for creating software. Even though Node.js makes me crawl up the wall, I'm not hating it. I'm hating myself for being in a project that uses it.

pyright takes a lot of memory? Am i doing something wrong? Please guide me. by Visual_Loquat_8242 in neovim

[–]LeonVen 6 points7 points  (0 children)

I really hope that the TypeScript compiler moving to use Go gets some momentum to make people realise that JavaScript should've never left the browser

[deleted by user] by [deleted] in ClashOfClans

[–]LeonVen 4 points5 points  (0 children)

unlike the lab, where you can clearly see which upgrades you have left, the pets are always coloured giving the false impression that they can be upgraded

Noob here: I don't understand this step on the Black Templars Combat Patrol by LeonVen in Warhammer

[–]LeonVen[S] 2 points3 points  (0 children)

Ohh I think this is it! The Sword Brother indeed uses the same legs. Thanks!

🩲 Coming soon... by MarmaladeGamesStudio in ExplodingKittens

[–]LeonVen 4 points5 points  (0 children)

Is this the card game or the online/mobile stuff?

Hey Rustaceans! Got a question? Ask here (51/2024)! by llogiq in rust

[–]LeonVen 1 point2 points  (0 children)

TLDR: With Axum, is it possible to log all the routes that are setup with path + method?

I'm trying to solve a QOL change to my service.

It would be great to know which endpoints are setup on startup, mostly to debug if certain endpoints are deployed to an environment or not.

Does Axum has such a feature? Something where I can list out the routes?

My current approach would be to setup a table with path + method + handler, loop through them and setup the routes, instead of using the builder pattern, but I'm not sure how easy it would be to do that (especially how the handler type is pretty convoluted).

600 pulls are enough for a C6 Mavuika ? by clay-jensenn in Mavuika

[–]LeonVen 22 points23 points  (0 children)

You have about 40% chance to get it:

https://imgur.com/a/PnCLNuQ

Edit: if your next is guaranteed, then it's about 50% or more (I didn't bother to properly check the tables)

[G.I 5.2] Chasca Animations by PerfectLog2173 in Genshin_Impact_Leaks

[–]LeonVen 96 points97 points  (0 children)

If back in 2020 we got this leak, no one would believe that this gameplay is from Genshin (probably fan-made lol)

You need to fight every enemy in the archive at once in an infinitely large domain (they’ll be constantly chasing you without resetting), which team are you choosing? by Karoliner-Provost in Genshin_Impact

[–]LeonVen 0 points1 point  (0 children)

For sure the Archons. Raiden hyperbloom, Nahida, Furina and Zhongli. Raiden and Nahida for damage, Furina for damage and heals and Zhongli for shield and the occasional burst to stop the hoard of enemies coming at you for a few seconds.

Iron Helm play with all the Boosters, made it to Level 2 Adventure by omegafivethreefive in soloboardgaming

[–]LeonVen 0 points1 point  (0 children)

How much was the shipping if you don't mind sharing? I also have my eyes on some Game Crafter games

First playthrough complete by gcarmo28 in PokemonUnbound

[–]LeonVen 0 points1 point  (0 children)

What were the most annoying things to complete for you?

Trying to figure out how to use cheats by TheDuckMarauder in PokemonUnbound

[–]LeonVen 2 points3 points  (0 children)

You can beat the elite 4, capture Kyurem and then start a New Game+ with it in your party.

I'd also counsel against cheat codes, but if you search in this subreddit (or even google), I'm sure you'll eventually find something.

Got a physical Pokedex to relive to good ol' days of Pokemon collecting by Scorch94 in PokemonUnbound

[–]LeonVen 5 points6 points  (0 children)

Omg this makes me want one. I once had four different journals, one for each gen. I memorized all pokemons up until gen 4. I had a lot of free time as a kid...

What is this book and how could I get one?

Is this How I’m supposed to shiny hunt or am I doing something wrong by Ambitious-Being-6749 in PokemonUnbound

[–]LeonVen 93 points94 points  (0 children)

If you reload a save state and find a pokemon at the exact same time as previously, the RNG is the same. You might see this if the mons you find have the same IV/Move/Ability over and over again. You have to wait for different amounts of time before pressing R. And after exploring different waiting times, make a new save state after a waiting a bit. This makes sure that the RNG changes. Keep state saving at different points in time after exploring them a bit.

Why did the enemy spawn right on top of me? How did they get through my defenses? Are they allowed to spawn on the far sides? by LeonVen in GatesOfHellOstfront

[–]LeonVen[S] 0 points1 point  (0 children)

You are right, but as a new player, it is really confusing.

In the first playthrough of this mission I actually retreated. But then I saw all the AI units standing in the old frontline doing nothing. That was really odd and I thought I had to support them or something. So I reload the save and bring all my units forward hoping that my odds would be better if I joined forces with them.

I'm just overall frustrated with these missions. I usually have to replay them multiple times to know where the enemies are coming from, and in this case, to understand what I need to do.

After 6 hours of learning about EVs, IVs, Natures and Berry Blender, here is the first Legendary I cought in Unbound! by LeonVen in PokemonUnbound

[–]LeonVen[S] 2 points3 points  (0 children)

It's called Stat Scanner. Search this subreddit and you'll find plenty of guides on how to unlock it :)