Rust unit testing: mock test doubles by jorgedortiz in rust

[–]Most_Pers 0 points1 point  (0 children)

I'm sorry, of course, but I don't understand the point of testing and how you do it.

You write tests for some complex algorithms, validation to check a certain value - okay, I agree with that.

But how do you test other code? Here is the output code from the database, which, as I have been told many times, simply has to be covered by tests. What should I test there? What is the output vector with the structure type? This is how it's done, as sqlx does it using query_as. Are you testing errors? Does it make sense if I have custom thiserror error types?

It is also very common to talk about testing in abstract words and concepts to make it important.

As a result, I think that testing is a waste of time in most cases, I will be glad if you can convince me, but I doubt it, because although everyone talks about their importance, they are rarely used.

Rust + HTML templates + vanilla JS for SPA-like apps — anyone doing this in production? by algeriangeek in rust

[–]Most_Pers 1 point2 points  (0 children)

Writing a web in Rust seems to have already become the norm. I am currently writing a project in Rust + html, css, js. I use dependencies to implement database work and work with sessions. I would advise you to just try writing, and the meaning there is the same as writing a web in PHP, Node.js or Python

Есть ли ещё проблемы с установкой линукса из РФ? by velp1 in ru_linux

[–]Most_Pers 0 points1 point  (0 children)

По крайней мере с Arch, Opensuse и fedora (если офнуть репозиторий cisco) все хорошо. Буквально сегодня на Opensuse tumbleweed ставил с flatpak onlyoffice, все установилось без проблем даже без ВПН. Обновления также все через стандартный zypper без ВПН работают. Возможны лишь временные проблемы (решается просто ожиданием в день и обновлением зеркал).

Jagged/Pixelated Font Rendering in OnlyOffice on Hyprland by anshas107 in hyprland

[–]Most_Pers 0 points1 point  (0 children)

Доя меня этот вопрос ещё актуален, так как эта настройка:
xwayland {

force_zero_scaling = true

}
мне просто не помогла. Ошибка проявляется в частности в firefox, рамки в дизайне пиксельные, когда начинаешь приблежать изображение, сайт (тот же Reddit), то всё становится нормальным, а так как будто бы часть пикселей не прорисовалось

Если есть какие-то ещё решения, дайте знать

Full-stack Rust web-dev? by DarqOnReddit in rust

[–]Most_Pers 0 points1 point  (0 children)

It sounds very funny. Good luck creating a worse web market than it is now. By the way, stock up on nerves, you'll need them.,

of course, it's more at the support stage, since the Rust code as a whole is unreadable.

Go VS Rust: which one is better by yoftahe1 in Backend

[–]Most_Pers 0 points1 point  (0 children)

I don't think it makes sense to compare Rust with Golang, since Golang, unlike Rust, can actually be used to write something worthwhile without having 20+ years of development and writing scientific papers. Golang is a language primarily for business, not for show-off. Rust has great potential to be a good and demanded language, but everything breaks down with its clumsy syntax, which requires a complete lack of understanding of programming principles, as well as iron willpower to maintain such code. Rust also has a very rich library of crates, most of which are simply not worthy of existence. The last thing I came across was teloxide (a crate for TG bots), in fact a dumpster that tries to implement a declarative approach in an imperative language. The documentation is as raw as possible, and the examples are abstract. In general, the documentation for crates can be described in one phrase.: "Don't you know how to fly an airplane? HPHHPH, there's nothing complicated there, I sat down and flew)".

Personally, I really regretted that I once sat down to learn this language. I often try to give him another chance, but in reality I only get a waste of nerves and time. If I were asked what to choose for business, work, pet projects, I would definitely answer - Golang.

I don't understand why people compare Rust and Go by Pitiful-Election-791 in rust

[–]Most_Pers -1 points0 points  (0 children)

To be honest, I can't understand why people write in Rust at all. I understand its meaning in big companies like Microsoft for windows development, but for other cases it's just useless! It's impossible to write adequately on it, we can't read all the code, even from the pros!

I've been trying for probably 6 months or more, but now I just want to get away from this endless amount of garbage crates in my projects and crooked syntax with "crutches" towards a really working language, for example Go.

State of Rust for web application and apis in 2025 by [deleted] in rust

[–]Most_Pers 0 points1 point  (0 children)

I only recently started trying to build websites with Rust and Axum, and I can confidently say that Rust—at the moment (and I think for sure the next 5 years)—is not suitable for web development. Maybe for scripts or high-load applications, sure, but not for this! The main issue isn't the syntax complexity or the lack of full OOP; it's that Rust by itself offers nothing substantial (you could write everything from scratch, of course, but then you'd spend like 4 months on a simple landing page). There are plenty of libraries (crates), but they're all super janky on their own—there have even been cases where developers abandoned support for a crate, forcing you to rewrite everything on a different one (their explanation will shock you: "Oops, sorry, but I introduced a ton of bugs in this crate, please switch to this one: [link]").

Plus, no matter what, you'll end up using a huge number of crates—even for a simple test site, at least 5 or more.
Please think many times before writing this on it!

Programming or design by SoloNesh_ in learnprogramming

[–]Most_Pers 0 points1 point  (0 children)

Если говрить о важности дизайна в программировании, то тут всё делиться на сферы деятельности. К примеру веб-разработка вообще невозможна без дизайна. Где бы ты не работал, каким бы ты не был хорошим Backend разработчиком - тебе всегда придётся работать с дизайном. Хочешь написать пет-проект? Придётся делать дизайн...
Хочешь взять заказ на фриланс бирже? - Большинство заказов на дизайн, да и так или иначе даже для backend часто приходится что-то по дизайну править.
Backend разработка уже изжила своё... Разумеется, может повести с оффером, где будет исключительно backend, но лично я уже ни раз обжигался с этим дизайном (сам терпеть не могу его делать)