You are viewing a single thread.
View all comments View context
17 points

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.

permalink
report
parent
reply
2 points

I think its Java.

permalink
report
parent
reply
3 points

It’s any C derivative language.

permalink
report
parent
reply
1 point

Could also be Javascript or C#.

permalink
report
parent
reply
2 points

Or C or C++

permalink
report
parent
reply
1 point
*

Java/C# would have types before the variables:

double sum = 0d;
for (int i = 0; i < 4; i++)
	sum += 3 * i;
permalink
report
parent
reply
3 points

Only if they’re declared in the snippet.

permalink
report
parent
reply

Memes

!memes@lemmy.ml

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

Community stats

  • 9.4K

    Monthly active users

  • 12K

    Posts

  • 270K

    Comments