HackerTrans
TopNewTrendsCommentsPastAskShowJobs

0atman

no profile record

comments

0atman
·tahun lalu·discuss
I believe the principles the article author is looking for are core to Pivotal Tracker. I've often tried to persuade teams to use Tracker, but everyone sure loves the whiteboard metaphor!
0atman
·tahun lalu·discuss
My go-to is "Alice has 3 brothers and also has 6 sisters. How many sisters does her brother have?". They all say 6!

This test is nice because, as it's numeric, you can vary it slightly and test it easily across multiple APIs.

I believe I first saw this prompt in that paper two years ago that tested many AI models and found them all wanting.
0atman
·2 tahun yang lalu·discuss
10/10, no notes XD
0atman
·2 tahun yang lalu·discuss
I love LSP as much as the next person, but bacon's flicker-free zero config clippy watching basically TAUGHT me Rust!
0atman
·2 tahun yang lalu·discuss
Welcome to the cargo cult!
0atman
·2 tahun yang lalu·discuss
I don't understand the question, but only one of those is a full stack web framework.
0atman
·2 tahun yang lalu·discuss
I don't know why OP felt moved to write this weird guide, https://leptos.dev is incredible!
0atman
·2 tahun yang lalu·discuss
For anyone wanting a actual full-stack framework with sensible defaults, type checked sql+api+rsx, and overwhelming community approval, don't reinvent the wheel: It has existed for years and is called https://leptos.dev

(If you're just making a simple rest api backend, I still dig the simplicity of poem-openapi + sqlx)

I can't understand if rust on rails is a joke, badly written by gpt, or written by someone who doesn't understand both Rust and web development in general. It's full of typos and baffling design decisions. (shelling out to an external comand to generate rust code?! MACROS EXIST!)
0atman
·2 tahun yang lalu·discuss
This is the right answer. How can you go back to a non-typed world after Rust I don't know.

I use html-node which has a typed submodule for even greater strictness. I just build some valid html, make a string and write that to the output directory and get on with my life. Eg: https://github.com/0atman/noboilerplate/

Templates... Rust functions

Flow control... Rust match expression

Abstraction... Rust modules

Html validation... Rust compiler

I like to think that in writing the html-node crate, Vidhan taught the compiler to speak html! https://lib.rs/crates/html-node
0atman
·2 tahun yang lalu·discuss
YES! sqlx::query_as in the wild!

Making queries like this checks the sql is valid at compile time by connecting to the real database and running it with demo data inside a rolled-back transaction!

(If you'll forgive the self promo, I explained it better in this video https://youtu.be/pocWrUj68tU)

Rust's macro system allows you to program the compiler with each new program, and sqlx is my favourite example of this.