

14·
5 months ago“It’s just a prank, bro!”
-them, probably
I’m glad. “Prank” videos are awful. A good prank or joke is enjoyed and laughed about by all parties, without incentive or provokation. This is public disruption that some people somehow find funny.

While, sure,
getmethods writing files could happen in side-effectful code, the side-effect concern is less about that and more of expectations. With OOP languages, class methods can create a dichotomy of expected returns: Using a list reversal as an example, will alist.reverse(some_list)function reverse the list in-place, or return a copy of the reversed list and leave the original in-tact? To know the answer, you have to check the docs or the type signature (which, yes, is easy, but the answer isn’t obvious). Which, the main concern is trying to debug things “magically changing”, since nested function calls and inherited function calls can modify something from layers upon layers of abstraction away.FP languages tend to not have this dichotomy, with very few exceptions like IO in Haskell, ports in Elm and Gren, external functions in Gleam, or FFI in Haskell, to name some ways from languages I know, all of which usually move the control of the program outside the language’s “default area”, anyway. Outside the exceptions, to reverse a list a
reversefunction needs to be given that list explicitly, and it also will be returning a copy of the list reversed, only and always