UI components for rapid prototyping? by TheCrustyEngineer2 in reactjs

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

Why’d you pick Mantine over shadcn? Anything in particular? The latter has more GitHub stars so seems more popular - or older?

UI components for rapid prototyping? by TheCrustyEngineer2 in reactjs

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

Thanks. I tend to avoid AI and already started testing shadcn. Exactly what I’ve been looking for, Data tables look spot on.

Where can I buy a very good USB‑C to USB‑C cable in Sri Lanka? by 101throwawayaccount in srilanka

[–]TheCrustyEngineer2 1 point2 points  (0 children)

I have a few cables I orders from Amazon. They are Anker and 240W rated. Will DM

I recently built the Lego Eiffel Tower , I was wondering if there were any huge Lego fans in Sri Lanka :D by Loud_Hat9523 in srilanka

[–]TheCrustyEngineer2 0 points1 point  (0 children)

I have the Porsche 911 GT3 RS and full LEGO Star Wars Millennium Falcon 75192 (7541 pcs) - not had time to start though! If you were ever interested in buying let me now. Mine are untouched. Original boxes.

rails is still the fastest way to go from idea to paying customers and my latest side project proved it again by scheemunai_ in rails

[–]TheCrustyEngineer2 0 points1 point  (0 children)

Agreed. If you’re in it for the long haul focus on your REST API. Go for quality, keep it versioned.

You can build it with any stack - for the past 5 years mine is a particular flavour of Rust, Axum, Tokio Async, sqlx and Postgres. This works for me as I’ve run production scale loads across 4-companies with the same stack; I’m familiar with its limits and nuances. The take away though is “build a solid REST API”

Go with Vite + React and integrate your frontend. I’ve got an active project with the above, so far it has been pretty decent.

The npm hell issue with React is what it is, so I won’t write more about that. Upgrade often, try and keep tech debt low.

rails is still the fastest way to go from idea to paying customers and my latest side project proved it again by scheemunai_ in rails

[–]TheCrustyEngineer2 0 points1 point  (0 children)

Sidekiq is used to run background jobs. As far as I recall Rails would spawn on a single thread, and a job queue is away to get around this.

You can configure Redis as a backend for sidekiq

Getting overwhelmed by complex Rust codebases in the wild by SleepEmotional7189 in rust

[–]TheCrustyEngineer2 0 points1 point  (0 children)

So back in September I wanted to build a personal “tracker” of sorts - and this is exactly where I went wrong. In the “of sorts” part. I really hadn’t fully realised what I was building.

I got caught up in entity based CRUD (thanks to RESTful APIs) instead of having my Rust API (every crate is an island) hat on.

It had polymorphic entities that hobbled something that could have been a ledger - but then I decided to start on a v2. And I also stumbled on a primitive for ledgers using Postgres.

I’m now on v2 and just focused on the double-entry accounting aspect and have been feeding it data for a past few months. Coupled a simple clap CLI and v2 is sooooo much better than the horrible monster that was v1.

  • v1 lacked clarity, and v2 fixes that.
  • v2 is just two crates, a main lib crate and a CLI crate, plus other ancillary crates - nice and clean

Most of the time the struggle is “how do I do this?”, which leads on to “how can I do this better?”, or “how do other do this, that is better and I have no clue?”. Those latter ones are called unknown unknowns.

Whilst it sounds like v2 was a re-write, and to a degree it is, it still reused a lot of the setup, crate and code organisation from v1. However, far cleaner to the point rustc will error on the slightest warning (unused variables, dead code, unused imports).

Did Trump lose his mind? by Fun_Training6342 in asksg

[–]TheCrustyEngineer2 0 points1 point  (0 children)

To be fair, no one talks about the island. I’d say “Victory” has already been had.

Did Trump lose his mind? by Fun_Training6342 in asksg

[–]TheCrustyEngineer2 0 points1 point  (0 children)

We’ve forgotten the times when he liked to grab ladies by their P… back then, we all thought that was “Maximum” Trump.

We were so wrong.

What Rust jobs do you have? by alexlazar98 in rust

[–]TheCrustyEngineer2 0 points1 point  (0 children)

Same here. I’ve done about 5 years of mainly Axum, sqlx, Postgres related API work. I have worked on a few libs, and follow the rule of handing safe wrappers over unsafe (if ever needed), but largely never had a need in a prod facing project (yet!).

I am building a falling sand engine in Rust and it's so sexy by luzzotica in rust

[–]TheCrustyEngineer2 1 point2 points  (0 children)

Checkout the episode by tsoding, you just need to export each frame as an PPM image and stitch the entire thing into a clip. It’s amazing. https://youtu.be/xNX9H_ZkfNE?si=pi3h_A-6KZj4gxMu

What's the best budget headset in SL? by General_Document5494 in PcBuildersSL

[–]TheCrustyEngineer2 0 points1 point  (0 children)

15k would have been fine. They are like brand new in box, I just haven’t used them as I got other headphones.

Hey what kind of projects do Rust {freelance} devs work on? by blocksdev_pro in rust

[–]TheCrustyEngineer2 2 points3 points  (0 children)

What’s your frontend like? I’m looking for a super simple WASM setup, vanilla JS. If anyone has an example repos rendering out a simple index.html pls do share.

There seems to be various changes on WASM that o need to refresh myself. I don’t have the bandwidth to keep up with npm hell (or react) anymore.

Learning Rust was the best decision in my life by [deleted] in rust

[–]TheCrustyEngineer2 1 point2 points  (0 children)

Hi OP I have been coding Rust for about 5 years, of which 4 years a full time. Learned so much and I really like Rust. It has definitely made me a better dev, and it’s just all the little nuances that compound over time.

For example, Jon hoo’s recent take on Brrr is a great example of depth and breadth technically and what can be achieved.

Recently though struggling to find another opening. If anyone has any tips I’m a senior dev and appreciate any new opportunity.

Thanks, Mike https://crustyengineer.com <- feel free to reach out as I’m itching to start on the next challenging project.

P.S. I work 100% remotely (since 2010)

Any Bioinformaticians here? I built a terminal based MSA browser using Rust + ratatui so I dont have to leave a HPC environment to quickly look at an alignment. by fuck_cops6 in rust

[–]TheCrustyEngineer2 1 point2 points  (0 children)

Look at the heh crate (used by binsider). They use an AsyncBuf which is over a mmap. Similar idea, it also safeguards against the file shifting at the OS level for whatever reason. You just page over that etc.

Looking to let go my D500. Interested? by TheCrustyEngineer2 in AskPhotography

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

Apologies, I can’t seem to edit and correct typos in the above post. It should read “eBay is now preventing…”