« first day (3306 days earlier)      last day (39 days later) » 

12:01 AM
REFRESH! There are 8074 unanswered questions (89.3116 answered)
 
 
2 hours later…
1:54 AM
If your code has no issue, SO is not the place to ask. Try code review forum instead. — Julien just now
 
2:08 AM
There are more improvements that could be made, too; but please keep in mind that thsi is not a discussion forum, nor is this Code Review. Answers here should directly answer the question that was asked, or at least solve the essential problem. — Karl Knechtel 58 secs ago
 
 
2 hours later…
3:48 AM
Monking
 
 
3 hours later…
6:27 AM
0
Q: Project Euler - Problem #2 - Even Fibonacci numbers - Python

Amir MotefakerThis is my solution for problem 2 of the projectEuler with python: a, b = 1, 1 total = 0 while a <= 4000000: if a % 2 == 0: total += a a, b = b, a+b # the real formula for Fibonacci sequence print (total)

 
6:51 AM
0
Q: Event handler for client webrtc video chat

PWallThis is my event handler for a videochat client that takes all the events that the server throws at us and routes them to different functions. All of the functions are imported and both settings and session are global objects. My main priority on this project is readability and style and this big...

 
 
2 hours later…
8:30 AM
0
Q: Process a binary file by chunk using a read stream in nodejs

Louis CouletI want to process a file chunk by chunk to prevent memory exhaustion. I need to consume the file using a read stream. When trying it, this implementation seems to work fine. I am asking your expert eyes: have I overlooked anything or did I forget some case? have I made a mistake somewhere and it...

 
 
2 hours later…
10:09 AM
0
Q: Python function that skews an image while preserving its aspect ratio using affine transformation

Ξένη ΓήινοςSee this post for more details. I re-implemented my idea using affine transformations, and finally understood how transformation matrices are formed... Turns out it is stupidly simple, but nothing I can find online explains it directly... I updated the function so that it can also not upscale the...

 
 
3 hours later…
1:33 PM
if your code works and you're looking for optimization review codereview.stackexchange.com is the appropriate place for this. — WhozCraig 25 secs ago
 
Guest Post on May 23, 2022
All those CEOs on LinkedIn claiming they can find the right candidate in a five-minute conversation? Wrong. Science shows us how we can do better.
 
 
1 hour later…
3:45 PM
This might be duplicate of: stackoverflow.com/questions/22084338/… I'd review the answers in that question. Focus on modularizing your code so that you can time performance easier. And there's a lot of information on the internet about optimizing performance of pandas / dataframe processing. As asked this question might belong here: codereview.stackexchange.comBraden Holt 46 secs ago
 
3:56 PM
0
Q: Hash game in C optimization

Hugo RodriguesI developed this hash game in C for my college, but i need to optimize this code, can you help me? it works well, but I need it to be a little more organized and faster, the rand function is the only one used in the code, it uses random to randomize the pc turn, i.e. the pc is completely ineffici...

 
4:15 PM
Returning a reference means that any code review is going to take twice as long as we now have to carefully review the lifetime of what is being returned. — Richard Critten 36 secs ago
 
4:38 PM
 
5:18 PM
This isn't Code Review, improving the code style isn't necessary. We need to help them fix whatever bug the testing service is complaining about. — Barmar 48 secs ago
 
5:35 PM
0
Q: Python Data structure(Cannot understand one input in the solution)

Hrishabh AyushYou are analyzing sales data from a ticket office. The ticket for an adult is $20, while the ticket for a child under 18 is $5. The data you are given is in a dictionary format, where the keys are the sold ticket numbers, and the values are the customer ages. For example, "123-08": 24 means that ...

 
5:58 PM
Monking
 
6:10 PM
possible answer invalidation by 200_success on question by Dave: codereview.stackexchange.com/posts/276757/revisions
possible answer invalidation by 200_success on question by Dave: codereview.stackexchange.com/posts/276757/revisions
 
6:27 PM
But overall, you seem to be asking for a review of the program for buffer overflow risks, with recommended mitigations. That's far too broad for an SO question, but if the program compiles and generally works then it such a request would probably be on topic for Code Review SE. — John Bollinger 13 secs ago
 
7:14 PM
0
Q: Bank-system-managmennt improvement and refactor

Eriss69I need a some comment my code and give me idea how to improve that, maybe use database to that or sth. Because I have no idea what can I do that - to improve this ... :/ I need motivation :/ I believe in your power void Functionality::writeAccount() { const InputInterface *input = new CliInpu...

 
 
1 hour later…
8:22 PM
I’m voting to close Code Review request rather belongs to codereview.stackexchange.comMarcin Orlowski 33 secs ago
 
 
2 hours later…
10:08 PM
Working code is better suited for Code Review, I think. — heap underrun 39 secs ago
 
@CaptainObvious Minus 2 and 2 VTC, can use a hammer on this, MRC.
 
10:33 PM
0
Q: Magic Class Invoker for procedural script

ArcanisGK507I have inherited a project in bad conditions that contains the following class and I need your help to improve it, the truth is I don't know if it is correctly optimized or if it has security problems or if it can be simplified or refactored to mitigate some overload / overheating . I can't affor...

0
Q: Correct usage of Java Generics for a simple cache holding objects of any particular type that contain an identifier of any particular type

Basil BourqueThe Stack Overflow question, I'm trying to create an inMemory database using Collections and generics, presents some code that attempts to use Java Generics for an in-memory cache of objects of any particular type that contain an identifier of any particular type. I revamped that code in to the f...

 
10:48 PM
I revamped your code into a working project. Posted here on Code Review Stack Exchange where I asked if my handling of Java Generics is correct. — Basil Bourque 13 secs ago
 
11:22 PM
0
Q: Alternative to for-loop for a faster calculation in c++

CafféSospesoI am trying to speed up as much a possible this function in C++. As I explained in another post, Implementing multidimensional integral for a custom function in C++, this function will be used inside multi-dimensional integrals. Do you have any tips that could help me speeding up the computation?...

 

« first day (3306 days earlier)      last day (39 days later) »