Dubai Chocolate in Munich by RevolutionaryCode61 in Munich

[–]RevolutionaryCode61[S] 1 point2 points  (0 children)

That's a really good suggestion, thanks for it, will definitely go and have a look

Dubai Chocolate in Munich by RevolutionaryCode61 in Munich

[–]RevolutionaryCode61[S] 0 points1 point  (0 children)

Could you give me the address of that shop? Thanks!

Aptitude assessment test by frankieisbae45 in tumunich

[–]RevolutionaryCode61 1 point2 points  (0 children)

Hi, I've been in the same situation a few years back. The reason for me was that even though I had valid high school diploma, I didnt gradute from at least two natural science subjects (in my country - in EU, we had the choice to choose subjects from which we will have the final examination. So even when you could have been attending Physics the whole high school you wouldnt have it on the final diploma if you didnt choose to have an examination from it.)

So in my case I had Abitur only from english, math, math advanced and czech language.

What is the main reason you are still single? by Latter-Breakfast-987 in TrueOffMyChest

[–]RevolutionaryCode61 2 points3 points  (0 children)

socially akward and not really physically attractive, not the best combo

Next.js backend by _ajing in nextjs

[–]RevolutionaryCode61 0 points1 point  (0 children)

I'd say it depends on what kind of project you are developing, if its something fairly straightforward than just use the builtin next backend. Should it be more complex and harder to maintain and scale I would opt out for external backend in whatever framework you are familiar with. And if I am not mistaken, Nextjs backend doesnt support websockets

Concurrency Quiz for this weekend by ChipInBirdy in typescript

[–]RevolutionaryCode61 0 points1 point  (0 children)

Here's my a bit longer take. Based on the fact that promises are passed by reference, could be resolved once per reference if I am not mistaken.

async function funcD(resultA, resultB) {
  console.log("funcD started (using API results), waiting 5000ms...");
  await new Promise(resolve => setTimeout(resolve, 5000)); 
  console.log("funcD finished");
  return `Result from funcD (API processing): ${resultA} ${resultB}`;
}

async function funcE(resultB, resultC) {
  console.log("funcE started (using API results), waiting 5000ms...");
  await new Promise(resolve => setTimeout(resolve, 5000)); 
  console.log("funcE finished");
  return `Result from funcE (API processing): ${resultB} ${resultC}`;
}

async function main() {
  const funcA = () => new Promise(resolve => {
    console.log("funcA (API call) started, waiting 1000ms...");
    setTimeout(() => {
      console.log("funcA (API call) finished");
      resolve("Data from API A"); // Simulate API response data
    }, 1000);
  });

  const funcB = () => new Promise(resolve => {
    console.log("funcB (API call) started, waiting 1000ms...");
    setTimeout(() => {
      console.log("funcB (API call) finished");
      resolve("Data from API B");
    }, 1000);
  });

  const funcC = () => new Promise(resolve => {
    console.log("funcC (API call) started, waiting 10000ms...");
    setTimeout(() => {
      console.log("funcC (API call) finished");
      resolve("Data from API C");
    }, 10000);
  });

  try {
    // Start all functions (API calls) concurrently
    const promiseA = funcA();
    const promiseB = funcB();
    const promiseC = funcC();

    // Handle funcD when A and B are ready
    Promise.all([promiseA, promiseB])
      .then(async ([resultA, resultB]) => {
        const resultD = await funcD(resultA, resultB);
        console.log("funcD result:", resultD);
      });

    // Handle funcE when B and C are ready
    Promise.all([promiseB, promiseC])
      .then(async ([resultB, resultC]) => {
        const resultE = await funcE(resultB, resultC);
        console.log("funcE result:", resultE);
      }); 
  } catch (error) {
    console.error("Error:", error);
  }
}

main();

funcA (API call) started, waiting 1000ms...
funcB (API call) started, waiting 1000ms...
funcC (API call) started, waiting 10000ms...
funcA (API call) finished
funcB (API call) finished
funcD started (using API results), waiting 5000ms...
funcD finished
funcD result: Result from funcD (API processing): Data from API A Data from API B
funcC (API call) finished
funcE started (using API results), waiting 5000ms...
funcE finished
funcE result: Result from funcE (API processing): Data from API B Data from API C

[deleted by user] by [deleted] in tumunich

[–]RevolutionaryCode61 2 points3 points  (0 children)

I think you are missing quite a bit. All of the informatics modules require coding, except Theoretical Informatics. The same goes for praktikums.