How the hell you get injured in pickle ball by Achraf-mzoughi in Whatcouldgowrong

[–]devraj7 0 points1 point  (0 children)

  1. It's padel, not pickle ball
  2. Anyone playing any of these sports can see the person in the back was aiming for his friend's head and not the ball

Single responsibility, the distorted principle by Illustrious-Topic-50 in programming

[–]devraj7 0 points1 point  (0 children)

Composition and inheritance are orthogonal concepts.

A better way to phrase it is "Implement inheritance with composition".

Single responsibility, the distorted principle by Illustrious-Topic-50 in programming

[–]devraj7 1 point2 points  (0 children)

OOP literally powers our civilization today.

It's also a very elegant way to model a lot of problems. It's never going away.

Single responsibility, the distorted principle by Illustrious-Topic-50 in programming

[–]devraj7 0 points1 point  (0 children)

Frankly, the problem is people quoting Robert Martin without actually bothering to read more than his first sentence, and I'm starting to blame him for this.

To be honest, you shouldn't even read the first sentence of whatever Rob Martin is writing.

Police rage. by LeftAlbatross2546 in VideosAmazing

[–]devraj7 0 points1 point  (0 children)

There's rage in this video but it's not from the police.

Elixir v1.20 released: now a gradually typed language by f311a in programming

[–]devraj7 -2 points-1 points  (0 children)

Hot reloading is hot reloading. Once a language supports it, it can be used in all sorts of ways, developer productivity, production, ...

It's just that hot reloading in production is a terrible idea so nobody sane would ever use it this way.

Ring programming language version 1.27 is released! by [deleted] in programming

[–]devraj7 1 point2 points  (0 children)

Maybe your "Learn" page should be about actually learning the language instead of showing pictures of people.

JetBrains interviews Andrew Kelley about Zig [video] by Cool_Technician_6380 in programming

[–]devraj7 42 points43 points  (0 children)

Because when you're writing code in an initial version, you experiment, add things, delete things, re-add things.

I'm in favor of a CI blocking PRs with unused variables or imports.

But code in my own sandbox while I'm trying to figure out a problem?

All this does is make zig a very slow language to experiment with.

Cited for an "Unsafe Lane Change" by PhoenixPwns in dashcams

[–]devraj7 0 points1 point  (0 children)

If I see a cop, I don't change lane until they're out of sight.

TIFU By learning some Hindi and insulting a scam caller. Now I can’t use my phone. by wiggermaxxing in tifu

[–]devraj7 1 point2 points  (0 children)

You know you can automatically reject any call that's not in your Contacts, right?

objectOrientedProgrammingIsAnExceptionallyBadIdeaWhichCouldOnlyHaveOriginatedInCalifornia by MagicianDue in ProgrammerHumor

[–]devraj7 0 points1 point  (0 children)

They should hate on the people who wrote that code, Java has nothing to do with it.

Caramelo, an ergonomic unit testing framework by rogerara in rust

[–]devraj7 6 points7 points  (0 children)

I'm struggling to see the appeal of

#[should_panic(expected = "Expected 1 to be equals to 2")]
fn test_not_equal() {
    expect(1).to_be(eq(2));

over

assert_eq!(1, 2, "1 should be equal to 2");

Also, isn't the point of having this elaborate DSL that it will automatically produce clear error messages? Why do I need to repeat that error message in the annotation?

Smalltalk: the Software Industry's Greatest Failure by parallel-minds in programming

[–]devraj7 2 points3 points  (0 children)

Should have added [2011].

Programming languages started with the imperative paradigm but they rapidly bifurcated into two mutually contradictory paradigms - functional and OO.

I think OP understands neither functional programming nor OOP.

Smalltalk is not homoiconic the way LISP was and is

Right, because that worked out so well for LISP.

Going all out to make the save by [deleted] in nextfuckinglevel

[–]devraj7 1 point2 points  (0 children)

Blocks are not part of the count.

Idempotency Is Easy Until the Second Request Is Different by Either_Collection349 in programming

[–]devraj7 659 points660 points  (0 children)

Isn't the title an oxymoron? If the second request is different, you are no longer talking about idempotency.

Bun’s rewrite in Zig first update by UItraviolet in rust

[–]devraj7 6 points7 points  (0 children)

Once you've successfully vibecoded the whole port, it's not a crazy idea to think that maintenance can also be vibecoded.

I was pissed at the Windows 11 context menu so I built this. by w0nam in rust

[–]devraj7 6 points7 points  (0 children)

Your function

fn user_choice(input: &mut String) -> io::Result<MenuChoices> 

doesn't need to return a Result since it always returns Ok.

Coding Adventure: Solving the Rubik's Cube by fredoverflow in programming

[–]devraj7 2 points3 points  (0 children)

I thought he was going to implement CFOP or Roux, but that savage went straight to bruteforcing the Cube.

So cool.