« first day (3555 days earlier)      last day (473 days later) » 

12:08 AM
REFRESH! There are 7506 unanswered questions (90.1982 answered)
 
1:04 AM
0
Q: rendering after API calls with React

BobbibeI am making a pokemon API call and want to display the pokemon on the page. After I call the pokemon API with a useEffect. How do i run code only after the API call finishes? export default function create(props) { const [pokemon, setPokemon] = React.useState([]); React.useEffect(() => { api...

 
1:29 AM
0
Q: Image sequence ingestion script

TimI am writing a script that will ingest image sequences from a 'transfer' directory to the main location that they will be used. The intent is that this will automatically move them in to the correct location but also apply the correct naming convention. The user would have to cd in to the source ...

 
 
2 hours later…
3:36 AM
0
Q: Music Library structure in C

KermitTheFrogHello everyone I've started learning a little bit of C, and I've made pretty simple project, that have a lot of potential in building. I would like to add some features in the future, such as playing music, playing playlist etc. At this moment my project is working "fine", I'm trying to fix delet...

 
 
2 hours later…
5:43 AM
0
Q: Bookstore program with lagorithms, exercise from C++ primer 5th edition

matan izhakthis is the exercise basically : " 10.32: Rewrite the bookstore problem from § 1.6 (p. 24) using a vector to hold the transactions and various algorithms to do the processing. Use sort with your compareIsbn function from § 10.3.1 (p. 387) to arrange the transactions in order, and then use find an...

 
 
2 hours later…
7:48 AM
Hey! If you want other people to review your code, there is a special place to do this --> codereview.stackexchange.comFoxFil 27 secs ago
@PhilippeRemy Please don't ask people to show the code when they're looking for code review, because we don't do code review here. We require clear, objective, specific, focused questions, and "what are your thoughts about my code?" is none of those things. — Karl Knechtel 59 secs ago
 
 
2 hours later…
9:28 AM
If you want feedback to your code, then ask it on Code Review. — akop 11 secs ago
 
10:19 AM
Glad I could help. Personally, I don't like "train wrecks" like parent().parent().etc and I see there are several member variables which could be local variables instead. You might consider to visit codereview and get some suggestions on how to improve it. As they say: make it work, then make it pretty. — Friedrich 51 secs ago
 
0
Q: SOLID example. Is it good practice?

Aleksei BurovI had a task: implement transitions in the menu. I decided to create two entities: MenuController and MenuView. I tried to make it so that MenuView did not even know about the existence of the controller BUT it turned out to be impossible, because in the MenuView entity there should be a "Back" b...

 
 
1 hour later…
11:38 AM
0
Q: Begginer Python Web scraping- should it be OOP?

MagdaI'm a newbie in programming, I chose Python, I'm learning on my own, Currently I'm preparing code for a portfolio on github. I will be grateful for any code review, especially in the subject of OOP: should I try to create classes? Does it make any sense with such a code? is the code structure pyt...

0
Q: Feedback to Event functionality in C

mortytheshortyI am beginner to intermediate and wanted to write a little event code in c. It's one header file with 108 line pure code and it does what I was thinking it should be like for me. EventListener.h: https://pastebin.com/cNuWKrLn event_test.c: https://pastebin.com/VpWRBnC7 These are my structures: st...

 
 
1 hour later…
12:54 PM
possible answer invalidation by tripleee on question by tripleee: codereview.stackexchange.com/posts/78086/revisions
possible answer invalidation by tripleee on question by tripleee: codereview.stackexchange.com/posts/78086/revisions
Please ask this on CodeReview SE instead: you have an already working problem and just want some stylistic/design/... comments on it. This question is off-topic here. — SUTerliakov 48 secs ago
 
1:20 PM
Surely (no one/everyone) will (recognize how flexible and useful this architecture is/spend a huge amount of effort painstakingly preserving and updating this garbage I wrote in 20 minutes)
6
 
2:07 PM
I think this question belongs more on CodeReview stack exchange, because your code is working fine and you want to just improve it — TrueGopnik 55 secs ago
 
0
Q: Django Code Repetition due to Multiple objects in JSON

MaddyI have the following code which works as expected i.e saves data to the db as I would like it to, however, there is a lot of code repetition and I am unable to find a way to shorten the code I have about 30 serializers (pasting 3 to shorten the code) class FirstOne(serializers.ModelSerializer): ...

 
2:55 PM
@RMunroe It's true, I don't know about all software projects.
 
3:28 PM
Code review is off topic for StackOverflow as there is a separate site for it, codereview.stackexchange.com . As I don't frequent that site I don't know if your question would be appropriate there in its current form, so be sure to check their guide to asking questionsl4mpi 16 secs ago
The main use case for us is to do a code review vs one branch, then merge to another. For example, I am working on (yet unmerged) branch A, and my colleague wants me to review his changes that depend on my work. We want them to be to request a code review vs branch A, then submit a PR to master after A is merged. Keeping a PR for master open, as the answer suggests, will unnecessarily pollute the code review with code from branch A which is not yet in master. — Alex O 42 secs ago
 
@pacmaninbw pretty sure this happens with all software, even stuff that doesn't involve code.... LOL
2
 
3:52 PM
@RMunroe You've been spying on my work again, haven't you?
4
@Duga This one's okay - demo command in a code block
 
@TrueGopnik, the question needs work before it's suited to Code Review. You could have pointed the asker at A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. we need a good description of the purpose of the code to give context, and question titles should simply say what the code is for (the question is always, "How can I improve this?"). It's important that the code works correctly; include the unit tests if possible. — Toby Speight 26 secs ago
Before you post at Code Review, be sure to read A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. question titles should simply say what the code is for, as the question is always, "How can I improve this?". Be sure that the code works correctly; include your unit tests if possible. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. — Toby Speight 40 secs ago
Only if the code review is B->master. If the review is B->A, then it should be exactly what you want. — Toby Speight 13 secs ago
 
4:16 PM
0
Q: Why can't I return the string in an if statement?

LaurentI want to return a series of string statements that print out the factors of an integer(number2). I'm using Eclipse but it's giving me an error on the first line and telling saying, "This method must return a result of type String". I don't understand. public static String factors(int number2) ...

 
4:26 PM
Monking
 
4:38 PM
Monking
 
4:55 PM
Monking
 
5:24 PM
Monking
 
@RMunroe should the placement of parentheses be adjusted? without the parenthetical text it would just be "Surely will"...
maybe that is what the goal was but it didn't seem intuitive at first...
> Surely (no one/everyone) will (recognize how flexible and useful this architecture is/spend a huge amount of effort painstakingly preserving and updating this garbage I wrote in 20 minutes)
 
welcome. tour, How to Ask, help center. codereview.stackexchange.com -- did you know that you are mixing opencv's imshow with Tkinter, and you must not do this? — Christoph Rackwitz 55 secs ago
 
5:54 PM
@ChristophRackwitz If you are going to redirect someone to code review please use these links instead How do I ask a good question? and A guide to Code Review for Stack Overflow users. I do the same for questions that belong on stack overflow that have been posted on Code Review. — pacmaninbw 58 secs ago
 
0
Q: How to access private tableView property from Unit Test Class?

Tharindu KetipearachchiI have following ViewController class with a tableView. final class ListViewController: UIViewController { private let tableView: UITableView = { let tableView = UITableView(frame: .zero, style: .plain) tableView.translatesAutoresizingMaskIntoConstraints = false t...

 
6:22 PM
1
Q: adding characters on mouseover using Svelte

Aarav PrasadThis is my first time using svelte. I am also using tailwind and astro but that is irrelevant. The following component prepends >> to my text when it is being hovered upon and takes the >> out when it is not. Is this the typical way to use svelte? Am I doing something wrong? I feel I am. <script>...

1
Q: Multiplayer javscript game client side

cs6413110Any improvement suggestions are welcome, as I'm not the best at making games lol. I have it structured like how Java would be because in the future I want to make it run on java and in the browser. Graphics Class used to easily resize, draw, and crop images: class GUI { static resize() {...

 
 
4 hours later…
9:55 PM
I'd suggest - go ahead and make something that works in whichever way feels best to you, but maybe without thinking too hard about it - then post it on the Code Review stackexchange site and ask for suggestions on improvement? — Jack Deeth 40 secs ago
 
0
Q: Optimize nested for loop

RuanI am trying to find a way of getting rid of the nested for loops in the code below. Ideally, I would like to perform the calculation in one clean step. Any recommendation will be appreciated. import numpy as np x = 5 y = 3 Vec_x = np.linspace(0, 1, x + 1) Vec_y = np.linspace(0, 1, y + 1) m = (...

 

« first day (3555 days earlier)      last day (473 days later) »