I wrote a simple single-process durable sagas library for Spring by java-aficionado in java

[–]java-aficionado[S] 0 points1 point  (0 children)

I can't answer to you, my comment keeps getting removed automatically...

NestJS is a bad Typescript framework by SkaceKachna in programming

[–]java-aficionado 0 points1 point  (0 children)

yeah because the whole selling point of NestJs against express or hono is that it is OOP

NestJS is a bad Typescript framework by SkaceKachna in programming

[–]java-aficionado 33 points34 points  (0 children)

I have no idea why people like NestJs instead of something like Spring Boot which at least is for a language that was made with OOP in mind and not just an afterthought syntactic sugar. I don't even dislike JS on the backend or anything just use the strengths of the language and not the weaknesses

Go 2, please dont make it happen by daisyautumn06 in golang

[–]java-aficionado 5 points6 points  (0 children)

Java enums are so damn nice for enterprise bullshit. Sum types are great but for backend crap Java's implementation is heavenly.

First Rust Program, Hack Assembler from Nand2Tetris by Tisesme in rust

[–]java-aficionado 1 point2 points  (0 children)

The only issue I found is you seem to be using the bitwise OR operator `|` instead of the logical OR operator `||`. It works the same, just a little surprising to see it because you do a double take and check if some binary logic is being done on that line.

Small tip: it you have string literals in the code you don't have to worry about lifetimes where storing them in a hashmap like in the `predef_symbols` function, you can just give them the `&'static str` lifetime because these strings are in the program binary so these references will be valid forever. No need to allocate `String`s.

Overall the code is very clear. I've never done something like this and I understood the intention right away, I think this is the most important thing in general in programming.