@[email protected]
link
fedilink
English
162Y

one specific programming language

I think you’d be hard pressed to find someone with any sort of programming background, even just as a hobbyist, who doesn’t understand that for loop notation, whether or not they know the specific language it’s from. (I couldn’t even tell you what specific language that’s from, because that notation matches so many different ones.)

I have a 15 year old son; he definitely has not seen summation in math classes yet, but he has far more than enough programming experience (even just from school) to understand the for loop.

@[email protected]
link
fedilink
English
12Y

I think its Java.

@[email protected]
link
fedilink
English
32Y

It’s any C derivative language.

@[email protected]
link
fedilink
English
12Y

Could also be Javascript or C#.

@[email protected]
link
fedilink
English
22Y

Or C or C++

@[email protected]
link
fedilink
English
0
edit-2
2Y

Java/C# would have types before the variables:

double sum = 0d;
for (int i = 0; i < 4; i++)
	sum += 3 * i;
@[email protected]
link
fedilink
English
32Y

Only if they’re declared in the snippet.

Create a post

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
  • 1 user online
  • 828 users / day
  • 79 users / week
  • 904 users / month
  • 2.75K users / 6 months
  • 0 subscribers
  • 2.97K Posts
  • 31.5K Comments
  • Modlog