« first day (2470 days earlier)      last day (1845 days later) » 

00:00
-1
Q: Excel Macro takes an insane amount of time to run. any way to make it faster?

Tyler BurrOk, I Have a large Macro lovingly named Beef_Cake, this macro is intended to preform a large number of task to automate a formula filled workbook to format and build a data sheet from a large Export. The problem is its super slow, it does its job faster than a person could but its still not fast ...

0
Q: Recursive normalization

TemporaryNameSay we have three models in our DB, looking like this: User: { "id": 1, "username": "Bob", "car_id": 1 } Car (OneToOne): { "id": 1, "model": "Ford Fiesta", "user_id": 1, } Theoretically, if I need the car's data and denormalize it, I would include the user, which in turn would ...

RELOAD! There are 6397 unanswered questions (90.0769% answered)
00:39
0
Q: A todo application in React using hooks

Koray TugayI am learning React and wanted to implement a todo app using function components. Any suggestions and criticism is welcome, especially regarding best practices. import React, {useState} from 'react'; class Todo { constructor(id, description, complete) { this.id = id; this.de...

 
1 hour later…
02:05
This is probably more appropriate to codereview.stackexchange.comNick 37 secs ago
02:38
0
Q: Dillemas about what is the best approach to apply in PHP OOP Classes?

LinesofcodeI'm facing some dilemmas about how should I proceed when creating my classes and I'm trying to figure out what is the best common practice. Lets take for example the following class: class Payment extends Subscription { private $subscriptionId; private $planId; public function setS...

Re "Kindly check if this will work.", That's backwards. If you have a problem, describe it and we can help you. If you want a code review, check out codereview.stackexchange.comikegami 19 secs ago
I'm voting to close this question as off-topic because code review requests should be posted to codereview.stackexchange.com SO is where you go when you have a problem. — ikegami 14 secs ago
03:38
0
Q: Reviewing custom array List class of java

dghtrI am using JDK 12 and I have developed the custom array list in java with a basic understanding Please let me know if there are any flaws in it that I can correct the same First the POJO class public class Employee { private String id; private String name; public Employee(String i...

 
1 hour later…
05:00
0
Q: Is this a robust fast way to get the name length of a dirent in C?

AsadefaWith dirent.h, if I readdir(), I can assign the return value to a struct dirent * I have noticed that there is a property within them called d_namlen. They are basically the length of the d_name. But as pointed out here, there are unreliable. So, is the following code efficient, yet robust, becau...

Monking
 
2 hours later…
07:17
you can refer answer for similar question codereview.stackexchange.com/questions/200391/…Prabhanj 40 secs ago
 
2 hours later…
09:12
@JoelWiklund I am sure as per my code review skill I can say that this code refers to Entity framework — Divyesh Jani 8 secs ago
 
1 hour later…
10:28
This question should be asked on the codereview site rather than here. — Shawn 32 secs ago
@Shawn kinda debatable. There are plenty of questions on SO asking about why something is slow and how to improve it with a working code sample (e.g this one), but the premise of "Hey I have some working code, how can I improve it" fits much better on the Codereview SE — MindSwipe 59 secs ago
 
1 hour later…
11:55
I would recommend posting that in code review. — Vytautas Plečkaitis 51 secs ago
Welcome to stackOverflow. The question is incomplete, please edit it, to show what you have tried so far, and share the code. You might want to read How to ask a good question. — Mehdi 32 secs ago
0
Q: Hamming Distance for in if

John SpringHow can I make this code snippet better? Those 'for's in if don't please me but they are covered with code lines that is dependent to if before and after. public int hammingDistance(int x, int y) { String binx = Integer.toBinaryString(x); String biny = Integer.toBinaryString(y); int...

0
Q: Personal library application, allows user to add and remove books and update read status of an existing book

R VI have created my first crud javascript application to help me learn and I'm looking to hear from you any improvements or good practices I could apply to the code I've written. In my html I have a bookshelf div and the html code needed for a form which pop-ups on the click of 'addNewBook' button...

Welcome to stackoverflow. Have you tried anyting? Please edit the question with your code. You might want to read How to ask a good question. — Mehdi 34 secs ago
12:17
0
Q: Encrypt data before sending it to server in a way that makes it unreadable by anyone except the user who sent it

Igor BubelovI don't have any experience in cryptography and I've written some crypto code that seem to be working, but I'm not sure if it safe and if the tools and methods I used are right. Objective Make it possible to store data (JSON) on remote server without this server being able to read it in plaint...

12:37
0
Q: Messaging System Object Oriented Design

Bianca I have designed a messaging system below regarding the following assumptions I would be appreciated for the valuable reviews. Especially considering; Multi-threading / SOLID principles / Design patterns Assumptions: Messaging System allows users to communicate with each other via messages. Us...

12:54
This might be better on-topic at Code Review codereview.stackexchange.com (but I never used Code Review so someone else might know better, since they get some incorrect migration suggestions from SO) — Chris_Rands 44 secs ago
0
Q: performance tips for c# method

CodCaseI know that there is always space for improvements so could you give me some hints how to get the function faster? (if possible :-) ) public static void getGroupsWithUsers() { String currentDomain = Domain.GetCurrentDomain().ToString(); using (PrincipalContext context = new PrincipalCon...

13:53
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com — Green Cloak Guy 59 secs ago
 
1 hour later…
14:56
0
Q: Macro for counting number of elements in an array

kluttWe all know the classic version of counting the number of elements in a C array: sizeof(a)/sizeof(*a) But this is dangerous, because if used on a pointer it will return garbage values. So I made this macro, utilizing gcc extensions. As far as I can tell, it works the way it is supposed to. #de...

15:22
Couple of off-topic notes (I know this isn't code review, just some minor): $.each($("#areas-table tr") could be $("#areas-table tr").each( / $("<tr></td>") can be just $("<td>") / no need for parseInt if using .data("intattr") as jquery converts it to an int for you. subAreaId = categoryId should probably be categoryId = currCatAreaIdfreedomn-m 37 secs ago
15:35
1
Q: Huge integer class using base 2^32 (was 256) follow up

Richard MaceThanks again to everyone for their very useful suggestions concerning a huge integer class I posted here several days ago. I have made many of the suggested changes, perhaps the biggest being in the implementation. In particular, I am now using an array of uint32_t type to store digits with each ...

15:55
0
Q: can't understand the easy solution to basic problem [codeforces]

ERJANThe problem is here - masha and sticks. The 3 numbers given are 3 sides of triangle. The problem asks to find the minimal number I need to add to get formable triangle. If it's already triangle with a,b,c -return 0. If it's not triangle - return minimal number to add to make it triangle. the ...

There is a site for that (code review) — Ring Ø 45 secs ago
16:15
0
Q: SelectAsync With Max Degree Of Parallelism

TheRockI have been looking for the best approach to creating an extension method that would give me the ability to select in a linq query using async/await with a max degree of parallelism. I'm aware that this can be achieved with the use of different libraries but wanted to create one without. Using ...

16:40
This would probably be a better fit for codereview.stackexchange.comTurnip 40 secs ago
@MindSwipe Re: Code Review, this is a broad-enough request that it really does belong there rather than here. It's basically asking for a full re-write. — TylerH 40 secs ago
Please read their help section before posting. I am not very familiar with their rules. — Turnip 1 min ago
16:55
0
Q: c# check for length

JeffersonWill you review the syntax, structure, and logic of my code. It can be tested using the main. namespace DupName { public class Program { static void Main(string[] args) { StringBuilder childName = new StringBuilder(); List<Item> items = new List<Item

0
Q: How can I Implement a better version of my function find the closest number to zero?

Azi CodeI recently had to do a test for a job interview, and the prompt was to code a function that returns the closest number to 0 given an array of negative and positive numbers. My function works correctly but I heard back from the recruiter saying that my function is not very performant and that the...

0
Q: Format raw bytes in hex and ascii in manner like Wireshark does

kybThis function formats raw buffer output in manner as Wireshark and many others does: 0x00: 68 65 6C 6C 6F 20 77 6F 72 6C 64 02 6B 68 67 61 |hello world.khga| 0x10: 76 73 64 20 0B 20 0A 05 58 61 73 6A 68 6C 61 73 |vsd . ..Xasjhlas| 0x20: 62 64 61 73 20 6A 61 6C 73 6A 64 6E 13 20 20 30 |bdas...

17:18
Monking
 
1 hour later…
18:45
@chepner Don't enable him lmao (but seriously opinion based questions are not generally accepted on SO, so please either edit your message to focus specifically on an aspect of one or the other, or move to something like SU or CodeReview) — Death Waltz 58 secs ago
 
1 hour later…
19:53
-1
Q: 2 player dice game probability

snm2003I am new to python, and I have completed the code to show who wins the game, but I also need to be able to tell the odds that player 2 wins the game. Problem: 2 players start with 6 markers. Each round 3 standard dice are rolled. If the roll is 11, player 2 gives one marker to player 1. If the ro...

20:53
0
Q: N body simulation in C++

SitoYou can find the complete code on github. Since I'm rather new to C++ I thought that it might be a good idea to write a simulation of the n-body problem to apply some of the concepts that I learned in class. The relevant part can be found in main.cpp on the above linked github repo, but the impor...

 
1 hour later…
22:12
0
Q: MySQL JDBC integration into App from tutorial

VictorI was following this tutorial for JavaFX and Gradle: JavaFX with Gradle, Eclipse and, Scene Builder on OpenJDK11 After completion of the tutorial you will have a simple GUI which you input a lower and upper bound and generate random numbers between them. The generated numbers and their bounds a...

22:29
Might be asked on Code Review as your code doesn't have a practical problem. — usr2564301 7 secs ago
 
1 hour later…
23:56
You need a test case that gives the wrong answer. I'm not clear on what the function does. However, if it's working correctly, except you want to improve performance, consider codereview.stackexchange.com — Kenny Ostrom 19 secs ago

« first day (2470 days earlier)      last day (1845 days later) »