Questions tagged [waterfall]

Waterfall is an abstraction model for software design which translates requirements into lists of simple routines and arranges them in a sequence of phases based on dependencies.

In Javascript, Elan Shanker's async-waterfall package organizes series of functions with callback completions into waterfalls. It runs an array of functions in series, each passing their results to the next in the array. However, if any of the functions pass an error to the callback, the next function is not executed and the main callback is immediately called with the error.

In chart design, a waterfall chart is a form of data visualization that helps in understanding the cumulative effect of sequentially introduced positive or negative values. These intermediate values can either be time based or category based.

217 questions
7
votes
5 answers

Asyncjs : Bypass a function in a waterfall chain

I want to jump a function from a chain of waterfall functions with asyncjs in nodejs. My code look like this : async.waterfall([ function(next){ if(myBool){ next(null); }else{ // Bypass the 2nd function …
manuquentin
  • 894
  • 1
  • 11
  • 19
6
votes
14 answers

when a bug for client is really a new feature

I read what-payment-structure-do-you-use-for-small-projects and I wonder how you guys are dealing with bug vs. feature. I once had a situation where a client wanted static reports. Then near the end of the project after most of the work on reports…
IAdapter
  • 62,595
  • 73
  • 179
  • 242
6
votes
3 answers

Node async parallel inside waterfall

I'm building a server in Nodejs to retrieve data from some database. I've worked with the async library for some time now and figured out some things like putting a waterfall inside a parallel function. I stumbled upon a problem where I first need…
Hans
  • 127
  • 1
  • 9
6
votes
2 answers

Understanding Node.JS use async.waterfall how to execute external functions

I need to execute async function using async.js module. But i have some problem when i execute external functions. the code is pass well. but when i change global variables to local variables, i can't set using parameters. var async =…
jaewan shin
  • 61
  • 1
  • 3
6
votes
2 answers

What is a simple implementation of async.waterfall?

I'm using some functions from the async library, and want to make sure I understand how they're doing things internally; however, I'm stuck on async.waterfall (implementation here). The actual implementation uses other functions from within the…
sgarza62
  • 5,998
  • 8
  • 49
  • 69
5
votes
1 answer

R Plotly: How to set the color of Individual Bars of a Waterfall Chart in R Plot.ly?

I am trying to change the color of the individual bars of a waterfall chart using R Plotly. More specifically the first and the last bar, I want it to be blue and yellow respectively. So in the below graph, Group 1 has to be blue and Group 2 has to…
Abhishek R
  • 4,087
  • 1
  • 17
  • 21
5
votes
1 answer

I use async waterfall, why callback is not a function?

I get this: Error: TypeError: callback is not a function Code: var async = require('async'); async.waterfall([ (callback) => { callback(null, 'test'); }, async (value1, callback) => { const data = await…
rsmnarts
  • 185
  • 2
  • 14
5
votes
6 answers

Are you an agile/pragmatic developer in a waterfall organization?

If so, how do you deal with things that just don't "feel" right such as: not writing unit tests not having a continuous build not refactoring not having a team coding standard not pair programming not doing iterations no daily standups no…
casademora
  • 67,775
  • 17
  • 69
  • 78
4
votes
5 answers

SDLC and Software Process

I have some confusion about the terms SDLC and Software Process. With respect to these (and more or less similar) terms, a have a few question. What is the difference between SDLC and Software Process ? (I understand SDLC is not just…
Vipul Pathak
  • 49
  • 1
  • 2
4
votes
0 answers

What is a function call written as (0, fn)(argOrArgs)?

I am using Node.js async/waterfall, find this strange pattern of program: var callback = (0, _once2.default)(callback || _noop2.default); can someone explain what (0, _once2.default) means? why not directly use _once2.default?
Jacky Lau
  • 665
  • 5
  • 21
4
votes
1 answer

(Rational) Unified Process vs Waterfall Model

I was reading about software development model and life cycle, where I learned about waterfall model and Unified process. However both the process involves requirement gathering, design phase, development testing and deployment (inception,…
coolDude
  • 407
  • 1
  • 7
  • 17
4
votes
2 answers

async.js waterfall in node.js: how to use bind and this?

I'm learning node.js coming from a PHP background with a limited JavaScript level. I think I got over now the change of mindset implied by the asynchronous approach. And I love it. But, as many others before me, I quickly understood the concrete…
user2456016
4
votes
1 answer

handling error in async waterfall with expressjs

I don't see why expressjs don't handle error when it's throw in async.waterfall var express = require('express') , app = express.createServer() , async = require('async'); app.use(express.errorHandler({ dumpExceptions: true, showStack:…
PierrickP
  • 107
  • 7
3
votes
1 answer

Find the reason of long gap in performance waterfall?

In this report https://gtmetrix.com/reports/www.datanumen.com/tFIOxtvx/, there are long gap between the requests, as below: In https://gtmetrix.com/blog/how-to-analyze-a-waterfall-chart/#long-empty-gaps and Gaps in FireBug waterfall chart, it is…
alancc
  • 487
  • 2
  • 24
  • 68
3
votes
1 answer

Convert Dataframe to make Waterfall Chart in ggplot2

I want to transform my dataframe into a format that would be suitable for a waterfall chart. My dataframe is as follows: employee <- c('A','B','C','D','E','F', 'A','B','C','D','E','F', 'A','B','C','D','E','F', …
nak5120
  • 4,089
  • 4
  • 35
  • 94
1
2
3
14 15