121 points
*
/**
 * Gets the user
 **/
fun getUser() {
    return this.user;
}
permalink
report
reply
32 points

I’m sorry, I don’t think I understand what’s happening here…

permalink
report
parent
reply
28 points

Let me find the sequence diagram…

permalink
report
parent
reply
12 points

You need the requirements doc from marketing. Then it will all totally make sense for sure. No cap.

permalink
report
parent
reply
8 points
*

Okay now I get the joke.
I hate these kind of people.

By the way, your ``` both need to be on their own, separate line

permalink
report
parent
reply
3 points

It renders correctly in my client (Sync), what are you using? I’ll edit it anyway.

permalink
report
parent
reply
2 points
*

It renders correctly on the web as well for me.

But the ``` being on their own line is how to write it properly, as stated this website among many others.

This way, you can put the intended programming language on the same line as the first ```, ensuring proper colour coding!

Ex.

echo "Hello $name\n";
echo "Hello $name\n";

EDIT I checked on mobile, it rendered odd on Jerboa for me:

Now it is fixed:

permalink
report
parent
reply
79 points

My comments are just the code that didn’t work but I don’t want to delete yet because I might make it work except I never will be cause I already rewrote it so it does.

permalink
report
reply
18 points

Are you me

permalink
report
parent
reply
7 points

Well I hate you all.

permalink
report
parent
reply
2 points

Sorry, I just get anxious that I’m suddenly gonna need that code

permalink
report
parent
reply
48 points
*

Hey thanks for reminding me I made a clock squared in blender about 2 years ago

yes there is an error in the image, and no I’m not telling you where it is

permalink
report
reply
44 points

at 6 it says 12:30

permalink
report
parent
reply
11 points

1 o’clock and 10 o’clock are the the wrong angles.

permalink
report
parent
reply
5 points

You mean they’re slightly off? Like 7:00?

permalink
report
parent
reply
4 points

Yup, like 7 PM.

permalink
report
parent
reply
4 points

An interesting concept would be if all hand on the 12 clocks would work, but the hands of the clock in the middle are stuck at 12 position, this way the hands in the middle would point to the clock showing the correct time.

permalink
report
parent
reply
1 point

That’s a neat way of doing it

permalink
report
parent
reply
2 points

why do you hate Zoomers?

permalink
report
parent
reply
1 point

As a zoomer myself i do find it funny :3

permalink
report
parent
reply
2 points
*

What a fun idea!

Is it on purpose that all clocks in this are coupled at the 3 o’clock position? I assume all the clocks go the same speed. Then the large clock and all the smaller clocks at the 3 o’clock position (there are 13 of them) would show the same time. E.g. in one hour, the 12 o’clock position would show 1 o’clock, but the large clock and all the clocks on the 3 o’clock position would show 4 o’clock.

Oh and why is it a clock squared if you have three layers of clocks? Isn’t it cubed then?

permalink
report
parent
reply
1 point

I was mainly thinking of making some recursion hence why all the subclocks mirror the parent clock (for that given hour). Also I called it clock squared because I didn’t think the resolution would be high enough for people to actually notice the 3rd level of clocks.

You might notice that some dials don’t really align with the hours they’re supposed to show. That’s because I had to place a bunch of clocks at varying hours with a viewport rendering the parent clock at an angle that probably made it difficult to spot the errors. I rendered it once and didn’t bother re-rendering it once I saw the errors :)

permalink
report
parent
reply
2 points

Haha yes, recursion is always fun!

Although I’m still confused on what the clock would show in an hour. Because if the subclocks mirror the parent clock at the given time, then they would all be stuck to the hour they are positioned on? Or if they can move then the sublcocks are coupled to 3 o’clock of the main clock. But well, it is all hypothetical anyways :D

permalink
report
parent
reply
2 points
*

11 is missing the hour hand in the miniatures.

permalink
report
parent
reply
33 points

I know I’m probably doing it wrong but this is how I feel whenever I write unit tests

permalink
report
reply
21 points
*

Checked one of mine:

# get path to the download directory

Oh, ok.

permalink
report
reply
24 points

The code directly below:

function getPathToUploadDirectory() {
  return config.tmp_path
}
permalink
report
parent
reply
1 point

If your company uses some sort of code checking tool on PRs, there may be a requirement that all functions have a docstring, even if it’s obvious what it’s doing. Leads to silly comments like this quite often

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.2K

    Monthly active users

  • 816

    Posts

  • 7.7K

    Comments

Community moderators