5

It's me or doing functional programming in Python is a torture?

Comments
  • 6
    Python is basically an imperative/OO language. Why fight its nature?

    If you prefer functional programming use JS or R. They are more amenable to it.
  • 4
    After three years of using python. I realised python is just torture. And with enjoy switch to much better another language
  • 4
    @platypus or maybe just use a functional(-first) language instead?
  • 1
    @100110111 what!?? Surely that can't be the answer! 😅

    Python is torture, it's a necessary evil, I don't enjoy the pseudo-ness of it, but it does make my life easier.
  • 3
    @C0D4 no? Ok then…

    Well, FP makes everything better, even snek is less torturous that way 😏
  • 2
    @100110111 Unfortunately I don’t see much enthusiasm from clients to use functional languages. And, most of the time, they have opinions as to which language to use.

    I’ve found JS and R are the closest I get in practice.
  • 2
    Doing programming in python is painful.

    /thread
  • 0
    @platypus basically I entered into the "Advent odmf Code" with some coworkers and we picked Python as our language of choice but it quickly become an informal "code golf" competition to see whi can solve the puzzles with least code, I'm not a Python expert but I hoped to use the functional tecniques I use in other languages to make my code shorter but I struggle in using most of them.
    In other occasions if I want to do FP I do what you suggest and stick to a more FP oriented language like F# or JS.
  • 0
    @DEVil666 calling JS a FP oriented language… in a same sentence with F#…
  • 0
    @100110111 I know, that's why I written a more FP oriented because although more functional than Python, JS is far from being a purely functional language.
Add Comment