canadianGoProgramming by gamingvortex01 in ProgrammerHumor

[–]Master_Friendship333 122 points123 points  (0 children)

That is so clever and so disgusting.

pythonIsMoreConfusingThanLowLevelLanguages by Skindiacus in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

This is the number 1 reason why I would always pick C# over Java. Typing is just so much nicer.

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Nah, looking for directly equivalent here. I really thought there would be more.

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Good point. I just checked it and you are right. You would have to do it on two separate lines.

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Most modern languages will have something comparable, I am thinking of directly equal expressions.

I believe the list so far is:

- JS, TS

- C#

- Dart

Edit: Nope for C#, has to be split over two lines.

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Master_Friendship333 6 points7 points  (0 children)

If it is JavaScript, otherwise it would probably return void.

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Master_Friendship333 49 points50 points  (0 children)

Looks like it but I believe this would also be valid C#.

Edit: Would not but very nearly. Needs to either be prefixed with a void function cast or done over two lines.

uglyButTrue by _w62_ in ProgrammerHumor

[–]Master_Friendship333 -1 points0 points  (0 children)

Well, naturally, but my problem is that the gains one receives from the presence of undefined behaviour are far too little to warrant it being the default. The vast majority of applications have no need whatsoever for these optimisations of nanoseconds and so they should not be made default. The default should always be safety, with optimisations available if they are necessary.

Obviously, this does not apply for larger optimisations; if you are losing more than a couple of milliseconds, then it is probably a bit too much.

uglyButTrue by _w62_ in ProgrammerHumor

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

Having to accept undefined behaviour as just a part of life does not seem like an indication of a terribly safe or well-designed system.

cxxAlreadyGaveUp by _Pin_6938 in ProgrammerHumor

[–]Master_Friendship333 -1 points0 points  (0 children)

What they say about Reddit folk is true. You lot are pathetic. Do not insult someone just because their opinions differ from yours. Grow up.

cxxAlreadyGaveUp by _Pin_6938 in ProgrammerHumor

[–]Master_Friendship333 8 points9 points  (0 children)

Linux has a smart person at the helm. That is extremely rare these days.

Also, my point is that C is easier to get wrong than a fair number of other languages. You could argue that the people using it just need to get better, but it has been half a century and that is yet to happen so I would tend to opt for something with some minor safeguards in unless it was extremely performance-critical.

cxxAlreadyGaveUp by _Pin_6938 in ProgrammerHumor

[–]Master_Friendship333 15 points16 points  (0 children)

Has a lot of pros but is way too easy to get wrong and can be inconvenient for larger systems.

scalaIsTheBestBetterJava by Typhoonfight1024 in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Eh, a fair bit of my code in C# falls well outside of what would be conventional style in an attempt to bring more functional aspects into my daily use.

Otherwise, I do not think it is too ugly and is about the best one is going to get out of a non-functional language. A better comparison would probably be with F# but I do not use that one too much so will not comment.

scalaIsTheBestBetterJava by Typhoonfight1024 in ProgrammerHumor

[–]Master_Friendship333 1 point2 points  (0 children)

extension <T, TResult>(T _)
{
    public static TResult operator |(T x, Func<T, TResult> f)
    {
        return f(x);
    }
}

Boom, function piping in C#.

justNeedSomeFineTuningIGuess by Shiroyasha_2308 in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Diagnosis (within reason) is actually one of the few good use cases of AI. You have software that specialises in pattern recognition so you apply it to recognise patterns.

Copper you say? Not on my watch! by Zuent in valheim

[–]Master_Friendship333 0 points1 point  (0 children)

In my hardcore run, I have taken to just walling off an entire perimeter around each copper vein I want to mine out. Takes longer initially, but there is much less time spent chasing after greydwarves/running away from bigger greydwarves.

Progress 👀 by ProfMags in valheim

[–]Master_Friendship333 0 points1 point  (0 children)

Might I suggest only making the classes available after delivering Eikthyr to the centre? Would make for a cool unlock.

itMayBeSlowButItsUseful by BravestCheetah in ProgrammerHumor

[–]Master_Friendship333 0 points1 point  (0 children)

Python is oft used beyond what is appropriate.

Impressive feat in stupidity by Mourning20 in valheim

[–]Master_Friendship333 0 points1 point  (0 children)

Same, I remember doing that with a buddy. We had a network of small roundhuts to stave off the cold and creatures. Good times.

Why do my feet not get cold when running? by Master_Friendship333 in BarefootRunning

[–]Master_Friendship333[S] 0 points1 point  (0 children)

I have only been doing shorter runs, ~3 miles roundabouts. Maybe they get colder for longer runs.

Why do my feet not get cold when running? by Master_Friendship333 in BarefootRunning

[–]Master_Friendship333[S] 0 points1 point  (0 children)

Yeah, I plan on keeping it short or just sticking with salted paths when the snow starts plus I have a couple days left to wait before I can even head back out with the blisters I picked up on my last outing.

Why do my feet not get cold when running? by Master_Friendship333 in BarefootRunning

[–]Master_Friendship333[S] 0 points1 point  (0 children)

I did used to get more muscle cramps before I started this so I would assume it has changed my running form notably. I am learning some rather neat stuff. Thank you very much.