[-] fuck_u_spez@lemmy.fmhy.ml 4 points 1 year ago

Yeah this was my initial reaction way back when I first heard of Rust as well (sometime around 2015 or so I think). TBF it's definitely not on the same level as e.g. Haskell. But it's generally I would say less verbose than go (or at least has verboseness where it makes sense compared to go IMHO).

A good article about this: https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html

The generic system is also (way) less powerful compared to Rusts (The trait type system/type-classes is really a nice Haskell-inspired thing, that I don't want to miss anymore). Also the lack of sum types and proper pattern matching makes go more verbose IMHO.

[-] fuck_u_spez@lemmy.fmhy.ml 6 points 1 year ago

That's actually where the title is coming from...

[-] fuck_u_spez@lemmy.fmhy.ml 1 points 1 year ago

Yeah that's my point, I don't see a use for factories here, because it's possible to just use generic parameters (whether it's constructors or function arguments).

[-] fuck_u_spez@lemmy.fmhy.ml 2 points 1 year ago

I say it's all about data flow and composability, if it's pretty much always in one direction (modular tree structure/architecture) then you just don't need all these "patterns"...

[-] fuck_u_spez@lemmy.fmhy.ml 7 points 1 year ago

... until you've heard of Rust :)

(I think Go takes all mediocre language features together and makes an even more mediocre language TBH, take error handling for example, or generic programming (which I agree should be used sparingly, but is super useful if you need it))

[-] fuck_u_spez@lemmy.fmhy.ml 7 points 1 year ago

I couldn't believe it, tried it out, what the actual heck? I mean I get all these weird string vs number comparison but sorting actual numbers and this comes out? What kind of drugs were the designers of javascript (or at least this function) on... Who thought it was a good idea to sort numbers lexicographically??

[-] fuck_u_spez@lemmy.fmhy.ml 3 points 1 year ago

Btw. why don't interfaces work + "as argument" (whether it's a constructor in an OOP context or a function parameter)? I think interfaces are exactly built for such a use-case (without all the boilerplate that's necessary with dependency injection as well as factories).

[-] fuck_u_spez@lemmy.fmhy.ml 1 points 1 year ago* (last edited 1 year ago)

I still haven't really understood the use (and use case) of "dependency injection" (and it feels to me I read now everything about dependency injection I could find), to me it seems to be yet another ProblemFactory.

[-] fuck_u_spez@lemmy.fmhy.ml 2 points 1 year ago

Yeah, I agree with most not so interesting code (which is surprisingly much, if I think about it, especially average frontend/backend apps, client side oriented boilerplaty code (say e.g. React UI...)).

But coding a nice smart architecture, something novel/innovative (I think where the art of software engineering really lies IMHO)... well I'm not even thinking anymore about using AI (for now at least), it just confuses me, writes dumb code, and writing back and forth with it is cumbersome (to get better code), so that I just code it myself (being a fast typer is reallly helpful I think...). (I'm using it often though as some kind of StackOverflow replacement, but letting the AI code...? nah).

I think it'll likely take a few years still where I really seriously can/have to think about using AI productively in these cases (where it may even teach me a few things about language features I haven't known yet)...

569
[-] fuck_u_spez@lemmy.fmhy.ml 7 points 1 year ago

Yeah certainly, I got accounts on different instances, and this is by far the fastest and most reliable...

[-] fuck_u_spez@lemmy.fmhy.ml 6 points 1 year ago

Yeah he's kinda a wannabe Elon, but I think he hasn't really found a fan base as Elon has, I'm not sure anyone really likes him lol

view more: next ›

fuck_u_spez

joined 1 year ago