There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Matombo , in Welcome to the wonderful world of code obfuscation

Ok another US local units are retarded rant: it’s called weekEND! why do you start your week at sunday and not monday! Sunday is part of the weekEND!

MrScottyTay ,

I’m English, not American but I see it as Saturday and Sunday are the two ends of the week. Like how a string has two ends. The weekend is both the start and the finishing end of the week.

ChrissieWF ,

So, when someone asks if you are free the next two weekends, you assume they’re talking about the next Saturday (tail weekend) and the next Sunday (front weekend)?

MrScottyTay ,

No, the two ends of a week create a singular weekend.

JohnEdwa ,

Just like the two ends of a string create a singular string end.

Magnetar ,

I’ve never understood string physics.

Matombo ,

since we are in a temporal context here i would argue that there is a clear distrinction between beginning and end here

MrScottyTay ,

End doesn’t always have to be the latter side of something though like I said earlier with the string analogy. The start is also an end.

Leate_Wonceslace ,
@Leate_Wonceslace@lemmy.dbzer0.com avatar

If you’re referring to an “end” of an object, it can refer to the extreme of a side of it. For example, aglets are at either end of a shoelace.

Matombo ,

I’m refering to end in a temporal sense because we are talking about a time context here. There is a clear direction so going backwards brings you to the begin.

killeronthecorner , in Debugging
@killeronthecorner@lemmy.world avatar

I’m not sure if this is a direct quote from Your Code as a Crime Scene, but it’s a good book and takes this same stance!

idunnololz , in Debugging
@idunnololz@lemmy.world avatar

Hey. Sometimes the bug is in a third party library. I didn’t do it. I swear!

CJOtheReal , in Debugging

Its usually a typo lol

quinkin , in GoOn

1 and 0. Some assembly required.

MystikIncarnate ,

32 or 128 of them, depending on protocol.

teft , in Me trying to fix a complex bug that's not important
@teft@startrek.website avatar

How some people are in comments. Always gotta get that one last comment in the chain in.

ErKaf ,

I disagree

teft ,
@teft@startrek.website avatar

Yeah? Well, you know, that’s just like, your opinion, man.

QuazarOmega ,

Yes.
aaf(1)

ErKaf ,

No

Blamemeta ,

YES!

Isoprenoid ,
ErKaf ,

I will never let it go!

Isoprenoid ,
ErKaf ,

Story of my life

Isoprenoid ,

Is there actually a limit to how far a comment thread can go?

ErKaf ,

I don’t think so.

general_kitten ,

it just continues forever until the ui either fails or doesnt

ErKaf ,

Or until someone of us here stops commenting

Isoprenoid ,
ErKaf ,

Two reply from two people at the exact same time. Do I need to answer both of you to win now?

Btw really nice meme.

bellsDoSing ,

Nah, one is enough. ^^ Curiosity got the better of me thinking about how squished the UI might end up looking.

ErKaf ,

Thanks for allowing me to only write one comment all the time.

Isoprenoid ,

Yeah, one comment keeps it simple. We’re just stress testing.

https://programming.dev/pictrs/image/f989fca0-6edf-4b37-96af-e772e7b5faaf.jpeg

philm ,

We’re in the third rainbow, keep building more stripes lol

ErKaf ,

No worrys. I will never stop.

philm ,

And we’re about to enter the fourth rainbow dimension in the next comment…

emptyother ,
@emptyother@programming.dev avatar

Y’all done yet?

ErKaf ,

No!

Isoprenoid ,
bellsDoSing ,

Oh, it’s still going!

ErKaf ,

Of course!

bellsDoSing ,

Alright, looks like 40% filled up on my screen atm.

philm ,

Rookie numbers, it’s probably 15% on my screen, There’s space for a lot more rainbows

ErKaf ,

My screen is used 50% now on my Fairphone 3+

bellsDoSing ,

I hope we’re all talking about portrait orientation. Oh boy, filling it up in landscape mode seems a daunting task. °!°

ErKaf ,

In my App landscape is the same because it makes splitscreen between the Post and the comment section. So the comments are the same width.

bellsDoSing ,

I see, somehow completely forgot that apps might be different. In browser version in landscape (I just noticed) there’s also the right sidebar, which reserves some space. So it wouldn’t even have to go all the way.

ErKaf ,

It’s getting really tight here.

philm ,

Plenty of space for me still (browser version on desktop)

ErKaf ,

Yea the moment I have no space here anymore I have to switch to desktop.

philm ,

Let’s start the sixth rainbow!

ErKaf ,

Leeeeets goooo

bellsDoSing ,

Nice, bit over half way point here.

philm ,

I just calculated exact subpixel accuracy, for me it’s exactly 20.5̅9̅5̅5̅3̅3̅4̅9̅8̅7̅5̅9̅3̅0̅5̅2̅1̅0̅9̅1̅8̅1̅1̅4̅1̅4̅3̅9̅2̅0̅ % that is still missing to fill the whole comment body with rainbows, way to go!

ErKaf ,

Thats not accurate anymore because of my reply. Recalculate please.

bellsDoSing ,

I do wonder if there’s a hard limit at some point regarding “nested replies”…

ErKaf ,

I don’t think so.

philm ,

We’re at 22.8̅2̅8̅7̅8̅4̅1̅1̅9̅1̅0̅6̅6̅9̅9̅7̅5̅1̅8̅6̅1̅0̅4̅2̅1̅8̅3̅6̅2̅2̅% slowly gaining rainbow ground

ErKaf ,

Niiiiiiiiiiiicccccccce. Leeeeeets write MORRRE comments.

philm ,

SUUUUUUUUURE!!!11 I"M oN ITTTTTTTT

bellsDoSing ,

One takeaway from this surely is that such deeply nested endeavours sure are easily missed.

ErKaf ,

ey

bellsDoSing ,

Ha, for sure I missed the other comment…

ErKaf ,

So we can continue now.

bellsDoSing ,

Alright, second season, here we go!

ErKaf ,

Well first a quick PREVIOUSLY ON PROGRAMMER HUMOR: “How some people are in comments. Always gotta get that one last comment in the chain in.”

bellsDoSing ,

Right, that’s how it all started.

I just unfolded everthing. Seems we are on the 8th rainbow. Almost looks like on my phone, while in potrait mode, 10 rainbows will likely have it filled up.

ErKaf ,

On mobile, I’m already unable to reply to you.

bellsDoSing ,

Oh wow, even if you put it in landscape? In either case, lemmy’s web interface hides a lot of context by default when answering via the “messages” notifcation. So in a sense, with that one could reply endlessly. Then again, that’s not part of our experiment I’d say.

ErKaf ,

With my App I do not have more space in landscape because I will see the post and comment section at the same time in split screen mode.

bellsDoSing ,

I see. 9th rainbow, here we go.

ErKaf ,

9 in a very small number imo

bellsDoSing ,

Kinda, but that’s “rainbows”.

Status quo (your comment): 8 x 7 + 1 = 57 sure is bunch of stripes.

ErKaf ,

On Desktop, we aren’t even at 50% yet, tho.

bellsDoSing ,

Oh boy… can’t promise you that I will last that long. I know it sounds pathetic, but is replying to one’s own comment an option (just for stress testing)?

ErKaf ,

GOOOOOOOOD!!!

bellsDoSing ,

Let the streak continue…

ErKaf ,

Two reply from two people at the exact same time. Do I need to answer both of you to win now?

Surp , in Debugging
@Surp@lemmy.world avatar

You could technically do this just like how GTA Vs gameplay was with all the different characters.

DieguiTux8623 , in me_irl

The worst case is when someone requires changes, you address them, but then they disappear/go on a leave.

If the repository rules require all conversations to be resolved before merging and only the original reviewer can mark them as solved, the PR is stuck forever even if the rest of the team approves it.

Blamemeta ,

At that point, you get your team lead to go in the repo settings and unblock it.

magic_lobster_party ,

Plot twist: it’s the team lead who goes on a leave

storcholus ,

That sounds like something you bring up in the retro

DieguiTux8623 ,

When the person came back from the leave I made some passive aggressive remark, hope this is enough 🤣

ohlaph ,

Have you tried ignoring their PRs for a few weeks?

MurdoMaclachlan , in Debugging
@MurdoMaclachlan@lemmy.world avatar

Image Transcription: YouTube Comment


@davidm.313

“Debugging. The game where you are the criminal, the victim, and the detective at the same time. But you probably don’t know where the crime took place, or what it was. But there definitely is a crime.”


I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.

Zacryon ,

Good human.

pimeys , in me_irl

A 15000 line PR landing on a Friday evening for the lucky random reviewer to open on Monday. “Please approve it fast so we avoid too many conflicts.”

ohlaph ,

I would review it and immediately tell them to break it into bite sized PRs.

My coworker kept doing that. We had several talks about it. Other members of our team had talks about it with them, and even our manager. Finally, I marked the PR as needs work, told them to break it into several PRs. They weren’t happy, but I was tired of dealing with PRs that were 30+ files, unrelated in change, and over 1500 lines of code changes. They were pretty mad at me for a while. But it stopped shortly afterwards.

It shouldn’t take more than an hour to review a PR.

pimeys ,

Yeah I’ve been working a lot in my life in seed stage startups and it is quite common in the early stages… I try to make things change though.

douglasg14b ,
@douglasg14b@programming.dev avatar

There is no context here though?

If this is a breaking change to a major upgrade path, like a major base UI lib change, then it might not be possible to be broken down into pieces without tripping or quadrupling the work (which likely took a few folks all month to achieve already).

I remember in a previous job migrating from Vue 1 to Vue 2. And upgrading to an entirely new UI library. It required partial code freezes, and we figured it had to be done in 1 big push. It was only 3 of us doing it while the rest of the team kept up on maintenance & feature work.

The PR was something like 38k loc, of actual UI code, excluding package/lock files. It took the team an entire dedicated week and a half to review, piece by piece. We chewet through hundreds of comments during that time. It worked out really well, everyone was happy, the timelines where even met early.

The same thing happened when migrating an asp.net .Net Framework 4.x codebase to .Net Core 3.1. we figured that bundling in major refactors during the process to get the biggest bang for our buck was the best move. It was some light like 18k loc. Which also worked out similarly well in the end .

Things like this happen, not that infrequently depending on the org, and they work out just fine as long as you have a competent and well organized team who can maintain a course for more than a few weeks.

douglasg14b ,
@douglasg14b@programming.dev avatar

The follow on. Lots and LOTS of unrelated changes can be a symptom of an immature codebase/product, simply a new endeavor.

If it’s a greenfield project, in order to move fast you don’t want to gold plate or over predictive future. This often means you run into misc design blockers constantly. Which often necessitate refactors & improvements along the way. Depending on the team this can be broken out into the refactor, then the feature, and reviewed back-to-back. This does have it’s downsides though, as the scope of the design may become obfuscated and may lead to ineffective code review.

Ofc mature codebases don’t often suffer from the same issues, and most of the foundational problems are solved. And patterns have been well established.

/ramble

ohlaph ,

It was simply constant refactors, moving random stuff, etc. like, every week. It was unnecessary change.

catacomb ,

I’d be pulled up at my job for any PR exceeding a few hundred lines. I don’t even know what they’d do if I just dropped a 15000 line stinker.

douglasg14b ,
@douglasg14b@programming.dev avatar

Just a few hundred?

That’s seems awfully short no? We’re talking a couple hours of good flow state, that may not even be a full feature at that point 🤔

We have folks who can push out 600-1k loc covering multiple features/PRs in a day if they’re having a great day and are working somewhere they are proficient.

Never mind important refactors that might touch a thousand or a few thousand lines that might be pushed out on a daily basis, and need relatively fast turnarounds.

Essentially half of the job of writing code is also reviewing code, it really should be thought of that way.

(No, loc is not a unit of performance measurement, but it can correlate)

catacomb ,

To be honest, I agree they should be able to be larger at times.

I had a lot of disagreements when I was on a new codebase, knew what I was doing and I was able to push a lot of code out each day.

The idea is to have them small, easily readable with a tight feedback loop. I argued that bootstrapping a project will have a lot of new code at once to lay the foundations and my communication with the team was enough feedback. If I split it up, each PR would have been an incomplete idea and would have garnered a bunch of unnecessary questions.

That said, I think it’s generally pretty easy to put out multiple PRs in a day, keeping them small and specific. As you say, half of the job is reading code and it’s nicer to give my coworkers a set of PRs broken down into bite sized pieces.

DeltaTangoLima , in Debugging
@DeltaTangoLima@reddrefuge.com avatar

My biggest problem isn’t discovering my own crime. It’s trying to determine what my motive was at the time.

agent_flounder ,
@agent_flounder@lemmy.world avatar

“I plead insanity”

Gormadt OP ,
@Gormadt@lemmy.blahaj.zone avatar

Usually my motive is, “It’s 3am I’ll just put this temp placeholder here and fix it in the morning.”

Proceeds to not fix it due to forgetting by the morning

AnarchoSnowPlow , in me_irl

Also me waiting for the junior dev to address review comments satisfactorily.

aurelian ,
@aurelian@lemmy.ml avatar

It’s a game where they try to make you impatient enough that you do it for them.

RagingRobot ,

Maybe offer to pair with them?

petey , in me_irl

Yeah, this is my colleagues waiting for me, poor bastards

Cheesebaron , in me_irl

This always happens to me when I’ve written some genius code. Takes so long to review it, because my caveman colleagues don’t understand it.

nottheengineer ,

If you wrote good code, even a caveman would understand it.

magic_lobster_party ,

Are you sure your code isn’t just overly convoluted?

sbv ,

I’m pretty sure that’s what they just said.

Cheesebaron ,

Caveman no understand

Cheesebaron ,

It is amazing how many cavemen didn’t understand the sarcasm of my comment, and in their rage had to downvote it to hell. 😂

sbv ,

I feel like we Lemmites are not great at humour and we are quick to downvote. 🤷

Were you referencing grugbrain.dev ? I only ran into that recently, and I got a real kick out of it.

Cheesebaron ,

I read that recently as well, it is a great read. I can relate to a lot of the things. While it is meant as a humor piece, there is some solid advice in there.

I didn’t exactly have it in mind when I wrote my comment, but maybe subconsciously 😅

sbv ,

I’ve recently started dealing with architects. A lot of the comments hit close to home.

bellsDoSing ,

Great read, certainly had more relatable things in there than I’d expected.

1984 ,
@1984@lemmy.today avatar

With this attitude, the problem is you actually. Sorry.

coloredgrayscale , in Merge then review

It can work if you have a test zone and only a small amount of people work on a given code base.

Also checks to ensure the code compiles and tests pass before merging, as some quality gateway.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines