Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Beware of functional programming in Java!

Beware of functional programming in Java!

Scheduled Pinned Locked Moved The Insider News
javafunctional
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    jooq[^]:

    This isn’t going to be a rant about functional programming, which is awesome. This is a warning about some practices that you are very likely going to apply to your code, which are terribly wrong!

    You had me at "Beware of Java"

    A I 2 Replies Last reply
    0
    • K Kent Sharkey

      jooq[^]:

      This isn’t going to be a rant about functional programming, which is awesome. This is a warning about some practices that you are very likely going to apply to your code, which are terribly wrong!

      You had me at "Beware of Java"

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      While learning FP, I thought I should read a blog post, which used Java to help me bridge the OOP and FP.

      Quote[^]:

      In this article I will explain the most widely used ideas from functional languages using examples written in Java (yes, you could write functional programs in Java if you felt particularly masochistic).

      Time to say goodbye to a good guide I think.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      1 Reply Last reply
      0
      • K Kent Sharkey

        jooq[^]:

        This isn’t going to be a rant about functional programming, which is awesome. This is a warning about some practices that you are very likely going to apply to your code, which are terribly wrong!

        You had me at "Beware of Java"

        I Offline
        I Offline
        irneb
        wrote on last edited by
        #3

        This sounds similar to: "Beware of driving your car on water!" Seriously: Would you think C is a good choice when trying to build a Django based website? Would it be a good idea to learn (actual details, not just using of some library) about raw USB signals processing using Ruby? Java has its uses ... it's just not what you should look at when you actually wanted to do FP. Yes J8 had introduced the lambda (and some minor FP stuff), and yes more is expected later. But that's like stating: "Because my car has a GPS built in, it should already be a self driving car".

        W 1 Reply Last reply
        0
        • I irneb

          This sounds similar to: "Beware of driving your car on water!" Seriously: Would you think C is a good choice when trying to build a Django based website? Would it be a good idea to learn (actual details, not just using of some library) about raw USB signals processing using Ruby? Java has its uses ... it's just not what you should look at when you actually wanted to do FP. Yes J8 had introduced the lambda (and some minor FP stuff), and yes more is expected later. But that's like stating: "Because my car has a GPS built in, it should already be a self driving car".

          W Offline
          W Offline
          Weylyn Cadwell
          wrote on last edited by
          #4

          irneb wrote:

          Because my car has a GPS built in, it should already be a self driving car

          Well, what are you waiting for? Get on it!

          I 1 Reply Last reply
          0
          • W Weylyn Cadwell

            irneb wrote:

            Because my car has a GPS built in, it should already be a self driving car

            Well, what are you waiting for? Get on it!

            I Offline
            I Offline
            irneb
            wrote on last edited by
            #5

            I already have it, don't I? Only it don't drive so well ... I mean I turn on the engine, start up the GPS, put it in drive and watch it go ... but it still seems to drive into walls! Damn! What's wrong? IMO, that's the same as this idea of J8's lambda's ... i.e. just because there's some features necessary for FP now built into Java, this article seems to expect Java to be "good at FP". And then finding it's not ... :laugh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups