« first day (3607 days earlier)      last day (403 days later) » 

12:07 AM
REFRESH! There are 7370 unanswered questions (90.3988 answered)
 
12:53 AM
@Duga Rolled back and commented
@Duga Commented
 
1:29 AM
0
Q: solve sudoku board from the given file and check it python

tabI'm stuck with sudoku board. The condition of the problem requires opening the file that stores the sample sudoku board, editing it, and after closing it, check whether the problem is solved correctly, whether the number of columns and the number of rows meet the condition: o 9x9 o No digit appea...

 
This question is not yet suitable in its current form for CodeReview. I recommend that you actually join Code Review @nnichols and gain some experience there before asserting that this page should be posted there. — mickmackusa 18 secs ago
 
 
3 hours later…
4:26 AM
Monking
 
 
4 hours later…
8:48 AM
@mickmackusa Apologies, I shall bow to your greater knowledge of CodeReview. Although, the expressed intent of CodeReview is to elicit opinion, which is what OP is requesting. It also seems to fit What topics can I ask about here?, albeit the code has been abbreviated in this question. — nnichols 31 secs ago
 
9:16 AM
@mickmackusa Thanks, I shall bow to your greater knowledge of CodeReview. Although, the expressed intent of CodeReview is to elicit opinion, which is what OP is requesting. It also seems to fit What topics can I ask about here?, albeit the code has been abbreviated in this question. And it seems that I am not the only person who thinks a code review question would be better suited to CodeReview. — nnichols 32 secs ago
 
 
3 hours later…
11:54 AM
This off-topic question here. You may be willing to try i.e. codereview.stackexchange.com instead — Marcin Orlowski 18 secs ago
possible answer invalidation by Greedo on question by Greedo: codereview.stackexchange.com/posts/274532/revisions
No @Marcin, this is not suitable for Code Review, as it does not contain the actual code to be reviewed. A description of code cannot be reviewed. So it would be as off-topic there as it is here. — Toby Speight 47 secs ago
 
@Duga I-char typo in a comment - no answers invalidated.
 
possible answer invalidation by Greedo on question by Greedo: codereview.stackexchange.com/posts/274532/revisions
But this is not aimed for code review. I just want to talk about solution methods, why people downvoted me? — i_like_codes_and_girls 7 secs ago
possible answer invalidation by Greedo on question by Greedo: codereview.stackexchange.com/posts/274532/revisions
 
12:28 PM
Because SO is not a discussion forum. You ask more/less precise question and then community tries to help answering it. Probably if you'd provide your implementation code, then that would become less off-topic (but still, could be more codereview fitting than here). — Marcin Orlowski 28 secs ago
 
 
1 hour later…
1:52 PM
-1
Q: Pass an object to itself as a parameter, or not?

random developerHere are two versions of more or less the same code. I'm interested in feedback on which to prefer. Version A: public static void RunTransaction(this MyContext context, Action<MyContext> transactionContents) { try { context.BeginTransaction(); trans...

 
Ryan Donovan on March 20, 2023
Ad-hoc SRE principles can get you on the right track, but if you want to sustain it long term, you’ll need organizational structure.
 
2:23 PM
@CaptainObvious MRC and the OP doesn't want to change it.
 
3:14 PM
Monking
 
3:36 PM
1
Q: An implementation of Conway's Game of Life using C++ and SFML

imapyromainI recently started learning C++ again, and I wrote a simple version of Conway's Game of Life. This version doesn't use 2 buffers to transfer changes over to the main view. Instead, it uses a stack of changes that are applied then drawn. I'd like some feedback on how to improve my code. Controls a...

 
4:28 PM
0
Q: State machine with change of state triggered by internal data only

prestokeysConsider the following state machine, that handles an event by using std::visit on the current state (defined as an std::variant of states) and returning a template type called TransitionTo<NewState>, which in turn invokes its execute method, which calls leave and enter while changing the state m...

0
Q: A parse function for text line with fields separated by a comma with the known number and their type, cut2

G. Adamsimplifying this question, taking most of the comment into considerations, I ended up with this version, looking for some feedback #include <iostream> #include <tuple> #include <cassert> #include <type_traits> std::tuple<std::string_view, std::string_view> split(std::string_view str, char delimi...

 
5:01 PM
Monking
 
Code Review Stack Exchange seems like a better fit for this question: codereview.stackexchange.com/help/on-topic, codereview.stackexchange.com/help/dont-askSolomon Ucko 53 secs ago
 
5:19 PM
0
Q: Is ChatGPT's code objectively better than mine?

hermancainI asked ChatGPT-4 the following: (me): Can you write an efficient function in Go for caching a database? The function will be called moreData() and will run every time more data comes in. It will use the function beginCache() to begin caching the data, but should only cache the database when dat...

 
I’m voting to close this question because it belongs on Code Review (codereview.stackexchange.com) and not on Stack Overflow. — Eric Postpischil 6 secs ago
@EricPostpischil While this may be on-topic on CR, in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like Needs more focus, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 20 secs ago
 
 
2 hours later…
7:10 PM
What is the problem that needs to be solved? From the text, it sounds like you're just looking for a review of the code, which might be better served on Code Review, but you should read their help center to be sure. — Heretic Monkey 29 secs ago
 
7:34 PM
Welcome to Stack Overflow. Please take the tour and read about what is on topic in the help center. Open-ended code review is not on topic. — Chris 9 secs ago
 
8:13 PM
Then it would belong on Code Review (-;! Good luck to all! — shellter 5 secs ago
Last comment on the subject: the problem is not that it will run forever - it won't. The problem is that it could - because it is fundamentally wrong to try and exhaust the combinations of a list by randomly picking from them. I couldn't care less if the probability tends to 0 on infinity time, or whatever. This is not a math forum, this is a coding forum. If I ever do a code review with such snippet, I'd reject the commit, as would any sensible engineer. Comment will remain there, as it could make both OP and responder to learn something new and relevant. — Rodrigo Rodrigues 45 secs ago
No PR, no code review, no personal clone, just push to dev. This is not for big projects. — Mathieu Longtin 29 secs ago
 
8:52 PM
 
9:08 PM
@ray The general consensus is that design questions are not reviewable on CR unless they accompany code - thus in the current form this post would not be on-topic there. — Sᴀᴍ Onᴇᴌᴀ 54 secs ago
 
0
Q: Running multiple concurrent processes in a bash script, such that if one dies it takes the other ones down with it

Carl Patenaude PoulinThis is my solution using job control. Whenever a job dies, it kills the parent script When the parent script dies, it kill the whole process group, including all jobs I would hope that there's something simpler out there. #!/usr/bin/env bash # Mocks function process () { while true ; do ...

 
This could be a good question for Code Review — Thomas Sablik 42 secs ago
 
10:04 PM
This might be better suited for codereview.stackexchange.comJames Risner 42 secs ago
 
0
Q: Grouping and summing by condition from three mongodb collections

user20183888I have three mongodb collections. I would like to group the collections by date, month and year, then sum by condition in order to display totals from the three collections in one table. However, i have a problem with generating the mongodb aggregation code. collectionA { _id: "1", "Name": "John

 
@JamesRisner please read the CR help page What topics can I ask about here? before recommending users post there. This question would not be on-topic because the code does not work as expected. — Sᴀᴍ Onᴇᴌᴀ 32 secs ago
 
10:26 PM
@ThomasSablik Why would it be a good question for code review, the code isn't working the way they want it to, that makes it off-topic for code review. — pacmaninbw 1 min ago
 
11:24 PM
0
Q: Unit of Work & Repositorty Pattern - Injecting UoW into Repository Base

zwoolliDescription I am implementing the Unit of Work & Repository Pattern with Dapper as my ORM and PostgreSQL as the relational database. I have seen examples of UoW where: The UoW class creates an SQL connection upon construction and injects a transaction into instantiated repositories, and The conn...

 
11:50 PM
0
Q: Function to return a file name from lists/dictionary constants

DanI'm reworking a set of two functions that return a text file name, constructed from a string argument and string variables from a module called inventory. It seems the inventory module served as a sort of constants module, so I've changed it to constants.py and capitalized the variables. The old ...

 

« first day (3607 days earlier)      last day (403 days later) »