« first day (2052 days earlier)      last day (1968 days later) » 

12:00 AM
RELOAD! There are 5837 unanswered questions (89.7562% answered)
 
12:18 AM
0
Q: Quicksort in C with unit testing framework

Tom ZychThis is my quicksort There are many like it but This quicksort is mine. So, quicksort, in C, with a big framework to test it six ways from Sunday. Passed the tests nicely, but there may be warts, or subtle mistakes I didn’t think of, or code that’s hard to follow, or just better ways to do thing...

 
if the code is working and produces the desired output, you should post it on codereview.stackexchange.com and request a review there. — Will Ness 44 secs ago
 
12:41 AM
It looks like you put a lot of effort into the question. Unfortunately this is off topic for SO. Questions here should be for specific problems with specific code, not architecture or code review — Crowcoder 1 min ago
 
 
1 hour later…
2:04 AM
This should be posted in Code Review. — Sometowngeek 17 secs ago
 
0
Q: translate nucleic sequence in it's corresponding amino acid sequence

felixGoal of the program The goal of the program is to translate a nucleic acid sequence into it's corresponding amino acid sequence. The nucleic sequences have to be formatted in a specific format called fasta. There is an existing implementation of this program in C here: emboss transeq Fasta form...

0
Q: Generic Binary Search Tree Implementation in Java

Hamidur RahmanThere is an implementation of Binary Search Tree. This is kind of based on Set Theory that duplicates are not allowed but an attempt to adding the same node twice will replace the older node. BSTNode Class: package nodes.treeNodes.binaryTreesNode.bstNode; import java.util.Iterator; import java...

 
3:21 AM
0
Q: Go WebSocket server

GugisI have task assigment to implement HTTP server on Go and there are guidelines: Server should listen for WebSocket connections on /ws path. Server should accept only text type messages. Incoming messages should be transformed and sent back to the sender. End connection on client command or wh...

 
 
7 hours later…
10:35 AM
It would be better to ask your question here codereview.stackexchange.comS.Akbari 40 secs ago
I'm voting to close this question as off-topic because this question belongs on codereview.stackexchange.com in the Stack Exchange network — S.Akbari 32 secs ago
 
11:32 AM
-1
Q: How to rewrite my code?

new programmerI'm a new programmer,I write some code just now. yet it looks like not professional and effective. How to rewrite it? for (int i = 0; i < p.Count; i++) { if (findedPoints.Contains(p[i])) continue; first = FindNextPoint(p, p[i], findedPoints); Stack<P...

 
12:02 PM
-1
Q: Print Details From Snake Code

user11128I have found the following code online that implements a game of snake. I have edited it so that it continually prints the Manhattan distance between the snake's head and the food to the terminal. This is really important as I want to train the snake using machine learning. Code below: import m...

 
 
1 hour later…
1:18 PM
0
Q: BlackJack Game C++

foxy1000000I am new to coding with c++ and I am needing some advice about a code I am working on for a BlackJack game. So Far I have built my card and deck class for the blackjack game but I am finding it difficult to what I need to do to assign values to the cards. This is what I have got so far BlackJa...

 
Monking
 
1:34 PM
0
Q: Basic AES/CBC implementation in Java

user188262A little bit about myself: I am 18 years old, a student living in Germany and currently working on an android app. I would like if someone has the time to review my code. I am especially interested if this code has any vulnerabilities and if the efficiency could be improved. Thanks in advance :)...

 
1:49 PM
-1
Q: Qt: Capturing images from camera continuously fills the whole memory

onur cevikI am trying to capture images continuously so I can send them using UDP. I am doing this to implement a live video streaming program. The code below captures images continuously and assigns images to QGraphicsScene so I can test if images play like a video. But when I run the program my computer...

 
The proper place to ask for critique on working code is Code Review. Stack Overflow is for asking question about code that isn't working (yet). But to answer your question: yes, nesting one iterator in another iterator is pointless when both of them are essentially processing the same collection. Your second code sample is equivalent to your first one. — Ansgar Wiechers 12 secs ago
The proper place to ask for critique on working code is Code Review. Stack Overflow is for asking question about code that isn't working (yet). But to answer your question: yes, nesting one iterator in another iterator is pointless when both of them are essentially processing the same collection. Your second code sample is equivalent to your first one. — Ansgar Wiechers 39 secs ago
 
 
1 hour later…
3:21 PM
0
Q: Creating a csv file using scrapy

robots.txtI've created a script using python in association with scrapy to parse the movie names and its years spread across multiple pages from a torrent site. My goal here is to write the parsed data in a csv file other than using the built in command provided by scrapy cause when I do like this scrapy c...

 
3:36 PM
0
Q: Python script for to evaluate business data

michael.zechThe following script is part of a further education I'm currently enrolled into. Not all of the code is written by myself. Function signatures for example. Therefore I have put the sections, written by myself, put into # -- Own ---- comment-lines. Moreover you were given three CSV-files with bu...

 
If this code runs without errors, a better place to ask could be Code Review. "Optimizing code" is explicitly mentioned in their list of on topics. — usr2564301 7 secs ago
I'm voting to close this question as off-topic because it belongs to Code Review. — desertnaut 16 secs ago
i'll remove it and move to code review. — Bas Velden 29 secs ago
 
4:06 PM
0
Q: MaxHeap implementation in JavaScript

HumoyunHere is MaxHeap implementation in pure JavaScript: /** * We initialize index 0 because, calculations for finding * children of a node and the parent of a node is easier * parent = [ k/2 ], children: [ k*2, k*2+1 ] */ class Heap { constructor() { this.queue = [0]; }; /*...

 
I know it comes up in every code review, but don't use using namespace stdMTCoster 20 secs ago
 
4:21 PM
Monking
 
4:37 PM
0
Q: Speed Up Simulation Function

Bas VeldenPart of the program I wrote simulates a chess game choosing random moves for each player until it's a draw or win for either player. It takes 3 seconds to complete 1 simulation and since it trains this way it will be much too slow to get real progress in chess because of the insane branching fact...

 
5:00 PM
I have finnaly wrote the algorithm, but it's to slow like my second. Code and discription on review site: codereview.stackexchange.com/questions/209772/…Emik 59 secs ago
 
0
Q: Strassen Vinograde Alghorithm

Emiki have written the Strassen Vinograde Alghorithm, but it's running slowly because of recursive creation of static arrays. I know that dynamic arrays would solve this broblem, but i'm not allow to use them. So the main ideat of this version of Strassen: We use corner elements of each square instea...

 
5:23 PM
-1
Q: Snake game in vector view c++

MarkontrI tried to make a vector out of class and structure, but it didn't work out for me. Please tell me what and how to do. I used the class to create the fruit and the structure for the snake. Also please tell me the esc key which number to call the key case (27 didn’t fit) #include "header.hpp" #i...

-1
Q: Jenkins Github to Lambda... 8-9 line integration on windows

user188273This is a <10 line jenkins powershell build step triggered by a git commit which zips code and copies to lambda. Seems to work fine for javascript projects. I check for the zip file and then remove it if its there. Any commentary? What am I missing? $sourceDir = $env:WORKSPACE; $targetFile = $en...

0
Q: How can I make this code to be production worthy application?

ftTomAndJerrySo I have written this code that takes a .bib file as an input and retrieves PubMed article information as a JSON response using a PubMed API. I am a Bioinformatician and have written logic for the Bioinformatics programs but have never written a code that was production quality. All my codes wer...

 
5:45 PM
possible answer invalidation by Reinderien on question by robots.txt: codereview.stackexchange.com/posts/209766/revisions
Try posting in Code Review site, it is a much better fit for this type of questions. — Gerry 13 secs ago
 
6:09 PM
0
Q: Simple Uri parser and DTO

t3chb0tI needed some data structure for holding Uris so I thought I try the Uri class. It quickly turned out that it's very impractical because: it's missing an implicit cast from/to string it doesn't automatically recognize uris as absolute or relative without specifying the UriKind it doesn't parse ...

 
6:24 PM
0
Q: Program to check if heap order is correct or not

Hamidur RahmanThere is a Java program to check if a Heap (Min) is in the correct order. Heap Order means the parent is less than both left child and right child. package testers; import heap.Heap; import java.util.List; public class HeapTester { public static void main(String[] args) { Heap<...

 
6:59 PM
My two cents about the recent meta:
0
A: Closing of questions citing "off-topic" as reason where user-defined code and standardized code is clearly equivalent

Simon ForsbergI see that you are saying that "the context is apparent by the code itself." and "There is no difference from the original code and the edit to the code submitted". Let me reply to these things and possibly some others of your concerns. First, let's talk about the answerability of this question....

 
7:10 PM
0
Q: JavaScript: Should this be a Class or a set of utility functions

Brandon BenefieldI've created a CLI tool for an app I'm working on and it was originally a set of two utility functions where one called the other and everything was fine. I then decided to refactor the functions into a class, SuperUser, that does the same thing but it now feels like I've just complicated someth...

 
7:40 PM
0
Q: Java: Code structure with multi processing

user188278I am currently programming an multi processing tool with a GUI in JavaFx. I want to have your opinion about my code. This is code snippet from my main class CountDownLatch latch = new CountDownLatch(selectedPaths.size()); ExecutorService executorService = Executors.newFixed...

 
 
1 hour later…
8:48 PM
codereview.qt-project.org/#/c/248378 adds the relevant bits of docs. — peppe 14 secs ago
 
9:43 PM
0
Q: C++ Event system implementation with Listener and a static Manager

GytautasI am trying to create a event system that would be quite easy to use. The idea is that a user would only need to create a custom function and tell which event should fire that function. It works as is, but I was wondering if there is a more efficient way to accomplish this that i'm not aware. Th...

 
10:29 PM
0
Q: Naïve Prime Factorization in Clojure Pt. 2

CarcigenicateAfter my last review request, I decided to try and make a "tree" visualization, and thought that I could benefit from making find-prime-factors lazily produce prime factors so the visualization can be updated in real time as factors are found. This is what I ended up with. I was actually surpris...

 
11:14 PM
0
Q: C# Selecting Correct Carton Based On Qty

user1234433222I'm attempting to create a function that will select the correct carton based on the qty of the carton content.Here are my cartons that have the number of items they can hold. SMALL_PASCAL = 300 BIG_PASCAL = 600 BABY_BOX = 1200 A485_1201 = 1800 A4140_1901 = 3000 A485 = 5000 And here is th...

 
11:25 PM
possible answer invalidation by user1234433222 on question by user1234433222: codereview.stackexchange.com/posts/209788/revisions
 
11:40 PM
possible answer invalidation by user1234433222 on question by user1234433222: codereview.stackexchange.com/posts/209788/revisions
 

« first day (2052 days earlier)      last day (1968 days later) »