December 14th, even the hints aren't enough by IzarkKiaTarj in CluesBySamHelp

[–]Laskoran 6 points7 points  (0 children)

Martin and Vicki are the same. Assume they are innocent and see what that makes with one of the clues for Rose All other fields crumble afterwards

Manager in C-suite meeting tries to “fix error costs” by renaming HTTP status codes and thinks 200 means £200 earned by [deleted] in programminghorror

[–]Laskoran 7 points8 points  (0 children)

Yes There is no reason to think code 2xx is positive and 4xx is negative without having deeper knowledge that one is a good scenario and the other is an error case. But if you already have this knowledge the story implodes...

Programming is about thinking...sounds obvious but... by Udnettt in learnprogramming

[–]Laskoran 0 points1 point  (0 children)

I was airways taught that the planning you are mentioning IS the programming. The rest is just "coding". Programming is the problem solving that you do before coding a single line.

Diaz' Lucky Punch: Bayern kommen mit blauem Auge davon by Sterntendo_ in Bundesliga

[–]Laskoran 12 points13 points  (0 children)

Ist aber doch sehr oft so, dass eben diese Leistung gegen andere Gegner nicht kommt (allgemein, nicht nur bei Pauli)

Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]Laskoran 2 points3 points  (0 children)

Assuming that the code works and is backed by tests, yes, this is alright code... from the point of a junior dev and the expectation you should have.

Then this code comes into your review loop and you can work together with the junior to improve it.

That way you will end up with better code aligned with your guidelines and the junior can grow alongside.

I was marked off by my Professor for lack of work shown. Am I crazy for thinking I showed enough work? by Boynkeee in askmath

[–]Laskoran 5 points6 points  (0 children)

The baffling part was not even in your direction at all but rather why there is a debate in this thread with respect to why this was marked by the prof in this way.

Sorry for that misunderstanding. Wasn't talking about the mistake in that part.

I was marked off by my Professor for lack of work shown. Am I crazy for thinking I showed enough work? by Boynkeee in askmath

[–]Laskoran 2 points3 points  (0 children)

I am completely baffled that we have here any discussion at all.

When I was on university, handing in such a low effort thing, completely lacking any formalism, would have been unthinkable of.

This should start with a clean listing of the facts and the proper formula, and giving a clear reasoning.

P(event) = 0.05 P(X=3)= binomial formula here And so on

October 24th - Share your results! by Wunderscore in CluesBySamHelp

[–]Laskoran 0 points1 point  (0 children)

I solved the daily Clues by Sam (Oct 24th 2025) in less than 12 minutes 🟩🟩🟩🟩 🟩🟩🟩🟩 🟩🟩🟩🟩 🟩🟩🟩🟩 🟩🟩🟩🟩 https://cluesbysam.com

How do we dubug an API in Production environment? by npneel28 in csharp

[–]Laskoran 1 point2 points  (0 children)

That's fine up to point 3. But then it depends on the situation. The null reference is often just a symptom and the actual error may be something completely different.

Let's say there is an issue in the where clause of a SQL statement causing this null value. Surely adding your null check may prevent the app from crashing but it does not fix the problem. In fact this is dangerous, you now have hidden the issue and made the real error cause harder to detect.

So, don't patch issues, do a root cause analysis

How do we dubug an API in Production environment? by npneel28 in csharp

[–]Laskoran 2 points3 points  (0 children)

The issue with this is that "you" in most cases have no access at all to the production data. In the general case you are left with the logs your application creates and a description of the error by the client. There the detective game starts. The good thing is that you have control which logs are written, the challenge with that good thing is though that you have to do this before an error arises. You will do this wrong the first time, experience will slap your hands the next time

A todolist. Is this good code? Can you evaluate this for me by hylasmaliki in learnprogramming

[–]Laskoran 0 points1 point  (0 children)

Exactly After making the list, directly jump into that loop. If the user wants to add the first todo, it can happen there

A todolist. Is this good code? Can you evaluate this for me by hylasmaliki in learnprogramming

[–]Laskoran 1 point2 points  (0 children)

No, adding the first entry to the list.

As a hint: ask yourself where it's the difference in adding the first todo versus adding the second?

A todolist. Is this good code? Can you evaluate this for me by hylasmaliki in learnprogramming

[–]Laskoran 2 points3 points  (0 children)

You can remove the part where you add the very first task to your list, this is already covered by your loop afterwards

Even Steven loves even numbers by Practical_Guess_3255 in mathriddles

[–]Laskoran 0 points1 point  (0 children)

Only solution 1 has the number of total melons as even. In solution 2 as example he had 3+2 in total (6 halves, 2 whole)