News for hackers. Stuff that matters.
Re:Simplify Your Code: Functional Core, Imperative Shell by solomonb on Monday October 27, 2025 @07:34PM (#45727603)
since were just making up functions..

    myCoolSubroutine = do
      now <- getCurrentTime
      users <- getUsers
      forM users (sendEmail now)

    sendEmail now user =
      if user.expiry <= now
        then sendExpiryEmail user
        else sendNonExpiryEmail user
The whole pipeline thing is a red herring IMO.
Re:Simplify Your Code: Functional Core, Imperative Shell by poncho_romero on Tuesday October 28, 2025 @09:40PM (#45741627)
What language is this?
Re:Simplify Your Code: Functional Core, Imperative Shell by aiiizzz on Wednesday October 29, 2025 @11:00AM (#45747709)
Looks like Haskell