« first day (2694 days earlier)      last day (1320 days later) » 

12:00 AM
RELOAD! There are 6999 unanswered questions (89.7614% answered)
 
12:24 AM
@vnp I don't see how editing the example usage, not their actual code, has invalidated your answer. What point in your answer does it make moot? — Peilonrayz 32 mins ago
wow we are down to 5, including Duga
tough noogies
well I GTG so that will leave 4...
 
1:23 AM
0
Q: A method that calls multiple async tasks with error handling, done the right way?

user3591541I've got a method, CheckForValue(), that uses named pipes to send a message to another process running locally, and then receive a message from that process, returning a bool indicating if it is == to some value. I'm concerned that I am not handling cancellation tokens and errors correctly. If th...

 
1:49 AM
I think the first one is interest, however i would be sending that back in a code review :P — Michael Randall 32 secs ago
 
2:12 AM
1
Q: Splitting a list based on a delimeter into n chunks in Haskell. How can I write my functions more effeciently?

HalitrephesMaasiSplit: Write a function split that takes a delimiter value “c” and a list “iL”, and it splits the input list with respect to the delimiter “c”. Example output: split 0 [1,2,3,0,4,0,5,0,0,6,7,8,9,10] [[1,2,3],[4],[5],[],[6,7,8,9,10]] My split function: split :: Eq a => a -> [a] -> [[a]] split a i...

 
 
2 hours later…
4:21 AM
Monking
 
5:31 AM
1
Q: Print a list of strings in assembly

samuelbrody1249How does the following program look to print a list of strings? What places can I improve? Are there easier ways to print something like a linebreak after each string rather than hardcoding the \n into the string itself? # Program, print out a list of strings, one per line .data SYS_EXIT = 60 ...

 
6:08 AM
Monking
 
6:35 AM
possible answer invalidation by Tommy on question by Tommy: codereview.stackexchange.com/posts/249474/revisions
 
7:10 AM
0
Q: Algorithm to find bucket and item indices from power of two bins?

Lance PollardSo this is building off of Algorithm for dividing a number into largest "power of two" buckets?. Here is a slight modification of the answer from there: let numbers = [1, 2, 3, 4, 5, 6, 7, 30, 31, 32, 33, 20, 25, 36, 50, 100, 201] numbers.forEach(n => console.log(`${n} =`, split(n).join(', ')...

0
Q: StringTokenizer for .NET Core

BenjSplitting a string in tokens is a more complex topic than String.Split() wants to make us believe. There are at least three common policies according to which a string might be interpreted and split in tokens. Policy 1: Equivalent to String.Split() There is not much to mention about this policy. ...

 
7:30 AM
If it's logically correct and good design depends on what the goal is. It's certainly possible to do this. If you use raw pointers a lot at work you must be really comfortable with the rule of 3/5/0 and RAII? I can't imagine getting my code through a code review if I used raw pointers where vectors, or in some cases smart pointers, could be used. — Ted Lyngmo 18 secs ago
 
7:41 AM
What exactly is this mess of an answer? Sorry, I'm not trying to be rude but this entire thing is a mess. I would never let this pass code review. First, there's no reason at all to use Object.values. You aren't using named variables. a and c are meaningless. There's extra destructuring happening in each iteration which is unnecessary. Overall this is very non-performant. Lastly, its incredibly difficult to parse out what this code is doing. Remember, you are always writing code for the next person to read. — Geuis 5 secs ago
 
8:00 AM
0
Q: Print a tic-tac-toe board

Marc-André BrochuI am currently learning Haskell and as an exercise, I am building a simple tic-tac-toe program. I start with import Data.Vector data Cell = Empty | X | O type Board = Vector Cell and then, to render the board: render :: Board -> IO () render b = do renderSep renderRow 0 b renderSep ...

 
8:22 AM
Sorry, but Stack Overflow intention is to help with specific problems in the code, questions about reviewing code are off-topic here. Such type of questions could be asked on Code Review, but note they expect already working code for begin with. — Tsyvarev 41 secs ago
 
8:49 AM
0
Q: How to call repository methods in EF core so caller can know what it returns

Vlado PandžićHow to make good repository in layer so caller od repository methods knows what method returns. If I have Student and Grades objects in database I can have one query: GetStudentsIncludingGrades that shows that it will return Students with populated Grades list inside. So it looks like this: publi...

 
 
2 hours later…
10:28 AM
0
Q: Need advice for fiding crash probleam in qt c++ application

user3559721My Qt C++ application is crashed randomly. I generate its crash log and get below detail. GNU gdb (Debian 7.12-6) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free...

 
10:43 AM
@SᴀᴍOnᴇᴌᴀ No response, so I guess no AI happened
 
11:43 AM
0
Q: Microservice unit testing database script insert Error - H2

Neslihan BozerFor unit testing my ProductList service, I tried run a script to insert some data and then try to get this data and compare the list size. But my database insert script is not running and returns null. The related code is below. Looking forward to your evaluation. Thanks. @Test public void g...

 
Ryan Donovan on September 18, 2020
Welcome to ISSUE #39 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. For your consideration: micro frontends, the ancient computer hardware making a cameo beside James Bond, and a time-lapse of the most popular website rankings since 1993. From the blog Can one…
 
11:58 AM
@CaptainObvious Code not working as expected, no code posted. Really?
 
12:09 PM
Where is everyone?
 
@pacmaninbw Hi 👋
 
@Peilonrayz Monking
 
@pacmaninbw Lurking
@pacmaninbw Lots of people don't read the rules.
 
@Tsyvarev Exactly, Code Review will not accept this code. So why are you suggesting it? Please vote to close as too-broad here (needs details or clarity is what we call it nowadays, I guess). — Mast 31 secs ago
 
12:35 PM
@Mast: I just noted, that there is a special Q/A site for reviewing the code. And I explained why given question in the current state is not ready for that site. Is it bad? (I see you have a lot of experience on CodeReview, so I won't mind if you correct me). As for voting-to-close, it has already been done. — Tsyvarev 43 secs ago
 
@CaptainObvious 2 more VTC
 
'Bad' is perhaps too strong a word. In the past years we've seen that when Code Review is linked on an post that doesn't belong there, the question gets reposted there without OP checking their scope. Regardless of intentions, regardless of the rest of the comment. Thus we watch each and every recommendation. If you think a link is a good idea, please link at least to their help-center instead of the general landing page. It may not matter in the end, but every little bit helps :-) — Mast 5 secs ago
 
@Mast Down to 1.
 
This site is for specific technical questions, not general code review. — khelwood just now
 
@Duga How refreshing.
 
12:42 PM
@Mast Oh nice an MRC. Closed
 
@Peilonrayz Sarcasm?
 
No. But I can see how it can be read like that, sorry
 
Numpy
 
12:57 PM
I think this belongs on code review — Manakin 25 secs ago
@Manakin Since the OP has said "It works fine unless I give any letters" and the current solution hasn't fixed that issue it is not at all appropriate for Code Review. — Peilonrayz 25 secs ago
@wayAboveMyHead - example C++ code using Windows native threads in this questionrcgldr 54 secs ago
 
1:28 PM
looks like this question may be a better fit for the codereview stackexchange — Segfault 43 secs ago
Noting about sister SE sites is what unlikely can be avoided: at least, we share the same Q/A platform and all want to make the life good:) But I perfectly understand the importance of "on-topic" page for avoid polluting a site with .. "unwelcomed" questions. Wish they support a short-link not only to the main page of the sister site (e.g. [codereview.se]), but also to its "on-topic" page. — Tsyvarev 49 secs ago
 
2:15 PM
possible answer invalidation by RobAu on question by Khashayar Baghizadeh: codereview.stackexchange.com/posts/249411/revisions
 
@Duga Looks fine, I will change the formatting slightly.
 
"best practices" is subjective. The official code-review guidelines state " If the receiver is a slice and the method doesn't reslice or reallocate the slice, don't use a pointer to it" — JimB 45 secs ago
 
2:37 PM
0
Q: Electric potential visualization

Khashayar BaghizadehThis is exercise 3.2.23. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne: Write a program that creates an array of charged particles from values given on standard input (each charged particle is specified by its x-coordinate, y-coordinate, and charge value) and ...

0
Q: View position updates based on device motion via RxSwift

jclasleyI've created a simple function to work as a level, where the dot on screen is centered when the device is completely flat. It changes position based on device orientation. I use RxSwift to update the position of the dot. I'm relatively new to RxSwift, so I'm worried that I'm not using it correctl...

 
2:59 PM
@Duga I swear Duga either loves or hates me. Never* an AI message about me... hmm
 
0
Q: Need advice for speeding up of construction and search of Kd-Tree in c++

Cheng Wei ZhongI am not very fluent in C++ and want to construct a Kd-Tree in C++ based on this paper Efficient Locally Weighted Polynomial Regression Predictions, to use it to conduct some fast implementations of local linear regression . However, the speed for creating the tree and search( especially) is very...

 
3:23 PM
Monking
 
4:16 PM
1
Q: Python and sqlite - Load data from sqlite table, modify them and save in to new sqlite table

Dejan SamardzijaMy goal was to create a script that would: Pull certain data from an existing sqlite table Apply a simple mathematical formula Save the new values to another sqlite table I’m just starting to learn python (programming in general), and to be honest a lot of that is unclear to me. But using the i...

 
For code that works fine but you want its efficiency reviewed, codereview.stackexchange.com might be a better forum. — Pranav Hosangadi 17 secs ago
I’m voting to close this question because it belongs on Code Review. — Trenton McKinney 27 secs ago
 
4:37 PM
The semantics of your extractor aren't immediately obvious, and I'd request a comment (or better yet, a named constant) if I saw that in code review. — chrylis -cautiouslyoptimistic- 54 secs ago
 
1
Q: Number of inversions on a segment (Help for optimisation)

Tilak MaddySo I was tryna do this question and I get TLE on one the test cases (the actual link to the question will ask you to login) What is an inversion ? An inversion of an element is the number of elements to the left which are greater. Sum of number of numbers throughout a segment is the answer. It...

1
Q: Testing lower- and upper bound values in Python

a.t.Code functionality The following code tests whether the values that a user specifies for a lower bound and upper bound on two properties: The lower bound is smaller than the upper bound. The values are larger than 0 (positive). Since it first checks whether the lower bound is smaller than the u...

 
 
1 hour later…
5:54 PM
Hi Pravnav, thanks for the info—I had never heard of Code Review before. I’ll keep that in mind for future questions. — User356 14 secs ago
 
6:20 PM
1
Q: basic two-player tic tac toe game

fartgeekHere is my code: def printBoard(board): # this prints the board print(" | | ") print(f" {board[0][0]} | {board[0][1]} | {board[0][2]} ") print(" | | ") print("---------|---------|---------") print(" | ...

 
 
2 hours later…
8:27 PM
Since your code is finished and working, this is a question for CodeRewview codereview.stackexchange.com and not for this site. — Caldazar 48 secs ago
 
9:14 PM
0
Q: Python Tkinter GUI Login

bliboyi have been programming for about 4 to 5 months now and i made a login script with tkinter in python .I tried to use classes and function definition as best as i could . To get to know them better. I wanted to ask you all , how does this code look and is there something i should or shouldn't do t...

 
 
2 hours later…
11:26 PM
@CaptainObvious Broken code see comments for more details.
 

« first day (2694 days earlier)      last day (1320 days later) »