« first day (3349 days earlier)      last day (45 days later) » 

12:04 AM
REFRESH! There are 8115 unanswered questions (89.3052 answered)
I’m voting to close this question because this question belongs on another site in the Stack Exchange network codereview.stackexchange.comdippas 58 secs ago
1:08 AM
@Duga mildly skeptical of this, thoughts? (please ping me with replies, I don't monitor this room actively)
2 hours later…
3:33 AM
possible answer invalidation by xeerx on question by xeerx: codereview.stackexchange.com/posts/277891/revisions
possible answer invalidation by xeerx on question by xeerx: codereview.stackexchange.com/posts/277891/revisions
4:02 AM
@MiguelP: You may want to post some of your working (!) code that you produce on Code Review, asking for recommendations of improving the code. In the context of that code, you may want to ask whether the programming guidelines/rules that you are using are meaningful or not. — Andreas Wenzel 24 secs ago
4:27 AM
Q: Optimizing BFS code to find connected components in a graph

NBKI am writing a Python code to find the connected components of a graph using BFS. The code works but takes a long time to run. Please suggest possible optimizations of my code. The graph is stored as a dictionary g. For example, g could be {'a':['b','c'], 'b':['a'], c:['a','d'], 'd':['c']}. The l...

@RyanM imo a good fit for us if the question is reworded (but i want to know how i can make it better. instead of but i want to know how i can make it better like if i enter a odd number.. The code works as expected. The code is present in the question. It is real code. The op describes what the code is doing. The titel is descriptive as well
I mentioned the rewording because we don't change what the code is doing.
4:51 AM
@RyanM Reads like a low-effort feature request. We could force it into an on-topic question but that wouldn't help anyone.
Besides, we won't accept the current answers since none of them are reviews.
1 hour later…
6:26 AM
Welcome to Stack Overflow. Please read How to Ask and stackoverflow.com/help/on-topic. It's not clear what you mean by "does this seem correct", but this is not on topic either way. If you want to know whether the code gives the right answers, it is your responsibility to test it. If you want to know whether the code is well written, you can ask specific questions about code style at Code Review instead. Before posting here about code that you have written, please identify a specific problem with the code (we do accept questions about improving objective performance metrics). — Karl Knechtel 57 secs ago
1 hour later…
7:56 AM
Probably more fitting for codereview.stackexchange.comFinomnis 5 secs ago
I’m voting to close this question because belongs on codereview.stackexchange.com. — Finomnis 26 secs ago
1 hour later…
9:08 AM
Q: C++ Graph class (undirected/directed, weighted/unweighted, adj list/adj mat)

frozencaI wrote a rudimentary graph class that supports the following eight combinations: Undirected/directed Weighted/unweighted Adj list/Adj matrix implementation #include <algorithm> #include <cassert> #include <cmath> #include <common.h> #include <list> #include <vector> #include <ranges> #include <...

10:04 AM
I’m voting to close this question because it’s a case for codereview.stackexchange.com. — deceze ♦ 21 secs ago
10:50 AM
Q: Is there a more compact way to write this?

BorkSince this wasn't appropriate for stackoverflow I am trying my luck here.... So is there an option so that the php be written differently? It's functioning as it is, however I am curious... Also there are like 12 .div-boxes, it's required by the task, however I deleted most of them so it wont loo...

11:46 AM
@Duga Moderator setting a bad example again.
A Stack Overflow mod? They would never...
12:39 PM
Wouldn't this codereview.stackexchange.com fit better then? — dosas just now
12:57 PM
Q: why can't my code calculate net salary correctly?

Heran Weyessa#include<iostream> using namespace std; struct employee{ int id; string name; float gs,it,pt,ns; }; employee get_value(){ employee e1[5]; for(int i=0; i<5; i++){ cout<<"enter name for person"<<i+1<<" "; cin>>e1[i].name; cout<<"enter id for person"<<i+1

I'm so freaking livid
"Hey, everyone using our API, we are releasing a new API (not everything is migrated yet) and we're guaranteeing a 10% failure rate on the old API. That means if you use either, you're going to have random failures."
That is, probably, the most professional way I've seen someone say "get bent" before.
Such an absolutely terrible decision
1:18 PM
No, that's not okay; you shouldn't use spy at all if possible, and not testing your actual subject under test (but a spy in this case) I would not accept in a code review. Why don't you just extract a method verifyEmailSent with all the verifys in it? — daniu 47 secs ago
Q: Iterate tables from table id from href links until no table with specific table id is found

GescofI am doing web scraping to the next web page (which is my root URL to start scraping tables): https://www.iso.org/standards-catalogue/browse-by-ics.html What I am trying to achieve is to parse the table with id 'datatable-ics' and then from the 'ICS' links contained in href tags from td in each r...

1:37 PM
@DerKommissar sounds like a SLA violation with really nice payout, TBQH
Should be
did they at least have the decency to make the "random failure" a dedicated status code, so you can write an interceptor that just retries a failure?
Plain 404 lmao
The problem is I don't consume cdnjs directly, I use libman to do it, and libman didn't have the update for a hot minute. So it's a failure between two different components
2:09 PM
@buran I don't want to start a discussion if enforcing coding-style should only happens at code review. Rust is doing kind of similar with the strict compiler and teaches the while compiling. My Idea why not achieve something for secret which are handled in development. — MaKaNu 5 secs ago
2:55 PM
@DerKommissar I'm going to hazard a guess and say many customers will adapt their code to just retry on 404 and take the hit.
Retrying doesn't fix it, I re-ran the whole command like 6 times the other day, it fails at the same package
And the problem is Libman is designed to hard-fail if it can't do a lookup on any package
So now I'm re-running CI/CD pipelines until the random failures end
I literally hate things like this
I'm working on replacing the whole platform with a different tool, at least when I had bower I only got the "this tool is deprecated" issue, now I'm getting random failures regardless of whether I "do the right thing" or not
3:11 PM
If your code works and seek improvement ideas - suggest to go here codereview.stackexchange.comDaniel Hao 30 secs ago
3:44 PM
I deleted my solution. To make your question better for stackoverflow you should add your solution to your question and then ask how it could be improved. However, then it would better be placed in the related website, codereview, rather than stackoverflow. — DarrylG just now
3:55 PM
Q: Connect4 game with "Minimax-AI" and raylib

Maxell I am just trying to understand the minimax algorithm better and how it works, so I made this basic connect4 game with raylib. It works fine, but I think there must be some kind of flaw in the logic, because the algorithm sometimes doesn't choose the fastest way to a winning situation. This is my ...

combing through emails and other communications after vacation
i wil consider using codereview fron now on — RECUR 52 secs ago
@SᴀᴍOnᴇᴌᴀ 1 week vacation, 2 days catching up.
4:23 PM
@CaptainObvious Let me know if they include sufficient code and I'll hammer it open.
5:06 PM
codereview.stackexchange.com might be a better place for this question — jhnc 23 secs ago
1 hour later…
6:18 PM
1 hour later…
7:47 PM
Q: Javascript - Converting from decimal to dozenal

Farzana RiyazMost people are familiar to binary and hexadecimal. But what about dozenal? onEvent("conDECtoDOZ", "click", function( ) { var dozdiglis = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "X", "E"]; var dec = getNumber("decimal"); var dozdivpow = 0; var decrem; var doz; timedLoop(0, ...

3 hours later…
10:21 PM
Q: Implement a Queue in Haskell

Jeremy WrightI teach a data structures and algorithms course. Students can choose C++ or Java. As an exercise for myself, I am doing the assignments in Haskell. My primary goal is to understand what aspects of my class are easier in Haskell, and which aspects are more challenging. I am a fairly noob Haskell c...

10:37 PM
Since this is working code it might be better suited for codereview.stackexchange.com (but please refer to their specific rules first) — UnholySheep 13 secs ago

« first day (3349 days earlier)      last day (45 days later) »