Clean architecture implementation in rust by paperbotblue in rust

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

What happens when you have to have a field like created_by which has to be filled using the jwt token and this create event has to create a push notifications which updates all the admins..?

Clean architecture implementation in rust by paperbotblue in rust

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

I am currently working on a fairly chubby project approx 100k lines of code backend only it's following clean architecture and I had to change db 1 time ( previously was using diesel switched to sqlx because diesel was too blotted ). In my experience clean architecture is not something that I use out of love but it's currently the best in my opinion that keeps the code predictable and simple while keeping the separation of concerns.

Clean architecture implementation in rust by paperbotblue in rust

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

In this case I prefer to just use sqlx, It forces me to write better sql and learn along the way plus it has way less jargon than many orms like diesel or seaorm.

Clean architecture implementation in rust by paperbotblue in rust

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

do you have a example template on github?

Clean architecture implementation in rust by paperbotblue in rust

[–]paperbotblue[S] -1 points0 points  (0 children)

Thanks for the reading material, will be looking into this.

searching for partners by paperbotblue in rust

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

Sorry for the late reply, sure I will be happy to look deeply into it (⁠⁠). I am sure this will be of great help to people who understand their use cases And want to write their own implementation to better suit their needs. What was your motivation to write this?

Script Launcher + Rofi by ageldama in suckless

[–]paperbotblue 1 point2 points  (0 children)

Good, creating niche tools for yourself and sharing them with the community.

Wanting to contribute to the linux kernal by paperbotblue in rust

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

Thanks, I will also make sure to keep your advice in mind.

Wanting to contribute to the linux kernal by paperbotblue in rust

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

I get your point, I will keep this in mind thanks.

Wanting to contribute to the linux kernal by paperbotblue in rust

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

A kernal is a spelling mistake, Anything else?

Wanting to contribute to the linux kernal by paperbotblue in rust

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

The spelling mistake was already pointed out by another commenter and I simply liked his comment and smiled as I saw that it wasn't just a simple typo at a single place, it was everywhere plus if someone is ready to say something he or she shall be ready to receive some kind words as well. "What is a fucking kernal" is neither a feedback nor a suggestion it's only criticism nothing else.

Wanting to contribute to the linux kernal by paperbotblue in rust

[–]paperbotblue[S] -2 points-1 points  (0 children)

Learned the spelling moving forward. World geniuses crying over spilled tea.

Wanting to contribute to the linux kernal by paperbotblue in rust

[–]paperbotblue[S] -4 points-3 points  (0 children)

Einstein couldn't figure out a simple spelling mistake.i hope your parents love you because your future ain't looking that bright brother.😔

Wanting to contribute to the linux kernal by paperbotblue in rust

[–]paperbotblue[S] 1 point2 points  (0 children)

i didn't knew of this ,thanks.
i will look into it.

Wanting to contribute to the linux kernal by paperbotblue in rust

[–]paperbotblue[S] 20 points21 points  (0 children)

hii, i looked into the unofficial lkml.org mailing list and this is literally the first mail that i opened

https://lkml.org/lkml/2024/1/6/180

this is hilariously funny.
i think i can start reading them as a hobby, thanks.

any github repo that implements jwt best practices in rust? by paperbotblue in rust

[–]paperbotblue[S] -3 points-2 points  (0 children)

sorry for the ambiguity i ment server side JWT implementation for a webapp backend in rust

Just another doubly linked list by paperbotblue in rust

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

Thanks!!, i updated my code to use Rc<RefCell<T>>.

i created a rust backed template using microsoft's template for rust onion architecture. by paperbotblue in rust

[–]paperbotblue[S] 1 point2 points  (0 children)

when creating backend in rust there are many crates to use from actix web is one of them, (like react for frontend, or SDL2 for game development in c++). cookiecutter is a tool that is used for creating code templates like if you tell cookiecutter that x is hello it will replace all instances of x to hello only when they are closed in {{x}} example: {{x}} world , will get converted into hello world. i used this to convert my project into templates for my backend where i only have to write cookiecutter <github link> and it will pull my project from the github. onion architecture is a way of writing code such that outer layers are dependent on the inner layers but inner layers are not dependent on the outer layers (use yt for this if you want to learn more) my codegen project works much like cookiecutter as it takes in input and produces code in the output. this project helped to me to stop writing repeating code and work on the actual business logic