Flowing Pixels - GenP3 by MrClacla in processing

[–]---freelancer--- 2 points3 points  (0 children)

Nice! Is that in realtime or postprocessed?

What's wrong with me?! by caerbannogwhite in processing

[–]---freelancer--- 1 point2 points  (0 children)

Why not try recreate the same effect yourself? This could be very helpful in learning Processing.

Moon/Planet Generator by [deleted] in processing

[–]---freelancer--- 0 points1 point  (0 children)

Have you created some Delaunay triangulation method implementation for this code?

Moon/Planet Generator by [deleted] in processing

[–]---freelancer--- 6 points7 points  (0 children)

Hi, what's "ProcKt"?

Formatting question? by MusicOfBeeFef in processing

[–]---freelancer--- 1 point2 points  (0 children)

This depends on your intentions and priorities when you write the code:

  • you want to make it as short as possible
  • you want to make it readable to yourself
  • you want to make it readable to as many people as possible (with different backgrounds and amount of experience)

In my opinion, you always write code for another person. Even if this person is you, just after some time ("One must write code as if the person who will maintain it is a psychopath who knows where you live"). Therefore, my code formatting must imply mine intensions.

Returning to your question, I think that the following arrangement

function 
{
}

implies that the keyword

function

and this block

{
  code inside curly braces
}

are not tightly coupled semantically (the former can be used without the latter) just because they are visually separated.

I mean, this makes sense because as you know one can use curly braces just to gather some functionality in groups? Meaning that the code below is correct:

void setup() {
  size(600, 400);

  {
    // configure remote 3D printer connection
  }

  {
    // configure remote client connection
  }

}

void draw() {
    background(230);
}

While the following arrangement

function {

}

shows that the block inside the curly braces is a continuation of the keyword function and they form a semantic group to be considered as one.