Click here to Skip to main content
16,004,647 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: I don't wanna talk about it, but I wanna talk about it... Pin
PIEBALDconsult21-Aug-24 16:05
mvePIEBALDconsult21-Aug-24 16:05 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon21-Aug-24 16:31
professionalJeremy Falcon21-Aug-24 16:31 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
charlieg22-Aug-24 0:59
charlieg22-Aug-24 0:59 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon22-Aug-24 2:44
professionalJeremy Falcon22-Aug-24 2:44 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
charlieg22-Aug-24 1:30
charlieg22-Aug-24 1:30 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon22-Aug-24 2:54
professionalJeremy Falcon22-Aug-24 2:54 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jörgen Andersson21-Aug-24 20:17
professionalJörgen Andersson21-Aug-24 20:17 
GeneralAsynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 13:33
professionalJeremy Falcon21-Aug-24 13:33 
So, here I am... n00bing it up in a new language and getting my learn on. Wut wut. And I come accross a feature that's postponed for now as the language is still young... async routines. Ok, I get it. It's new to the party. I can still do multi-threading, so not end of the world should I need to block something that would otherwise be non-blocking.

Buuuuuuuttt, ran across a few posts online with the typical "I never used it so I hate it" mantra. And it got me wondering, do people really hate the concept of asynchronous routines? Seems to me the only people that hate it just don't know it. Like at its core (using JavaScript as a reference) all it does is reduce complexity with what would otherwise be non-blocking code. Fail to see why that's so bad.

Using pseudocode...
JavaScript
function bruh() {
  const response = fetch('/stuff');
  // omg, we not done
  console.log(response);
}

async function bro() {
  const response = await fetch('/stuff');
  // omg, we done
  console.log(response);
}

Like, why is that so bad? I bet these people would freak out over the concept of generators. Laugh | :laugh: I just don't see why people would hate this. Am I not alone with this thought?
Jeremy Falcon

RantRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 16:15
mvePIEBALDconsult21-Aug-24 16:15 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 16:41
professionalJeremy Falcon21-Aug-24 16:41 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 17:16
mvePIEBALDconsult21-Aug-24 17:16 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 17:23
professionalJeremy Falcon21-Aug-24 17:23 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 17:26
mvePIEBALDconsult21-Aug-24 17:26 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 17:33
professionalJeremy Falcon21-Aug-24 17:33 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 7:23
mvePIEBALDconsult24-Aug-24 7:23 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 7:47
professionalJeremy Falcon24-Aug-24 7:47 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 8:05
mvePIEBALDconsult24-Aug-24 8:05 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 8:31
professionalJeremy Falcon24-Aug-24 8:31 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 9:48
mvePIEBALDconsult24-Aug-24 9:48 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 9:51
professionalJeremy Falcon24-Aug-24 9:51 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 9:57
mvePIEBALDconsult24-Aug-24 9:57 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 10:03
professionalJeremy Falcon24-Aug-24 10:03 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 10:23
mvePIEBALDconsult24-Aug-24 10:23 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 10:53
professionalJeremy Falcon24-Aug-24 10:53 
GeneralRe: Asynchronous waaahh??? Pin
Steve Raw21-Aug-24 16:30
professionalSteve Raw21-Aug-24 16:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.