« first day (3614 days earlier)      last day (395 days later) » 

1:34 AM
possible answer invalidation by Raees Iqbal on question by Raees Iqbal: codereview.stackexchange.com/posts/284164/revisions
possible answer invalidation by Raees Iqbal on question by Raees Iqbal: codereview.stackexchange.com/posts/284164/revisions
possible answer invalidation by Raees Iqbal on question by Raees Iqbal: codereview.stackexchange.com/posts/284164/revisions
 
 
2 hours later…
3:34 AM
@Duga Rolled back and commented.
 
 
1 hour later…
4:41 AM
Monking
 
4:59 AM
0
Q: Proper implementation of signal handler and multitreahding (pthread)

D.J. ElkindI am trying to implement a "proper" signal handler that works correctly for multiple threads, and to be as C-standard-conforming and POSIX-conforming as possible. The below is my implementation, any thoughts or bugs?: #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> ...

 
 
4 hours later…
8:44 AM
Be sure to produce a working code then try to post your question to codereview.stackexchange.comJérôme Radix 43 secs ago
 
9:17 AM
0
Q: How much code to wrap in try

sakura-bloomI am trying to figure out how much code should be covered by try. The code retrieves HTTP body from the request. Approach one. String body; try { // request is HttpServletRequest body = request.getReader().lines().collect(Collectors.joining(System.lineSeparator())); } catch (IOException e...

 
9:30 AM
Ahh I see where you come from. Lets take this example: github.com/golang/go/wiki/CodeReviewComments#interfaces Based on the example given, there are two packages (consumer and producer). The documentation told us to not define Thinger interface under producer package but under consumer package. Now my question is that, is it okay if I don't declare the Thinger interface in the producer and consumer package, but lets say a separate package called "interfaces". Then the package from producer and consumer will call Thinger from this "interfaces" package? 🙏 — Victor Vic 16 secs ago
 
 
2 hours later…
11:27 AM
0
Q: Getting and setting dict items via paths

t3chb0tI wanted to have something more convenient to work with nested dictionaries that come from yaml files so I wrote this DictIndexter. Its __getitem__ and __setitem__ accept a path instead of a single key. Additionally the getter can also take a tuple with path and default value. The setter on the o...

 
 
2 hours later…
1:10 PM
0
Q: Python library to internationalize applications (i18n)

sectasyI've been developing my python internationalization library modeled after i18n in Ruby for a while now, I'm curious what others think of it and how my code is. Obviously, I can't post the entire code here, so I'm adding a link to the repo below. I know there are a few issues that can be solved in...

 
GitHub is having outages.
 
 
1 hour later…
2:27 PM
0
Q: Rust book exercise

Lewis FarnworthGoing through the Rust book for the second time as I've been wrapped up in Typescript for a while and I want to build a personal project in Rust. In chapter 8.3, there's an exercise: Given a list of integers, use a vector and return the median (when sorted, the value in the middle position) and...

 
Ryan Donovan on March 27, 2023
Fully embracing a remote workplace means letting everyone work when they want to work.
 
Try your solution fully and see if it works. If you can't get it working, come back, post your attempt and explain where/how it goes wrong. If you can get it working and just want someone to review it and come with suggestions, then you can post it over at Code Review instead — M. Eriksson 28 secs ago
 
3:37 PM
@imbearr I've had a discussion on another question on stackexchange codereview and as I now thinking about it, it can be missused which leads to an unlikely error that has nothing to do with the real error. I.e. if you set it "OBJECT_CREATE_ERROR" and errno was set to "ENOMEM" then you lost the real source of error. — mortytheshorty 53 secs ago
 
4:02 PM
Monking
 
 
2 hours later…
6:28 PM
@mexx unfortunately throwing a bunch of code up and asking folks to code review doesn't go over well here, you may have better luck if you work on it yourself and edit your question to be more concise once you've narrowed it down. But I wouldn't be surprised if this gets a lot of negative attention and the question gets closed. Just trying to help - good luck! — jpsmith 26 secs ago
 
 
2 hours later…
8:29 PM
0
Q: any bits unsigned integer

RhinoRunnerThis is a class that acts as an unsigned integer with a variable amount of bits. #include <iostream> #include <cstdint> // any amount of bits inteter // note: stores with size of uint64_t template <uint8_t bits_g> class uintx_t { private: uint64_t Val; uint8_t bits; constexpr inline...

 
8:55 PM
0
Q: Multithreaded Conway's Game of Life implementation written in C and Java using JNI

Shmuel NewmarkI had some multithreading C programming experience from school last year but I wanted a bit more so I tried to program a Conway's Game of Life implementation from scratch. Code is mainly written in C but is invoked via a JNI call from the GameOfLifeMultithread.java class. The java code is also re...

 
9:47 PM
0
Q: Does my python Sudoku solver cut the mustard?

blibI wrote a Sudoku solver in Python and would love any feedback you can give on anything you see fit - the code, the solution, layout, coding principals, format etc. The program awaits input of an 81 character string representing game data (zero is a blank space) like the below which is an 'evil' S...

 
 
1 hour later…
11:07 PM
REFRESH! There are 7363 unanswered questions (90.4106 answered)
 

« first day (3614 days earlier)      last day (395 days later) »