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.

CodeMonkey , in Whoa there buddy, calm down

About 10 years ago, I read a paper that suggested mitigating a rubber hose attack by priming your sys admins with subconscious biases. I think this may have been it: www.usenix.org/system/files/…/sec12-final25.pdf

Essentially you turn your user to be an LLM for a nonsense language. You train them by having them read nonsense text. You then test them by giving them a sequence of text to complete and record how quickly and accurately they respond. Repeat until the accuracy is at an acceptable level.

Even if an attacker kidnaps the user and sends in a body double, with your user’s id, security key, and means of biometric identification, they will still not succeed. Your user cannot teach their doppelganger the pattern and if the attacker tries to get the user on a video call, the added lag of the user reading the prompt and dictating the response should introduce a detectable amount of lag.

The only remaining avenue the attacker has is, after dumping the body of the original user, kidnap the family of another user and force that user to carry out the attack. The paper does not bother to cover this scenario, since the mitigation is obvious: your user conditioning should include a second module teaching users to value the security of your corporate assets above the lives of their loved ones.

tacosanonymous ,

Robust AF. Chef’s kiss. No notes.

BluesF ,

Smart. I like the idea of replacing biometrics with something that can’t easily be cloned - learned behaviour. Perhaps with a robust ML approach you could use analysis of gait, expressions, and other subtle behavioural tics rather than or in addition to facial/fingerprint/iris recognition. I suspect that would be very hard to fake - although perhaps vulnerable to, idk, having a bad day and acting “off”.

milicent_bystandr ,

Ah, so only employ posh people.

“Hi, I’m definitely Henry. My turn to take the RSA key sentry duty today.”

“Henry, why are you acting like a commoner? You’re not like yourself at all!”

Klear ,

Essentially you turn your user to be an LLM for a nonsense language. You train them by having them read nonsense text.

Did you forget the word “teach”? Or even the concept?

CodeMonkey ,

I am well aware of learning, but people tend to learn by comprehension and understanding. Completing phrases without understanding the language (or the concept of language) is the realm of LLM and Scrabble players.

AngryCommieKender ,
oatscoop , (edited )

Having read the paper, there seems to be a glaring problem: nothing is stopping the attacker from forcing the trusted user into replicating the “password”.

Sure, the user can’t tell them the password, but they can still be forced into describing the system well enough into making a mock-up, then forced to enter their password on it.

spidertrolled , in I just ask my problem bro...chill....
@spidertrolled@lemmy.blahaj.zone avatar

Stack Overflow isn’t a tutor site. It’s a wiki. Its usefulness would plummet if duplicate questions are allowed, since that would scatter all the answers.

bruhduh , (edited )
@bruhduh@lemmy.world avatar

Then it should allow to connect duplicates as sub questions to main question which they keep as original, Wikipedia allow additions to articles after all, i mean if you comment your question under main question, who gonna look at that?

ripcord ,
@ripcord@lemmy.world avatar

People do look at that eventually, but not as fast as some people want.

ripcord ,
@ripcord@lemmy.world avatar

It’s also weird to me that people seem to primarily use it to ask questions (and get butthurt about getting duplicates). It’s really rare that I ever don’t find an answer there (which often is buried in responses, but still). Like I’ve virtually never been motivated to post there.

ted , in Review Please

At least there are more removals than additions.

prettybunnys ,

Jokes on you that’s just the README being deleted since it no longer matches the code.

Secret300 , in Review Please

What anime this from?

hunkyburrito ,
wise_pancake , in Review Please

Just one review request?

space , in Skill issue

Skill issue of the developer to fix it or skill issue of the submitter?

Baizey ,

Yes

KombatWombat ,

This could probqbly an alias for “user error”.

tatterdemalion , in Review Please
@tatterdemalion@programming.dev avatar

This does seem like a potential issue if the PR is itself implementing more than one vertical slice of a feature. Then it could have been smaller and there might be wasted effort.

If the patches are small and well-organized then this isn’t necessarily a bad thing. It will take more than one day to review it, but it clearly took much more time to write it.

Blamemeta ,

True, but at the same time its very possible to go too small. A bunch of one line code reviews can really slow progress easily.

tatterdemalion ,
@tatterdemalion@programming.dev avatar

Right but it’s pretty rare that a tiny PR actually accomplishes a valuable user story.

So my point is just that lines of code is mostly irrelevant as long as it’s organized well and does no more than necessary to accomplish the agreed upon goal.

magic_lobster_party ,

Stuffing multiple tasks into one PR is often bad.

  • It’s harder to review. As a reviewer it’s difficult to know which code change is related to which task.
  • It’s harder to verify. Did you really test every change you made?
  • You might end up with a “hostage” situation. There might be a few code changes in the PR that looks good and is really wanted, but other code changes in the same PR of lower quality. As a reviewer, should you just let these lower quality code changes slide so you can bring in the code change you really want? Probably not, but you’re going to let it slide either way.
jjjalljs ,

You might end up with a “hostage” situation.

Reminds me of a guy I used to work with.

He’d have like a pretty normal PR to do something like change a field to be read only in some API. But then snuck into the pr there’d also be something like “change application to run locally different than prod for entirely selfish reasons” or “lower global coverage requirements” or “disable type checking in this whole folder”

magic_lobster_party ,

I also worked with a guy like that. Impossible to predict what he was going to do in his next PR. Always a nightmare to review. Also exhausting to argue with, so let some things slide because I was so done dealing with his bs.

jjjalljs ,

This guy was also difficult to argue with. He was always professional, which I guess is worth something.

One time he tried to remove all the types from a bunch of code “because they were all going to change later.” I refused to allow this. We went back and forth in the comments for hours. I think eventually the lead or boss got involved. Thankfully people sided with me.

His “later” project that was allegedly going to change all the things was rejected by the team. The code in question is still used and properly typed a year later.

magic_lobster_party , in Review Please

Had a coworker who was a bit like this. They were tasked to do one simple thing. Required a few lines of code change at most.

They end up refactoring the entire damn thing and introduced new bugs in the process.

something_random_tho ,

I feel personally attacked.

ripcord ,
@ripcord@lemmy.world avatar

Was there much value in the refactoring, like tech debt addressed?

magic_lobster_party ,

A tiny bit of value, but definitely not worth the pain and effort. It wasn’t exactly any technical debt that hindered our development.

We had other places with way more pressing technical debt that could’ve been focused on instead.

onlinepersona ,

Doesn’t matter. One concern per PR. Refactoring and tech debt are separate concerns.

CC BY-NC-SA 4.0

ripcord ,
@ripcord@lemmy.world avatar

Fair enough

Jesus_666 ,

Or, if the team does allow refactoring as part of an unrelated PR, have clean commits that allow me to review what you did in logical steps.

If that’s not how you worked on the change than you either rewrite the history to make it look like you did or you’ll have to start over.

BrianTheeBiscuiteer ,

Very good point. We often do one PR per story so people tend to think that’s a limit.

nick ,

You should refactor as needed as you go because refactoring cases are never gonna be prioritised.

onlinepersona ,

Not with that attitude they won’t 😛

Refactoring in PRs just makes it more difficult to review. “Do these lines belong to the goal nor not?”. Also, we’re human and miss things. Adding more text to review means the chance of missing something increases.
Especially if the refactored code isn’t just refactored but modified, things are very easy to miss. Move an entire block of code from one file to another and make changes within = asking for trouble or a “LGTM” without any actual consideration. It makes code reviews more difficult, error-prone, and annoying.

Code reviews aren’t there to just tick off a box. They are there to ensure what’s on the tin is actually in it and whether it was done well.

CC BY-NC-SA 4.0

nick ,

In my experience I haven’t had an issue because usually the refactorings are small. If they’re not I just hop on a call with the person who wrote the MR and ask them to walk me through it.

In theory I’d like to have time to dedicate solely to code health, but that’s not quite the situation in basically any team I’ve been in.

onlinepersona ,

I haven’t had any trouble separating refactors PRs from ticket PRs. Make the ticket PR, make a refactor PR on that ticket PR, merge the ticket PR, rebase refactor PR on master, open ticket PR for review, done 🤷

CC BY-NC-SA 4.0

BrianTheeBiscuiteer ,

I have a rule about this (not that I don’t break it at times). I only refactor in an unrelated story if it doesn’t delay deliverables and existing tests cover the code.

And you’re generally right about tech that not being prioritized, but you should have a talk with your product manager/owner to strike a deal for some small percentage of your work to include tech debt. We were able to convince ours that it was otherwise affecting our velocity.

GBU_28 ,

I hear you, but they should MVP the ticket, close it, then concisely collar the PM/lead and say “I know how to make this better and am hungry to do it. Let me address some tech debt next sprint. I got this and will keep it timeboxxed. I’ll also ensure my changes pass QA before coming to you”

kameecoding ,

Refactors should be a natural part of development or you will have a shit code base

GBU_28 ,

Sure, now imagine you’ve been obligated to adopt a legacy codebase.

Life isn’t a classroom.

kameecoding ,

That’s pretty much all I have been doing in my 8 year career

SpaceNoodle , in Review Please

As long as there’s less code than there was before, I’ll approve it

scarilog ,

Deletes codebase

Looks about right, approved ✅

SpaceNoodle ,

Bugs are all gone, boss

orphiebaby ,

I laughed so hard at this, thanks

Graz ,

“So then after my feature was developed, all of those unit tests didn’t work any more. I deleted them.”

bleistift2 , in Review Please

That’s when you set the intern’s IDE to preserve the line endings.

shotgun_crab , (edited )

.gitattributes is our best friend

coloredgrayscale , (edited )

Automatic code formatter with company style rules for more consistency across all developers.

JoYo , in Whoa there buddy, calm down
@JoYo@lemmy.ml avatar

This always sounded like parallel construction.

Fine then, keep your secrets.

bruhduh , (edited ) in I just ask my problem bro...chill....
@bruhduh@lemmy.world avatar

Try chatgpt and the like, it’s gonna give you same barely correct answers, at least it isn’t gonna send you out, well… Most of the time

devilish666 OP ,

ChatGPT is give you general answer not the right ones from my experience
Sometimes you get the right answer if you fine tune your question…but sometimes don’t

bruhduh ,
@bruhduh@lemmy.world avatar

Same with stack overflow, in my experience at least) i just googled questions btw, not started them, so in my personal experience chatgpt is google++

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

It’s enough to start the own research.

bruhduh ,
@bruhduh@lemmy.world avatar

Yes, that’s what I’m thanking about)

AFaithfulNihilist ,
@AFaithfulNihilist@lemmy.world avatar

Am the grammar an spelling part of joke?

Mikufan , in How do we tell him ?

Well, at first you change your search engine to duck duck go and use Firefox, then you change the settings so no browser history is created.

Then you continue without anyone noticing.

Redkey , in How do we tell him ?

As a half-joking response to this half-joking admission, I got started with the Usborne programming books as a kid, and they laid some excellent foundations for my later study. They’re all available online for free these days, so grab an emulator and user manual for your 80s 8-bit home computer of choice, and dive in!

Hector_McG , (edited )

Modern programming languages and IDE’s are so complex it’s enough to put a lot of people off ever learning to program - it seems such a massive learning curve. There’s something to be said for learning Basic then assembly on an 8-bit computer, where everything is so much sampler and direct. Writing a value to memory and seeing a blotch of pixels change on the screen gives such a direct understanding of what’s going on inside the machine. And if you only have 48k of memory, you can genuinely understand everything the computer is doing.

ResoluteCatnap , in Review Please

My team lead: “I’ll 🙈 review”

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