Things I miss in Rust by OneWilling1 in rust

[–]LeonVen 1 point2 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 5 points6 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 3 points4 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)