• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle

  • Dude, there are at least 4 different “for” loop syntaxes in Js/Ts alone:

    for (let num = 1; num <= 5; num++) {}.

    for (const num of numbers) {}.

    for (const num in numbers) {}.

    this.numbers].forEach(num => {});

    Also don’t forget ngFor and @for in html, and then the @for in sass/scss.

    That’s 7 different for loops and I haven’t included the non-for loops, or even left Angular.

    Once we include some scripting like I did just this week:

    bash: for i in {1…5}: do … done

    dos: for /L %%i in (1,1,5) do ()

    Then you can just stfu if I feel the need to remind myself of the exact syntax for one of the 3 or 4 different for loop options in c#.


  • As a senior programmer I can’t write a for loop without the internet.
    I can’t remember the last time I saw a job listing that didn’t expect me to be an expert in at least 5 languages. The best part is that halfway through the interview you learn that they are no longer using half the languages listed, and are “transitioning” towards 2 others that aren’t even listed. You want me to whip out examples written in Fortran, C++, Rust, JS, and some random word you claim is a language in 2 hrs without the internet? Bitch, I don’t even think I could get prewritten “Hello World” examples compiled in 5 different languages in 2 hrs, much less on machine that I have never seen before.