Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7059531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:14:35+00:00 2026-05-28T04:14:35+00:00

I know that asynchronicity is half the point of node.js and that it’s really

  • 0

I know that asynchronicity is half the point of node.js and that it’s really great and efficient. However in some situations this programming pattern is just overkill and difficult. For instance, what if you wanted to write a script that takes some user input and uses it to create a MySQL row and saves it (I’ve just done this). It’s really annoying to have to create a separate function for every tiny step of the program and then have them all call each other in a row.

So how should such situations instead be handled? I tried out step, but it won’t work with coffee-script since it requires functions to be declared in the classic manner (function foo() {/* Bar */}). Coffee-script instead creates anonymous functions and assigns them to local variables (var foo = function() {/* Bar */})

I’m thinking it would just be simpler to mix up a method to get the process to wait for a callback to run. Arguments for asynchronicity aside, how would I go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:14:36+00:00Added an answer on May 28, 2026 at 4:14 am

    Try https://github.com/caolan/async

    The list of “Most Depended On” packages on http://search.npmjs.org/ provides insights into how acclaimed libraries are within the node community. async is in 7th place (depended on by 207 packages)…

    underscore    448
    coffee-script 341
    request       279
    express       268
    optimist      228
    connect       207
    async         207
    colors        199
    uglify-js     146
    socket.io     140
    redis         128
    jade          117
    jsdom         102
    commander     101
    mime           96
    

    Avoid libraries that “do not work” with CoffeeScript; they are trouble.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that the MsNLB can be configured to user mulitcast with IGMP. However,
I know that design patterns is generally something that's connected to OO programming, but
I know that there are more than a dozen questions about this. But I
I know that this may be common knowledge, but is there a way to
I know that this question might have been asked like 100 times, but, believe
I know that casting can really only be done from a sub class to
I know that I can use git commit --amend --file=path-to-my-new-message but this will amend
I know that objects are treated pretty much like singletons in scala. However, I
I know that I can do something like $int = (int)99; //(int) has a
I know that default cron's behavior is to send normal and error output to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.