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
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I am going through a book on FP programming in C++. I am still at the point of "not seeing the value". I am forcing myself through the book and reading articles on the benefits. I am starting to see the conceptual compartmentalization. However, I still run into needing mutable state for visual and database interfaces. My mind wants to resist like crazy. It says "Why the fuck are you reading this crap?" I feel your pain in a different way.
-
@Demolishun One trick is not to think in terms of "one state that you mutate", but rather like "one state that you leave as is, but you make a copy with minor differences" and then discard the old state.
The main advantage is that you avoid uncontrolled state merging from several sources. The disadvantage is that you now have to deal with stale data. -
@tekashi Rust is pretty awesome. Especially when compared to my alternatives which is straight assembly (no thanks), C (yeah no) and C++ (absolutely positively not)
-
@12bitfloat sure if you like having to run 10 extra circles for everything because the compiler thinks you are a fucking idiot
-
@tekashi It's more complex sure due to the borrowing rules but it still feels amazing because all of that is you explicitely telling the compiler to make it the shit fast
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Use Rust they said. It will be much less hassle they said.
And now rustc just stops working in the middle of compiling. No error or anything it just doesn't want to continue compiling so I'm stuck forever on "Building ...". I thought I would never have to experience this again after deciding to pretend C++ doesn't exist but alas systems programming appears to forever be a right pain in the ass
rant
rust
fml
cargo
compiler