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.

Blackthorn , in Merge then review

Probably unpopular opinion, but peer reviews are overrated. If coders are good AND know the project, the only thing you can do in a PR is nitpicking. They are more useful for open source collaborators because you want to double-check their code fits with the current architecture. But people here are reacting as if peer reviews could actually spot bugs that tests can’t catch. That happens rarely unless the contributor is junion/not good.

pomodoro_longbreak ,
@pomodoro_longbreak@sh.itjust.works avatar

Peer reviews can catch bugs that tests can’t catch.

I won’t disagree that peer reviews are overrated, but they’re a great way to train and onboard less experienced devs (who are just more fun to work with, anyway). Like I’m a platform dev, so I don’t have a “home” project - if I had to know every project before I opened a PR for it, I’d get hardly any work done. Review help other knowledge experts weigh in on my changes.

Anyway, one case for being pro

reverendsteveii ,

I operate from the presumption that code’s first job is to be as easy for a human to understand as possible. It should clearly communicate what it’s attempting to do. If your code isn’t written so that your colleagues, or you 2 years from now, can read it and understand it, it’s bad even if it’s whip tight, fits all the AC and has 100% test coverage with a perfect mutation score. That’s what I focus on when I review code: does it communicate intent semantically. Code that can be understood is code that can be reused, optimized, altered when use cases change, generalized out into even more reusable code, and provide insights that technically perfect but incomprehensible code can’t. I, like you, assume that the coder knows what they were trying to do and how to test for it, so that only gets a cursory glance to spot common errors like missed nullables, inverted conditionals and shit like that. I look at it from the perspective of “If I had to add functionality to this, could I do so easily”. Because I’m gonna one of these days.

muddi ,

Nitpicking can be automated by a linter, then reviews can actually sit back and review more important things like high-level design and scalability

as if peer reviews could actually spot bugs that tests can’t catch

There can’t be bugs if there are no tests to catch them! Ofc you can also automate test coverage standards. But PRs are sometimes the only way to catch bugs, even and especially with senior devs in my experience bc they are lazy and will skip writing tests, or write useless or bare minimum tests just to check off code standards and merge on ahead

the_artic_one ,

If coders are good AND know the project

Those are some pretty big ifs.

Blackthorn ,

Code review can’t fix incompence though. I lost count of how many times my boss told me “review that PR well because X is not very good”. Also my point is that they are overrated, not that they are useless.

Voyajer , in Implemented as requested
@Voyajer@lemmy.world avatar

Hmm seems over-constrained on the back

Jackinopolis , in Temporary mental block

What helps me is asking Copilot to try doing it. When it spits out garbage; if it hits any of my targets I can tune it from there.

agent_flounder ,
@agent_flounder@lemmy.world avatar

This sounds good but I kind of prefer my approach of giving up.

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

copilot is good but it respects comments too much. i like my code to be like a mystery box.

sergih , in JavaScript's days are numbered

I’ll open a bug report

TangledHyphae ,

Be sure to cross-post it to the Usenet group for visibility.

XTornado , in JavaScript's days are numbered

Too far away for my comfort.

cypherpunks , in thisIsGoingToBeASeriousDebate
@cypherpunks@lemmy.ml avatar
9thSun , in There once was a programmer

As someone who is learning, I think it’s imperative to understand that chatgpt has limitations that cannot be overlooked. It’s pretty good if I make some silly syntax or formatting errors, but at the core I have to understand what I’m working with if I want to be a better programmer. I love the conversational nature because I often have a hard time wording questions, so it helps me in that regard as well. Idk if you want to be truly good at something you have to be more reliant on yourself than external tools.

1984 ,
@1984@lemmy.today avatar

The thing is, in some fields like devops, there are so many tools that you can’t remember or know all of them very well. So asking chatgpt how to do something saves very much time. It can write ansible playbooks, docker files, web server configurations etc etc. They almost never work perfectly but they give a very good starting point to modify.

It used to be that you could be very good at specific languages or tools but today, there isn’t enough time. Everyone is always in a hurry to get something out as quickly as possible too.

dylanTheDeveloper , in The temptation is always there
@dylanTheDeveloper@lemmy.world avatar

Me putting everything in ‘public:’

CanadaPlus , (edited ) in Harder Drive: Hard drives we didn't want or need

Comments as I watch through:

I want more information on the ionosphere-storage calculations. 175kB bandwidth is hella illegal (in my jurisdiction at least) for an amateur station, but if you’re ignoring laws you could get way more. 1MB seems entirely reasonable if you can use anything open enough on the whole shortwave spectrum.

Yes, buddy, your ISP is totally throttling you. I think over a thousand individual recipients per second for hours is the definition of suspicious traffic. I guess it could be a hardware limitation too, either way they have no reason to let you do this as a member of the general public.

Ah, there’s a technical report!

“So the first step is going to be to reverse the random number generator of the game…” Yep that’s harder lol. Aaand it’s right around as hard as I would expect assuming a really shitty RNG. How much time did this guy spend on the video?

I guess the polymino-placement algorithm must be in the technical report? Oh wait, pre-computed brute force search for each byte.

Well, this next one sounds biohazerdous. Jesus Christ that test is far dumber than this harder drive could ever be. Oh man, he’s designing and printing a circuit board? And building physical things? He really does go all-out.

Also, still gross. And yes, Bitcoin is also gross, especially because it’s a persistent bad implementation of a non-terrible idea.

5ublimation , in classic configure neovim experience
@5ublimation@hexbear.net avatar

skill issue

steltek , in D or d come on

Here’s how to fix this[+]

Create $HOME/.config/user-dirs.dirs with

XDG_DOWNLOAD_DIR=“$HOME/downloads”

You may need to logout/in for things to reread this file.

The full list of keys is:

  • XDG_DESKTOP_DIR
  • XDG_DOWNLOAD_DIR
  • XDG_TEMPLATES_DIR
  • XDG_PUBLICSHARE_DIR
  • XDG_DOCUMENTS_DIR
  • XDG_MUSIC_DIR
  • XDG_PICTURES_DIR
  • XDG_VIDEOS_DIR

+: Since this is Linux, this is a fix for many but not all cases.

lastweakness ,

XDG User dirs are cool, i agree. But that’s not really the problem here

TetrisIQ , in D or d come on

You can also disable case sensivity in bash

MooseBoys ,

this seems like a recipe for disaster

rtxn ,

Since Linux 5.2, you can disable case sensitivity on the filesystem level on ext4 (called case folding).

MooseBoys ,

I wonder how many things subtly break when you enable that option.

Dizzar ,

How to shoot yourself in the foot in one simple step

1984 ,
@1984@lemmy.today avatar

Is this a competition for worst idea to solve the problem? :)

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Is there also an option to only have 8.3 filenames? Those long names are so tiresome.

xeekei ,

This is default in SteamOS.

tigerjerusalem ,

Honest question: is case sensitivity that important? Are there files named settings.ini and Settings.ini, for example, in the same folder that do different things?

ipkpjersi , in "how good are you?"

That couldn’t be any more accurate lmao I literally swing back and forth between dunning-kruger effect and imposter syndrome. It’s actually wild.

Kolanaki , in What's your most obscure binding?
@Kolanaki@yiffit.net avatar

Ctrl+a, Ctrl+c, alt-tab, Ctrl+z, enter.

“This is mine now.”

JokeDeity ,

I have a Logitech G600 and have all those and more on the side buttons, lol.

Vimlord , (edited ) in What's your most obscure binding?

I have yeet bound to ggdG (backslash being my leader key)

Edit: Detail about leader. I’d add the proper binding but markdown’s being weird.

AVincentInSpace ,

so you use 5 keystrokes to get out of typing 4.

Vimlord ,

Technically yes. However I figured it’d be a funny one to have in my vimrc.

Also capital G requires a shift press, so not sure how many keystrokes that counts as.

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