Conversation
Notices
-
Embed this notice
Is programming in an immutable data structure functional message passing programming language just masturbation?
- snacks likes this.
-
Embed this notice
Frequently coercing code into this makes it less readable and undoubtedly introduces bugs.
-
Embed this notice
@maija I find that I am spending so much time massaging code and I feel like it's missing the point. Like I am trying to find the cleanest way to represent what I'm doing through constant refinement. Instead of just writing code that does stuff.
-
Embed this notice
@sun in some cases yes but it makes sense in some models imho
keep track of state more easily i suppose
but those who do this for local or nonserver code confuse me
-
Embed this notice
@sun masturbation is supposed to feel good, no?
-
Embed this notice
@sun If your code is such that you can just look at it and see the shape of the correctness proof by induction you are doing it correctly.
What i have seen a lot in erlang though is people abusing processes to keep writing OO-style just with weird syntax.
That's probably the masturbation you refer to?
-
Embed this notice
@sun I'd say that's mostly due to the functional part, at least I hate the lack of things like early return in Elixir.
immutable + message passing is fine for network services, although can get some time to get used to.
-
Embed this notice
@maija It may just be my inexperience but I find I write code and then the next day I realize I could do it neater and I rewrite it, then repeat a few more times until I've got diamond code. Even then I feel like the work is about making the language happy.
-
Embed this notice
@sun yeah i've had the same issues. the code can be a mess but relatively easier to track state and avoid major bugs in my experience
although this may be reflective of my mind naturally being more in tune with networked code than anything simpler, it feels like a natural extension of those coding practices until you need to do a lot of processing on a single node then it spirals out into a mess
-
Embed this notice
@lanodan It may be that I am just not used to learning something new and having to take a few years to master it.
-
Embed this notice
@sun what i love about assembly programming is you can obsess over a handful of lines for days exploring not merely the fastest but also all the different equally elegant solutions :3 it's beautiful
-
Embed this notice
@lucy I miss doing it.
-
Embed this notice
@lucy I wanna make an NES game for fun
-
Embed this notice
@lucy @sun the stupid menial shit you have to do and constant rewriting because they want some stupid feature that's annoying to implement ruins it. Suckless is right, total minimalism jihad
-
Embed this notice
@sun i wish someone would pay me for it but maybe that'd ruin the fun of it
-
Embed this notice
@lucy it would
-
Embed this notice
@lucy @sun and deadlines :mokouDead:
-
Embed this notice
@snacks @sun get a job at a military supplier. they have no real deadlines.
-
Embed this notice
@sun i love your new pfp a lot, also are you still sick? :02_heart:
-
Embed this notice
@munir I need to switch it, I feel not-sick today.
-
Embed this notice
@sun That's great to hear!