this post was submitted on 23 Mar 2025
259 points (98.5% liked)

LinkedinLunatics

4198 readers
9 users here now

A place to post ridiculous posts from linkedIn.com

(Full transparency.. a mod for this sub happens to work there.. but that doesn't influence his moderation or laughter at a lot of posts.)

founded 2 years ago
MODERATORS
(page 2) 35 comments
sorted by: hot top controversial new old
[–] Boomkop3@reddthat.com 10 points 1 week ago* (last edited 1 week ago) (5 children)

No mutable types? So like.. no lists? no for ... i++?

I get that there are alternative approaches, but I don't quite see why you'd want to go to that extreme with this idea? It's useful for some applications but even for a simple video game it's likely not helpful.

[–] aubeynarf@lemmynsfw.com 9 points 1 week ago* (last edited 1 week ago) (1 children)

There are non-mutable lists and every other data type.

https://docs.scala-lang.org/overviews/collections-2.13/overview.html

https://docs.scala-lang.org/overviews/collections-2.13/concrete-immutable-collection-classes.html

“for… i++” is easily replaced with a foreach, range, iterable, etc… in any language of reasonable capability.

[–] Boomkop3@reddthat.com 3 points 1 week ago* (last edited 1 week ago) (1 children)

I get that there are alternative approaches, but I don't quite see why you'd want to go to that extreme with this idea? It's useful for some applications but even for a simple video game it's likely not helpful.

I should've said that right away, really. That's on me being online while tired. At that time I did not really think outside the box I was working in that day

[–] socsa@piefed.social 3 points 1 week ago (1 children)

It's just a very common foot gun, especially in legacy code where it is not explicit in the design. Even when you have proper getters and setters, it's way to easy for someone to overload the scope of some object, either intentionally or accidentally and modify it inappropriately.

[–] Boomkop3@reddthat.com 1 points 1 week ago (8 children)

I suppose immutability is a solution, I'm not sure if it's a good idea to radically isolate everything though

load more comments (8 replies)
[–] monotremata@lemmy.ca 6 points 1 week ago (1 children)

Pure functional programming is often like this.

[–] aubeynarf@lemmynsfw.com 3 points 1 week ago

Or pragmatic functional programming, or rediscovered by “OO” programmers who realize they are messing up the Redux store bad.

Erlang/Elixir doesn't have muteable variables/types. Appending to a list would just create a "new" lists.

load more comments (2 replies)
[–] fckreddit@lemmy.ml 9 points 1 week ago

Good riddance.

[–] FarraigePlaisteach@lemmy.world 7 points 1 week ago (3 children)

He didn’t rule out BASIC so he good in my books.

load more comments (3 replies)
[–] Zexks@lemmy.world 6 points 1 week ago

Which is why he doesn’t have a company of his own. He’s a terrible leader.

[–] aubeynarf@lemmynsfw.com 1 points 1 week ago* (last edited 1 week ago)

I’m pretty in-line with all these.

“guru”-driven, fad, and ineffective management processes, misunderstanding and corporatization of low-overhead planning tools, rather crappy (and faddish) languages, and not putting team first - all bad things.

load more comments
view more: ‹ prev next ›