this post was submitted on 19 Apr 2025
131 points (94.6% liked)

Programming

19750 readers
98 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 4 days ago (3 children)

In the meantime, I am interviewing juniors who can't write a while or for loop without looking on the internet...

The future is looking grim.

[–] [email protected] 11 points 4 days ago

This is giving me hope that I might actually be fine and succeed in interviews lol. On the other hand maaan I really don't wanna maintain code written by AI-andys...

[–] [email protected] 9 points 4 days ago

Should ask them to make an if loop and see what happens

[–] [email protected] -4 points 4 days ago (3 children)

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.

[–] [email protected] 3 points 3 days ago (1 children)

why are you booing them; they're right!

[–] [email protected] 2 points 3 days ago

You must forgive them young Padawan, they still have fucks to give, or have only recently run out. They are still concerned with the "knowing" of things. It is only once you reach a severe and immeasurable deficit of fucks that you can completely let go of your personal pride and ego enough to admit that this shit is fucking ridiculous and you might as well just let Google/AI remember it for you.

[–] [email protected] 9 points 4 days ago (3 children)

What ramdon ass language could they possibly be pulling out of their ass for you to he completely unable to write a for loop? I've yet to see a for loop, or really any sort of loop that doesn't look pretty much exactly like the standard C style for loop

for(int x = 0; x < z; x++) {
}

If you have a C style language with iterator for loops like C++, Java and friends you almost certainly have this syntax

for(int x : numbers) {
}

Python has exclusively iterator for loops with this syntax

for x in range(z)

The only real difference is that instead of a colon : you use the in token.

At best I can see the need for a quick refresh on what the exact syntax is but if your a senior any languages you actually use should have a template for junk like this. I don't think I've manually written a loop in ages, I just type out iter for an iterator for loop or when I rarely need an index fori and the rest gets stamped out for me.

If your being tested on random languages you can simply just not be familiar with a language. I haven't touched Zig once but I'd totally be down to learn it. Everybody whos got a couple languages under their belt knows how easy it is to pick up new ones.

[–] [email protected] 5 points 4 days ago* (last edited 4 days ago)

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#.

[–] [email protected] 6 points 4 days ago

Plot twist, the company app is written in a Lisp-like language.

[–] Reptorian 2 points 3 days ago* (last edited 3 days ago)

In G'MIC, there's repeat(num_of_iters,_var_name,code();); on JIT code, and repeat code_block done outside of JIT. It has while, for, dowhile on JIT too. Other than repeat, there is only do while, and for which is while outside of JIT.

Note: _var_name, can be omitted. So, if you need to just repeat a code N times, that can be removed.

[–] [email protected] 4 points 4 days ago

fortran and js in the same sentence... Ugh... Not in a cold day in hell.