symbol ‘lenght’ undefined
Length must be my most mistyped function ever, for some reason my brain goes oh ye, lenght, t at the end until I see the redline under it again
I had the same problem when I was younger (~15) but with "strength".
You know, that’s probably one reason why some languages just use len
(which I like; maybe you can tell I’m not a Java programmer)
Proud java, js and ts programmer (everything uses length) :(
Does not compile.
laugh in JS
Still doesn't work 😂
Let i = 0
Currently the compiler doesn’t know wtf i is!
"for a limited number of runs"? O.o
data.length is equal to 3
but data.lenght is not defined.
Data is an enumerable object defined elsewhere which has a lenght property so it’s chill
You have to see the loop in context.
For as long as needed.
"while true"
It's just faster to freeze.
for(;;)
That's where I expected this joke to go, was disappointed.
You could make for(i = 10; i == i; i--). A bit more confusing for novices, but also eternal. Even survives rollovers.
Yeah, that's what I was hoping the original was doing.
He’ll never get to browse her with that shitty code.
I sense this is supposed to mean "forever" but it looks like it just iterates to the length of the data. Is that the joke and he's actually saying he doesn't need her forever, or am I missing something about the syntax? Is it implied that the loop adds items to data? Have I already thought about this more than you have?
I think the joke is supposed to be that his brain is fried and autocompletes "for" to a common for-loop pattern, when the girl is asking him for what purpose he needs her.
Ah, thanks.
Is this an AI auto complete joke?
I think you're overthinking it to make it funny. The OP is just not funny.
I'm the hero the OP needs, but not the (lack of) one they deserve. :P
Better one would be:
for (age=now; age<death; age++)
Some people run this on parallel threads to make the most pf their time. /s
syntax error; relationship crash
What the F is this?
Syntax error
Hopefully his lenght is bigger than his attention span for spelling
i< undefined
lenght is undefined
collection.Coutn()
I dont understand
"i" need "for" , so it can be used in a for loop
Nah, not falling for this engagement bait! Oh shit....
lenght? comma instead of semicolon? i=0 (most likely) without the variable being initialized first?
I'ma iterate through you for the full length of my index
Sounds dirty.
Compilation error
++i
variable i not defined
So dumb but still funny
Compiler Error: “lenght” is not a property of data
The real romantic answer would have been (;;)
Coulda written life.length in the for cycle, that would be better.
So the data length is how long he can last?
Waaaaaaa the horror of wrong keyword even in the world where IDE suggest you, is that even possible???
Damned compile error ruining his perfect moment!
I’m more a (auto & item : data)
“As long as I live(s)”
Get an enumerator bro
People are still using odlschool imperative for loops in 2025? Now that almost every language has a way to enumerate items? Either some variation of for...in or functional style with .map?
C developers exist and we're not necessarily odlschool. Plus this does use enumeration (i.e. data.lenght)
I hope nobody ever takes your stapler
If I have an iterator with complex operations, it's the best option. Then I can do diabolical stuff like
for (let y = radius;
y + radius * Math.sin(angle) < height;
y += radius * Math.sin(angle)) {
for (let x = radius, j = 0;
x + radius * (1 + Math.cos(angle)) < width;
x += radius * (1 + Math.cos(angle)), y += (-1) ** j++ * radius * Math.sin(angle)) {
drawHex({ x: x, y: y })
}
}
I mean they have thier place, like if you want to modify a list when iterating its better to change the "i" than do whatever weirdness you'll do with the for each
enumerate for loops don't solve all problems
sometimes you need to write fragment shaders - blur implementation needs old school for loop
or implement path-finding, list all nearby cells, etc - also need old school for loop
lenght
guess he doesn't need her and just wants to error around
She'll make an exception for him
You have to Try!
There's gotta be some sort of catch to this, right?
throw him out
Yes. But Not before she dumps a giant log first.
She seems stacked
It'll abend in tears.
Finally some realises that it’s just a scam
In love, you can have variable declarations but you always declare it, no matter how small.
and to never treat your spouse like an object
Eyy! Take an upvote
,
{
callYourFunctionDummy();
}
gesundheit
that's the german way of pronouncing it
Even if that was spelt correctly. Cant get length of undefined
must be German?