Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Programming

Can Reactive Programming Handle Complexity? 149

Nerval's Lobster writes "A recent article on Reactive Programming, which suggested that five lines of Reactive could solve a problem that required 500 lines using Java or 200 lines using triggers, led many readers to question (passionately) whether Reactive enables you to address not just typical problems, but complex ones as well. In a follow-up column, Espresso Logic CTO Val Huber argues that, while it certainly can't solve all use cases, Reactive Programming is very capable of addressing many complex problems, and can address all other scenarios via a transparent integration with procedural languages. He shows how Reactive can handle complexity using two different scenarios: a classically complicated database application (a bill of materials price rollup) and procedural integration (to address external systems such as email and transactions not limited by a database update). Take a look at his work; do you agree?"
This discussion has been archived. No new comments can be posted.

Can Reactive Programming Handle Complexity?

Comments Filter:
  • by Anonymous Coward

    I disagree.

    • by Anonymous Coward

      You must be British.

      • No. He's an Anonymous Coward.

        I'm British.

    • I concur.

    • Ditto (Score:5, Insightful)

      by goombah99 ( 560566 ) on Tuesday February 18, 2014 @04:06PM (#46279709)

      I've done reactive programs. They make fun little interface gizmhos. But holy shit, try debugging something that does something complex. You can't assure when, where and how variables might be changing in some outer reaches of your program while another part of the program is assuming they are momentarily fixed. It's going to be unpossible to seriously optimize a reactive program.
      So yeah for silly data base queries of simple mathematical calcs go for it. Complex programs. run away

      • By the way, I thought I'd add, the only reactive style language that I've really found could get modestly complex and still not be incomprehensible is Lab view. It's event driven, and the you can literally see where and how a variable is being modified with the wires it draws (unless you like using globals. The problem with labview is feeding a wire through a lot of graphical levels is so annoying that you end up resorting to globals more than you should.). Labview takes a really different mind set to do

      • Yup. I'm sure there are lots of neat shortcuts you can make with reactive programming. But once the complexity grows beyond a certain level, it's going to be hell to debug.

        So it's like pretty much everything else software-related: it depends upon the situation. For situations where reactive programming permits a simple implementation, it's pretty great. Otherwise, not so much.

      • Brian Kernighan's famous quote comes to mind. I wonder what the multiplier becomes for something like this...

      • Are there specific use cases or patterns where reactive programming may excel, and be integrated into a more traditionally developed system (to minimize reactive complexity through human written code complexity - no way around the complexity...)?

        I have no reactive application experience, just wondering if it is possible and if it could be beneficial.

        • Martin Odersky, Scala inventor, recently held a course [coursera.org] on Coursera.

          From a functional perspective the basic idea is to handle asynch callbacks with a Future monad.

      • by cduffy ( 652 )

        You can't assure when, where and how variables might be changing in some outer reaches of your program while another part of the program is assuming they are momentarily fixed.

        Huh? All the reactive programming frameworks I've used (Python's Trellis, various cell-model approaches in Clojure) have transactional memory, so things never appear to be happening in parallel.

        Reactive programming without transactional memory is Doing It Wrong.

        • RIght. but now you are deleting most of the appeal of reactive programming by having to go back to explicitly managing dependencies.

          • by cduffy ( 652 )

            RIght. but now you are deleting most of the appeal of reactive programming by having to go back to explicitly managing dependencies.

            I do? I didn't notice myself explicitly managing dependencies when using Trellis [telecommunity.com] or Hoplon [hoplon.io].

  • Also (Score:2, Insightful)

    by oldhack ( 1037484 )
    Can bullshit walk?
    • Re: (Score:3, Funny)

      by logjon ( 1411219 )
      Don't know about walking, but it can clearly get posted to Slashdot.
    • Yeah, this is the 2nd or 3rd 'Slashvertisement' publicizing someone's obscure product without adequately explaining what RP actually is.

      One would think from reading the tutorials of Val Kilmer (sic) that reactive is just some DSL built on top of PL/SQL...

  • A few problems... (Score:5, Insightful)

    by Ckwop ( 707653 ) on Tuesday February 18, 2014 @03:14PM (#46279217) Homepage
    A few problems:

    - What about circular reactions?
    - Is SQL really that right language for encoding business logic?
    - Triggers are kind of an anti-pattern.
    - What about atomicity? What if I need the whole reaction chain to work or none of it.

    I'm afraid there more questions than answers with this proposed pattern.
    • Re: (Score:2, Interesting)

      by Anonymous Coward

      It's the third (at least) Slashvertisement for this useless new ... whatever it is they are trying to sell.

      It has potential to get management buy-in because it works exactly the same as Excel. However, it will not get acceptance in the IT departments because it works like Excel but with no explicit statement about the questions you have raised and likely more as well.

      There are situations where tables & triggers* are the best way to sort out a problem. There are places where dedicated matrix algebra wo

      • by Qzukk ( 229616 ) on Tuesday February 18, 2014 @04:13PM (#46279755) Journal

        I think I just started development on the 3rd worst D20 product

        *rolls a 1*

        Your fingers fumble over the keyboard, striking keys almost under their own accord.

        UPDATE customer SET lastname='Jones'

        *rolls save vs. WHERE clause... 3*

        ;

        With horror you look on as you strike a glancing blow to the enter key.

        • by ignavus ( 213578 )

          I think I just started development on the 3rd worst D20 product

          *rolls a 1*

          Your fingers fumble over the keyboard, striking keys almost under their own accord.

          UPDATE customer SET lastname='Jones'

          *rolls save vs. WHERE clause... 3*

          ;

          With horror you look on as you strike a glancing blow to the enter key.

          No problem if you live in the right part of Wales: http://en.wikipedia.org/wiki/File:Jones.png [wikipedia.org]

    • by Gestahl ( 64158 )

      I'm not sure exactly where he wants to use this... as a new constraint system for a database or something?

      Yeah, that's the ticket... stuff more business logic in the database. I have yet to see a system designed by DBAs around stored procedures as "the way all systems should integrate" that was remotely usable.

      Databases are not good development platforms.

      • Databases are not good development platforms.

        Especially since, buzzword-compliance excepted, they are by far the least scalable part of your architecture.

        • by Chrisq ( 894406 )

          Databases are not good development platforms.

          Especially since, buzzword-compliance excepted, they are by far the least scalable part of your architecture.

          ... unless you're Google perhaps

          • Databases are not good development platforms.

            Especially since, buzzword-compliance excepted, they are by far the least scalable part of your architecture.

            ... unless you're Google perhaps

            Just because they've figured out how to scale it (for some jobs - anything needing reliable repeatable results tends to get surprisingly slow) doesn't mean it wasn't still a damn sight harder than scaling the rest of the stack :)

            • by Chrisq ( 894406 )

              Databases are not good development platforms.

              Especially since, buzzword-compliance excepted, they are by far the least scalable part of your architecture.

              ... unless you're Google perhaps

              Just because they've figured out how to scale it (for some jobs - anything needing reliable repeatable results tends to get surprisingly slow) doesn't mean it wasn't still a damn sight harder than scaling the rest of the stack :)

              Yes that's probably true, but now they do have a scalable data layer that fits their purpose.

    • by LoRdTAW ( 99712 )

      Is SQL really that right language for encoding business logic?

      Probably not. And especially not if you would like your DB to be portable between various DB's.

      • by SQLGuru ( 980662 )

        Purely bogus argument. The counter is "put it in the database because it allows you to change out the front end". Both are stupid arguments because when you get around to rewriting anything, you're going to rewrite both layers. [Caveat for a company that sells their software -- having all of the code in one layer allows you to sell to more clients.]

        Put the code in the right place. For large / massive data processing updates or crunching reports, the database is much more performant than doing it in the

    • by lgw ( 121541 ) on Tuesday February 18, 2014 @03:42PM (#46279475) Journal

      - Triggers are kind of an anti-pattern.

      Well, sort of the point of this style is to embrace triggers as a powerful and underused tool. I'm a big fan of powerful and underused tools, but generally there's a reason they're underused.

      Pick the right tool for the job. Reactive programming seems like it makes life wonderfully easier for this very narrow set of problems. That's neat. But both trying to us it for everything and insisting that it's useless because it doesn't work for everything are mistakes. Like a power screwdriver with a U-joint attachment, some tools go from pointlessly awkward to awesomely helpful when faced with a particularly-shaped niche.

    • by geekoid ( 135745 )

      " Is SQL really that right language for encoding business logic? "

      Depends on use. Some business logic could be device independent. SO creating a trigger that can be used by any device makes life a little easier.

      "Triggers are kind of an anti-pattern."
      No they aren't. For the reason hosted above it's an easy way to handle the same problem with many devices.

      • by ZahrGnosis ( 66741 ) on Tuesday February 18, 2014 @04:34PM (#46279931) Homepage

        I don't know about "anti-pattern", but they cause trouble because they cause other code to be non-deterministic and it's very difficult to create patterns around that sort of behavior. They're practically the logical equivalent of the "COME FROM" in Intercal, which was originally a joke for goodness sake. I was flabbergasted when I found out people are vaunting code that actually works this way. It's particularly painful in implementations where the "reactions" can override program flow with errors or silent rejection or just running off and doing whatever they want. It's nearly impossible to debug since reactions (triggers) are almost always coded in a language or paradigm separate from some procedural language used to provide the UI or whatever other layer is being reacted TO.

        I just don't like it! But that's just me.

      • "Triggers are kind of an anti-pattern."

        No they aren't.

        Oh yes they are. They weaken the client-server model.

        When a client makes a request to a server, the server should try and fulfill exactly that request, to the best of its ability. When a client says INSERT or UPDATE, the server should INSERT or UPDATE if possible. Maybe fail due to constraint violation (or disk full), but that's it. When a client says EXECUTE, the server should execute the named procedure. That's remote execution right there and it's a Good Thing. (Multi-tier might be better, but stored pro

    • It is taking away exactly the key features that languages like Java have that make them ideal for business logic. It takes away the generalist properties and ties each line of code into a database process, removing the separation of logic from implementation. It encapsulates functionality without giving access to it by tying procedural code to relationship statements rather than to actual calls, making it extremely vulnerable to the law of leaky algorithms, making it more difficult to both debug and optim
    • by leandrod ( 17766 )

      Is SQL really that right language for encoding business logic?

      Yes, SQL is quite adequate, more so than most due to being declarative. The issue is not SQL per se, but poor support for it in everything but PostgreSQL and IBM DB2. The advantages of procedural languages (including OO and functional ones) are more in standardisation than in the language per se.

    • by Chrisq ( 894406 )

      A few problems: - What about circular reactions? - Is SQL really that right language for encoding business logic? - Triggers are kind of an anti-pattern. - What about atomicity? What if I need the whole reaction chain to work or none of it. I'm afraid there more questions than answers with this proposed pattern.

      Yes, TFA is a bit like saying "a hammer is better than a screwdriver because it was quicker at getting a nail in"

    • by julesh ( 229690 )

      A few problems:

      - What about circular reactions?

      - Is SQL really that right language for encoding business logic?

      - Triggers are kind of an anti-pattern.

      - What about atomicity? What if I need the whole reaction chain to work or none of it.

      I'm afraid there more questions than answers with this proposed pattern.

      Yep. It's worth noting that in both of the articles linked the only reason the logic is complex is because their databases aren't correctly normalized. To be specific, their tables are not in 3NF.

  • No silver bullet (Score:5, Insightful)

    by Rumagent ( 86695 ) on Tuesday February 18, 2014 @03:23PM (#46279287)

    It is a tool. Like any other tool you apply it when your skill and experience tells you to. I belive the term commonly associated with this is "professional".

    • by jythie ( 914043 )
      Yeah, but there is money to be made in claiming your tool is appropriate far beyond its domain.
    • It is a tool. Like any other tool you apply it when your skill and experience tells you to. I belive the term commonly associated with this is "professional".

      My experience is that nearly anytime you see a problem reactive programming could address you would be better off designing a program in which evaluation is lazy, and every calculation is memoized. Spend a little time designing for laziness and memoization and there's no need to lock everything into being based on a reactive language.

  • by Anonymous Coward

    It appears that reactive programming would require an incredibly bloated and powerful backend. In effect, it moves most of the logic to the framework and allows the programmer to just hook a few pieces together. I can't imagine it scaling well with all the extra event notifications one would introduce. It looks like it would change from one event causing the execution of a chunk of code to multiple chained events triggering a conditional series of smaller chunks of code.

    The problem lies in the overhead o

    • It appears that reactive programming would require an incredibly bloated and powerful backend. In effect, it moves most of the logic to the framework and allows the programmer to just hook a few pieces together.

      In the last thread on this, some slashdotter answered my question and pointed out that VHDL is a reactive language, since x=y means x is connected to y, so y will propagate to x on the next clock pulse and so on throughout the entire circuit.

      This fits the model for FPGAs pretty well.

      It's fair to say

      • >VHDL is a reactive language, since x=y means x is connected to y, so y will propagate to x on the next clock pulse and so on throughout the entire circuit.

        And VHDL, as typically used, is completely static. that's because hardware is completely static. You can't just instantiate a new flop in your CPU. They're stuck there where you built them.

        In it's various forms, this is known as CSP, Actors, Dataflow Programming, SISAL (Remember that?) and Excel. There are many others. Any producer-consumer message-as

    • it might be a good way of prototyping and get an early set of working, testable specs. i don't like the approach, though, seems awkward, but that's maybe just me ...

  • of course it can (Score:5, Insightful)

    by istartedi ( 132515 ) on Tuesday February 18, 2014 @03:25PM (#46279323) Journal

    x = new WonderfulObject();
    x.Invoke("5000 lines of C that somebody wrote");

    • by PRMan ( 959735 )
      But if developers are constantly writing slight variations on the same 500 lines of C, why not encapsulate it?
      • by istartedi ( 132515 ) on Tuesday February 18, 2014 @03:31PM (#46279375) Journal

        But if developers are constantly writing slight variations on the same 500 lines of C, why not encapsulate it?

        Sure, no problem with that. After all I just typed that into a text area in a web browser and hit send. There were probably *millions* of lines of encapsulated code in that one instant. The difference is that I'm not pretending that hitting "Submit" is the same as writing a web browser, a network stack, router firmware, etc. I didn't solve any problems. Those guys did.

      • by jythie ( 914043 )
        People often do, it is called a library. What the OP seems to be doing is throwing a scripting language on a library and calling it 'reactive'.
    • Re:of course it can (Score:5, Informative)

      by phantomfive ( 622387 ) on Tuesday February 18, 2014 @03:32PM (#46279389) Journal
      Your comment made me laugh, but then I read the article, and that's exactly what the author said. From the article:

      "Reactive Programming is very capable of addressing many complex problems, and can address all other scenarios via a transparent integration with procedural languages."

      • That way I also can easily write a very powerful build environment:

        #include <stdlib.h>
         
        int main()
        {
          return system("make");
        }

        I leave obvious improvements to the reader. ;-)

    • x = new WonderfulBusinessObject();
      x.Invoke("5000 lines of C that some cheap outsourced programmer wrote");

      FTFY.

  • by shadowrat ( 1069614 ) on Tuesday February 18, 2014 @03:39PM (#46279439)
    I don't know what the 500 lines of java code are, but i guess they are grabbing input and cleaning it and opening database connections and whatnot. assuming that he's counting import statements and puts curly brackets on their own lines. sure 500 lines.

    I don't know much about this Reactive stuff, but i don't see anything in this sample code that tells me where the input is coming from or where it is going to or if it's being cleaned in the process. Somehow Reactive also creates an environment in which nothing unexpected ever gets entered?
    • Also, you can just assume that you have a reasonable number of connections to an adequately powerful database running in whichever replica is currently correct.

      Most of those lines of Java are actually there for a reason, don't'cha'know.

    • i don't see anything in this sample code that tells me where the input is coming from or where it is going to or if it's being cleaned in the process.

      That's because it's like agile or something.

      • by Rich0 ( 548339 )

        We've outsourced data cleanup to Bobby Tables. His rates are low, and we haven't had a problem yet...

  • by engineerErrant ( 759650 ) on Tuesday February 18, 2014 @03:39PM (#46279443)

    As background, I am the director of engineering in a small Java/Postgres-based shop. We run a cloud backend for our mobile apps.

    This "methodology" reads from the first sentence like an extended infomercial for a consulting shop, or a company trying to create the aura of "thought leadership" to get more investment cash. The formula is simple and time-honored: (1) arbitrarily single out a well-worn software practice to receive a snappy marketing name and be held above all other practices, (2) claim it's new, and (3) offer to implement this bleeding-edge buzzword to clueless executives. For a small fee, of course. It's the same formula that gave us Agile.

    In my opinion, what they've described here is a large step *backward.* Not only is this a relatively trivial use of the GoF Observer pattern, but bizarrely, it's done in SQL using triggers, causing immediate database vendor lock-in and creating a maintainability nightmare. It's how software was made back in the 90s when Enterprise SQL database vendors ruled the land. Sprinkling business logic around in the SQL instead of centralizing it in a much more suitable language for logic like Java is a completely terrible idea, unless you're an Oracle sales rep.

    This one is safely ignored.

    • by geekoid ( 135745 )

      ", it's done in SQL using triggers, causing immediate database vendor lock-in and creating a maintainability nightmare."
      Only if you don't know what you are doing. I've create many cross platform triggers.
      Properly organized code is the key to maintainability, regardless of language.

      "Sprinkling business logic around in the SQL instead of centralizing it in a much more suitable language for logic like Java is a completely terrible idea, unless you're an Oracle sales rep"
      you need to step away from the Java for

      • Re: (Score:3, Insightful)

        That's certainly valid that proper organization is far more the key to good code than the use of any language - my comments should not be taken as an ad for Java or any other specific technology.

        That said, certain language features lend themselves to good organization much better than others. Where SQL faces challenges is that (1) it's mostly a declarative language using set calculus, which (again, in my opinion) makes it ill-suited for non-trivial business logic, (2) because of the aforementioned, it can't

      • by St.Creed ( 853824 ) on Tuesday February 18, 2014 @04:26PM (#46279871)

        Two points here I think:
        1) Yes it is possible to build maintainable triggers - I'm doing it right now, as a matter of fact. However, it's certainly not my first choice since it's (a) hard to debug when they cascade and b) performance is hard to keep under control as they proliferate. Just look at Oracle's older products (or heck, look at Apex) and the huge amounts of triggers firing for even the most simple of tasks. It's a weed that you have to control rigourously or it will grow out and suffocate your software. It is NOT a best practice to use triggers if you can avoid them, they're a last resort if all other options are off the table.

        2) Centralizing the business rules has a lot of repercussions beyond the technical side of things. Look at BeInformed's products for that. With proper definition of business rules, a good business rule engine can generate most CRUD-code from scratch, dynamically populating the screens with the required fields. BeInformed's latest product even generated the workflow at runtime, all business rule based. It was much more advanced than reactive. Unfortunately they invested too much and they're now up for grabs as they went under. As I understand it, SAP and Microsoft are fighting over the remains. Which is a much better buy than Reactive.

        I'm sure you can find an edge case where some platform can't access the centralized business rule repository, or needs an exception. Or it becomes inflexible and unwieldy. Those are generally signs of failing organizational processes, not technical issues.

        That said, there's another point: why can't databases integrate with business rule engines? We're still stuck with constraints from the 60's, even Domain-Key constraints have to be programmed instead of declared. Databases could leap forward if they would deal properly with time, versioning, and business rules. Instead, we get slightly higher marks on the TP benchmarks. That's useless.

        • by ADRA ( 37398 )

          Rule Engines are one very tenuous issue. Here are some thoughts on them as I see them:
          1. It requires businesses significant overhead to bring in expertise to allow developers / architects / solutions providers for new products, but
          2. most products are legacy, so when moving into a business rules eninge model, you need to essentially re-implement everything you've ever done, because
          3. Integration with a system of this sort becomes very difficult, and somewhat unmanagable, especially when these outside system

    • by tomhath ( 637240 )
      Sprinkling database updates around in Java (which for most Java programmers means Hibernate) is almost always a terrible idea. Use the appropriate tool to implement your business logic; often that tool is SQL.
    • In 15 years as a developer I have never used a trigger and I don't intend to in the next 15 years either. If you need to use triggers, you're either (a) lazy or (b) haven't thought the problem through adequately.
  • by Anonymous Coward on Tuesday February 18, 2014 @03:44PM (#46279491)

    Having read TFA, it looks to me like all they have done is compared a schema which was not properly normalised, with something which was; for example the 'reactive' code calculates total cost as quantity x price, where as the author is conjecting that the SQL version would have a total-price field, and therefore have to have '500' lines of code to keep this field updated.

    Smells like snake oil to me.

    You have to ask, "Why would the SQL schema need a totalprice field?"
    If your business logic says that the totalprice is always Q x price, then ditch the field and ditch all the code which enforces the relationship. But ... then you have to recalculate the totalprice every time you look at it.

    There are other examples of denormalised data in the sample provided, and in all cases the 'reactive' code simply calculates the value on the fly - and as other commenters have mentioned, this blows up as soon as the business rule is no longer valid, such as "when a product's price is changed, DONT change the price on quoted or shipped orders, DO change the price on scheduled or reoccuring orders"

    • And "this customer gets a 3% discount except on orders in the first month of the quarter when its 5% because they're massive and we want to encourage them to book early..."

    • by julesh ( 229690 )

      Indeed. Their entire product seems to be "we've got this wonderful solution to problems caused by databases that aren't in 3NF: you put your database in 3NF and then calculate the dependent value on the fly" which is of course exactly the same thing we've been doing since 1971 when Codd first described 3NF, but hey, they've got a funky new buzzword for it so it's obviously cool again.

  • Sure, it may work exactly as hyped. But that doesn't matter.

    Why would I want my hosting coupled to the framework I'm using, and to a particular database as well? If their hosting sucks, or if they raise their rates, I'm stuck.

    No thanks!

  • Marketing Hype... (Score:4, Informative)

    by mrthoughtful ( 466814 ) on Tuesday February 18, 2014 @04:06PM (#46279705) Journal

    This is just marketing hype dressed up as a question. Having said that, anything that gets anyone enthused about programming is good, I guess.

    What I really don't like is when Val Huber refers to a previous article he submitted as if it were written by a third party.
    Now, I love SQL (and triggers are ok) - and so does Val Huber - I'm sure we would get along fine.
    Val, you've been doing SQL for 20 years! woot. So that means you started back 'round '94.
    (Aw. I started back in '85. I was doing websites in '94 - remember Lycos?)

    But it's just using SQL Triggers, Val - why give it some sort of fancy name? Ohh everyone else does that, like "Web2"? or "The Cloud", etc?
    Still stinks - but hopefully someone may actually pick up how to use some of the cool features of SQL.

    • by julesh ( 229690 )

      Val, you've been doing SQL for 20 years! woot. So that means you started back 'round '94.

      And it also means that the correct solution to this problem, third normal form, has been around for over twice as long as he has.

  • A lot of what is in the example reminds me of a 4GL I worked with in the 1980s that had a feature called "computed fields". The idea is extremely nice conceptually, and seems to nest nicely, as well as be easily integrated with other functionality. The main problem is performance. Some pretty smart people worked on the tools, but (with the complexity of real life systems) you tend to end up with the same values being continually recalculated. It turns out that (because of the generality of the functionality
  • by Anonymous Coward

    This is stupid. Posting back to Slashdot BI. I'm really really close to leaving. Thanks for killing slash dot dice.

  • I'm a fan of reactive programming, it's pretty neat. However, the article cherry picked the scenario that perfectly fits reactive programming. Furthermore, calculating a couple formulas is hardly complex, show me geographically distributed caches kept in sync with a few lines of code and I would be more impressed.
  • Show me a dozen enterprise apps written in this style that work well. I don't care about sample methods. There are plenty of developers who have rewritten Excel documents into Java applications with proven benifits. Where are the testimonials for doing the opposite? Is Amazon using this for its shopping cart? Did NASA use it? Are big open source project being made with it?
  • If you want to learn how to do it yourself I am writing a whole book on the topic, "Dataflow and Reactive Programming Systems" http://dataflowbook.com/ [dataflowbook.com]
    • by jbolden ( 176878 )

      Short comment, nothing to respond to other than yes people should. But nice to have you here when these sorts of topics arise.

  • This seems like a magic version of logic programming. Rather than defining precedural instructions, you provide a set of rule that a logic engine then uses when accepting input. My understanding is this is how Prolog and Datalog work, an example being Cascalog in Clojure where you define a query and the logic engine will infer the necessary joins and such to make it happen.

    Generally this model of thinking appeals to me, but in practice it is difficult to get right unless your language has explicit support f
  • We would all be programming in Perl, or better yet, how about APL?

    • by tomhath ( 637240 )

      or better yet, how about APL?

      One of my favorite exchanges of all time:

      Programmer: We wrote our entire application in one line of APL!

      Tester: But it doesn't work!

      Programmer: That's okay, I know exactly which line of code is broken!

  • by Livius ( 318358 ) on Tuesday February 18, 2014 @06:05PM (#46280681)

    address not just typical problems, but complex ones as well

    If they find that complex problems are not typical, that tells us a lot about the scope of their experience.

  • Please tell me the browser cache is screwing with me. Please tell me that my wife wants to have sex more often ( ok that isn't going to happen, I have a 12 and 15 year old) Do we really have Slashdot.org back?
  • If you specify the same memory area in an application for your variables you open up the application for some serious illegitimate usage. It looks to me like using database triggers is pretty much the same thing. However, if someone has sufficient access to your database they could just make their own "triggers". It is a cool concept though.

  • This is the 3rd Reactive article in the past year. Whose dick at Slashdot is Val Huber sucking?

    Each time it's this PR-ish piece on how his Reactive Progamming model isn't such a bad idea. How the hell does he get these articles to run when so many other good articles get shot down?

    STOP IT SLASHDOT. No one wants your Reactive Programming marketing articles.

  • Aren't these called constraints or propagation networks?

    Structure and Interpretation of Computer Programs [mit.edu] and Higher-order Perl [plover.com] have got something to say about these.

  • Reactive Programming (RP) is just flow based programming (FBP) which has been used successfully for 40+ years. Modern RP adds some nice syntactic sugar that makes it more feasable. I have been using RX https://rx.codeplex.com/ [codeplex.com] some time ago and am pretty happy with it. It combines very well with f# and functional programming. Always try to isolate small autonomous components and test them seperately with http://blogs.msdn.com/b/rxteam... [msdn.com] and http://visualrx.codeplex.com/ [codeplex.com] . Here is a free book about FBP http [jpaulmorrison.com]
  • all /. articles on the subject load, then reload, then reload, then I close the tab.
    So, I have no idea what all this is about.
  • finally proven wrong?

    • by julesh ( 229690 )

      finally proven wrong?

      I think headlines to which the answer is "of course, duh" are a known class of exceptions.

  • I've been watching developers a lot lately. The ones I've been watching will do anything in their power to not have to think about the data they're dealing with. Rather than code an SQL query, they'll harp at their manager that they need a object persistence framework. Rather than deal with hardware, they'll build everything as web services, until even a time query takes several seconds and 14 layers of abstraction. Rather than consider a data structure, they'll stuff everything into a map whether the appli
    • by jbolden ( 176878 )

      You sound like you would consider it wasteful. Reactive programming is a paradigm for when views dominate and uses an more sophisticated variant of lazy evaluation to allow for mutable variables that are only fully evaluated when needed, rather than when defined. Lazy is really useful for being able to manipulate indefinite or even infinite data structures without introducing elements of implementation into algorithms. So it makes your code vastly more maintainable but often at the cost of quadratic memor

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...