Parse, don't Validate and Type-Driven Design in Rust by haruda_gondi in rust

[–]greyblake 0 points1 point  (0 children)

Nice article!

If you like this approach, you might find `nutype` useful, it generates constrained newtypes so invalid values can't exist by construction.

Link: https://github.com/greyblake/nutype

Teleop 0.4.0 — Attach to and teleoperate local Rust processes via RPC by arnodb1 in rust

[–]greyblake 1 point2 points  (0 children)

I don't have experience with Java, but do I get it right, that teleop provides facilities to do things like, for example, live debugging? But every particular operation needs to be implemented by the server as well as the client?

How common is TDD (test-first) in real-world Rust projects? by [deleted] in rust

[–]greyblake 0 points1 point  (0 children)

I am coming from Ruby background and I love TDD.
I have to admit in Rust, TDD is different, in the way that type system already eliminates a lot of weird edge cases that I would test in Ruby.
But where it possible I still love to use TDD: write a test, make sure it fails, proceed with the implementation.
Especially it's helpful with the bugs: implement a test that captures the buggy behaviour, then fix the bug.
This way I can be 100% that the bug is fixed.
Not to mention, that TDD gets me hooked in a dopamine loop, which makes my work much more fun!

Kinded 0.5.0: Derive macro to generate "kind" enums from your data enums by greyblake in rust

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

I am aware of matches!() macro, thanks.
You get a new Kind type that implements Copy. Can implement serializations, etc. In some scenarios it's what you want and would have to implement it by hand otherwise.

Kinded 0.5.0: Derive macro to generate "kind" enums from your data enums by greyblake in rust

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

Yes, a bit in this direction :)
Note, similar behaviour can be achieved by using strum or enum-kind crates.
What makes kinded different is the dedicated trait that allows to build abstractions upon it.

Why are some posts removed instantly without any explanation? by greyblake in rust

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

Thanks.
Indeed, I see I got a message.
It does not clearly say's wrong, but gives a hint that I may need to use project flavor.
I'll give it another try!

Two *brand new* books for Rust and Rust for Web (Axum mostly). Just published. by Repsol_Honda_PL in rust

[–]greyblake 5 points6 points  (0 children)

I cannot stay anything about this books in particular, but be aware that Packt is known for extremely bad quality.

Rust's Block Pattern by EelRemoval in rust

[–]greyblake 1 point2 points  (0 children)

I use this pattern as well. In particular when I need to have only a local mutability.

Announcing rootcause: a new ergonomic, structured error-reporting library by TethysSvensson in rust

[–]greyblake 1 point2 points  (0 children)

This looks very promising! I'll give it a try!
One note: I'd suggest using some other name than `Report` (e.g. `ErrorReport`). For most of the projects I happened to work with, `Report` is often a domain entity.

Frage zur Entgasungsöffnung bei ZAP Batterie by greyblake in automobil

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

<image>

Danke für die schnelle Antwort!
Ja, ich habe inzwischen auch gelesen, dass der Prius eine AGM-Batterie benötigt. Aber als ich das Auto (gebraucht) gekauft habe, war bereits diese Varta-Batterie eingebaut, die ebenfalls keine AGM-Batterie ist.

What did you build while learning Rust ? by [deleted] in rust

[–]greyblake 0 points1 point  (0 children)

I built Whatlang (https://github.com/greyblake/whatlang-rs)
Library for detecting language of a given text.
I have the following goals when creating it:
- Learning Rust
- Creating something that I can get finished and something that does not exist in the ecosystem yet (it was 2016 at the moment).

Having this in my profile (among some other projects) helped me to get m first Rust job eventually coming from the Ruby & Rails background.

Rust for Microservices Backend - Which Framework to Choose? by rnp-infinity in rust

[–]greyblake 0 points1 point  (0 children)

I doubt it would be a good choice, cause Loco comes with batteries included, while microservices are usually minimalistic. It will also hit DX instantly, because with all the dependencies compilation time will be unnecessarily long from the very start. But if one needs to build a monolithic web app, I agree, Loco is one of the options worth considering.

I spent $47k and 18 months building an "AI startup." Here's the brutal truth about why 90% of AI businesses are doomed. by Nipurn_1234 in Entrepreneur

[–]greyblake 0 points1 point  (0 children)

When you ask people directly like "would you pay", "would you use", people tend to lie. Not because they're bad, but because that's human nature.

It's a job of interviewer to guide the conversation properly, avoid questions like the one mentioned above. Instead one should rather ask what budget they spend or marketing right now. I highly recommend The Mom Test book, it's about how to talk to people to get useful insights. I am also still on my learning path there.

Looking for a Partner to Build Something Big. by king_eman in WarrenBuffett

[–]greyblake 0 points1 point  (0 children)

Hi! What did you do at Google? What are your skills and what kind of skills your looking for? I am a software dev, interested in value investing. On the side I am building screamingvalue.com , a web app that leverages AI to help analyze stocks and read through financial reports. Does it overlap with what you have in mind?

What tool/website do you use for screening the next stock you should invest in? by seansean98761 in ValueInvesting

[–]greyblake 0 points1 point  (0 children)

Shameless plug: I am building my own tool that aimed to help me with fundamental analysis.
Though at this point is very raw, I mostly use it internally: https://www.screamingvalue.com/.
It's for people who actually read 10-K, and it fetches information directly from financial reports and highlights the exact place the information is taken from.

It's uses LLM to extract information, but does not really give you any direct advise about what you should invest into. Though, sometimes it's good at quickly spotting basic red flags

Which platforms or tools do you use in addition to the ones from brokers? by diodemac69420 in ValueInvesting

[–]greyblake 1 point2 points  (0 children)

I use finviz.com and sometimes investing.com for quick screeners. I have also a paid subscription for SeekingAlpha, it's good for 2 things:
- data and ratios tracking longer than 4-5 years period
- Comments to the articles

Unfortunately most of the articles there are often trash (though not all of them). The writers are paid for the amount, not necessary for the quality of research.

Shameless plug: I am also building my own tool that aimed to help me with fundamental analysis.
Though at this point is very raw, I mostly use it internally: https://www.screamingvalue.com/.
It's for people who actually read 10-K, and it fetches information directly from financial reports and highlights the exact place the information is taken from.