14

Should I try to learn functional programming or focus on a lower level language?

My strongest language is C#.

I'm looking at F# or Rust atm.

Thoughts?

Comments
  • 4
    Try both and continue with the one which makes more click.
  • 5
    Learn both. They do complement each others, and I’ve found especially F# having been beneficial for grasping new languages with far less effort. Not sure if by virtue of the qualities of said language or whether I went over some threshold while learning F#, tho. Anyhow, I do recommend learning both, and there’s absolutely no need to stick to just either.

    And I’m just talking F# v Rust here. When it comes to fp vs lower level, I recommend learning fp for it enhances your theoretical understanding, which does help with the lower level stuff even if you’ll find yourself not using fp as much per se in that context.
  • 1
    Both. I'd also recommend doing some assembly programming to really get how the lowest level hardware-software interface looks like.
  • 1
    Choose Rust! It is both low level and has a lot of concepts from the functional word, like traits and sum types.
  • 3
    Functional vs "lower level"?

    How the fuck is oop, or structured "lower level"?

    Why not use a generalized language so you don't have to choose?

    Like C++,

    which is an extremely high level language if you program it right and you can go as low as you want. Including to assembly language.

    Jeebus, programmers today. "Its hard". Back when I learned to program you just picked up a language and didn't cry about it.
  • 1
    @Geoxion sum types are one of the most awesome features that programming languages can have.
    But I‘ve never thought of them as functional. If they have something to do with functional programming, can you explain what the connection is?
  • 3
    @Demolishun That's because the hard part was only to follow up, namely making a compiler when all we had was wood - if we were lucky.
  • 2
    @Demolishun woa! Slow down soldier..
  • 0
    @Lensflare Next thing he say that lazy eval is only functional. Yes, I am salty today.

    "I felt like destroying something beautiful"
  • 3
    @Lensflare yes, I wish C# had them as well.

    Ok, maybe sum types themselves are not functional. But you can use them to create Option and Result types, so monads.
  • 3
    @Demolishun everything is a blur anyways in many modern languages 😜
  • 2
    Whichever one's more fun, of course
  • 4
    @Demolishun Honestly you made me feel pretty shitty and stupid, I don't see how I deserved that, but I also think your comment might have a tiny seed of value in between the misunderstanding and the derogatory stuff.

    I never complained that "it's hard", my C# is just much stronger than my C++. But I love C++.

    That said, I find the sentiment that a programmer "shouldn't complain" to be really weird and toxic. If you can find a way to make things simpler and easier, then that's a win right? Isn't easy code a good thing and hard code to be avoided? A lazy programmer is a good programmer, anyone?

    Now: who said that oop or structural is "lower level"? What are you talking about dude?

    Was it wrong of me to call Rust "lower level"? Is that your problem?

    Please explain, preferably without making me feel shitty and stupid.

    Thanks
  • 4
    @daglundberg Sorry, I was being a dick.
  • 5
    @Demolishun thanks, all good. I need to not take things so personally.
  • 6
    @daglundberg No man, I went on the attack and misread something. You are right to call me out. I will try to be less of a dick. I usually try to be funny, but I can be mean. As you can tell. You were just asking a question. So I am truly sorry for abusing you. I will try to be better. You seem like a good person. It will be all good only when I do better.

    Fuck fuck fuck! There, that should help me center myself a bit. Cheers.
  • 1
    @Demolishun ok grandpa, don’t get cranky about it.
  • 2
    Learn both types of languages! My recommendations are:

    Haskell (functional) and C (low level).

    I like both languages a lot and have learnt so much with these even though I am not using them on a day to day basis.
  • 0
    @Demolishun the creator of c++ on the importance of learning multiple languages and the problems with being a monoglot https://youtu.be/5An1sNznblQ
Add Comment