Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kobenz779115dBeen there, more than once. It was NOT nice. Code looked so bad I never looked back afterwards
-
nemetepst130114dI'll preface this with, I write rust code daily and enjoy it;
Rust is a pedantic bitch, always wanting her rules respected and if you dare to go against them it it will fight back.
Just spent half of today trying to make some macros with a specific syntax - that was a fucking waste of time
Yet when it compiles it just kinda works most of the time, pretty much the classic love/hate relationship. -
jestdotty4086114d@nemetepst that compiling and working thing makes me insecure as fuck
I don't even have to check anything in my brain so it feels like I'm flailing through a dark endless fall in a dream
I have trust issues with languages and I just can't do this 😠-
nemetepst130114d@jestdotty Don't change your view on this, you are right - you should be feeling insecure with untested code.
Anyone that says if it compiles it's fine is a retard, that's the nicest way I can put it.
I should probably mentioned that I worked a lot with Java the past where you get fucked with exceptions at runtime.
At least for me writing rust is more enjoyable than Java. -
kobenz779114dY'all know, I used to get fucked all the time at runtime before functional programming. Nowadays I do all my personal projects with functional programming and, it might sound repetitive, but it all just works with barely any testing at all. I do however, spend a considerable amount of time profiling shit cuz it's a style of programming that generates a FUCKTON of garbage. Like, some serious memory spikes if you're not careful
-
nemetepst130114d@kobenz Yeah I feel you on this one, what lang do you primary use for your projects?
-
kobenz779114dusually I scratch stuff in lua or typescript and rewrite in Rust afterwards. Though python would be better, editing python code is annoying as fuck since I write it rust-style. fuck, rust's pervasive
-
nemetepst130113d@kobenz lol, yeah... it's weird, I also noticed that my code in other langs is written more in rust style over the time.
This is my love/hate relationship with it, sometimes you need a padded room to write it and yet I'll miss it when using other langs :/ -
lorentz14940113d@jestdotty The error reporting around the conversion traits is honestly embarrassing. I get that the compiler doesn't want to recursively walk a graph because it's very easy to introduce regressions in behaviour like that, but the error reporter could very much walk that graph to produce the most useful error possible.
-
kobenz779113d@nemetepst right?! Shit like pattern matching, geez I use it everywhere and if it's missing from the language I either implement my own or burst a vessel trying
---
Golang's a classic example. The amount of time I've cracked a nut trying to write it like Rust is of ocd-like procrastination
Related Rants
Jesus fuck generic number adding in rust is pissing me off
why did I decide to do this
I literally don't have to
let's just add 12 traits and then find out it doesn't know how to divide by usize. well how the hell am I supposed to convert it then. there's no trait for "f64 as f32" so now my shit looks like spaghetti cuz of that, now this...
so let's see I could call into() on usize to get it to be unknown T number... but there's no way for it to know what to convert to and I can't determine if there's any way for me to tell it that
THESE STRAITJACKETS
I might just need a padded room at this rate
*goes to sleep* later
.... required for usize to implement Into<T> wat
😩
I suspect that's gonna be another dead end
GOod ErrOrS
rant
rust
numbers