« first day (3185 days earlier)      last day (822 days later) » 

12:00 AM
REFRESH! There are 8021 unanswered questions (89.2262 answered)
 
12:20 AM
0
Q: Trying to simulate simple combat in console

GwaimbenI am trying to "simulate" combat in the console as my "project" that I try on my own. I just wanted to ask if there is something that I could write in a more simple way? THANKS Profile.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading....

 
 
2 hours later…
2:23 AM
There's an extra site for code review. You should delete your question here and ask it over there. — sticky bit 32 secs ago
I’m voting to close this question because it belongs on Code Review. — sticky bit 25 secs ago
This question is better suited for codereview.stackexchange.comMFerguson 12 secs ago
I’m voting to close this question because it belongs on code review. — bmargulies 14 secs ago
 
2:50 AM
0
Q: How can I change one method of RestController containing image and VO to elegant code?

user253026How can I change one method of RestController containing image and VO to elegant code? This is the code inside the method named registCcinfo. I'm currently learning coding, so I have no doubt that there will be some code that I don't know or need to fix at this stage. Thank you for your opinion o...

 
3:32 AM
 
0
Q: C# Console Game 2 players - Any suggestions for improvements to the game?

BobbyGopnikI've made a 2 player game in c# console that is a ping pong game. I've made it in more or less 4 hours and in my opinion it is the best performing game I've made so far. Just to let you know, I am a new programmer and I've started with C# coding, as I believe it's a good beginner language. I've m...

 
 
2 hours later…
5:37 AM
This question would probably be better answered on code reviewKraigolas 28 secs ago
 
 
2 hours later…
7:27 AM
0
Q: Passing variable from class list with vanilla JS

tonyI wrote this code to pass a variable from a class list. So if you have div with a class of modal as well as a class with a prefix of delay- that will be able to set the delay of the modal, directly from the class. So for example: <div class="modal delay-10 hidden"> Will have a delay of 10 second...

 
@Kraigolas thanks for letting me know about Code Review, I signed up! — Corwin of Amber 28 secs ago
Perhaps better asked on the codereview SE site. And please remove the bold formatting — Marged 30 secs ago
 
 
2 hours later…
9:56 AM
@Marged, please don't recommend Code Review for people looking for fixes to known problems with their code. Review is for finished code in need of full review including structure, style and performance. What's needed here is to reduce to a minimal reproducible example of the the problem and keep it on SO. — Toby Speight 34 secs ago
 
10:23 AM
1
Q: C code to convert hexadecimal string to base64

Vedant JadhavI've written a program to convert a hex-encoded string to base64, and here is my code. My main concerns are: Optimizations - Is my code sufficiently optimized and if any more optimization is possible. Memory leaks - Is there any scope for memory leaks. Readability #include <stdio.h> #include <...

 
10:48 AM
0
Q: Scraping online store and writing to database

aldoI'm making a project that will scrape some online store for an item, gets the data and stores it in a remote database that I have, and also able to read the database and display the data on a dashboard that uses Flask. It roughly works now, but I'd appreciate some inputs on how to make the design...

 
 
2 hours later…
12:29 PM
0
Q: Small Bayes Calculator to learn Javascript

Felix B.I am trying to learn UI design so I threw together a Bayes Calculator (i.e. calculate the posterior probability of being sick given a positive/negative test result using the specificity, sensitivity of the test and current incidence rate). Since I already wrote markdown for a static site generato...

 
1:13 PM
Kernel panic on @Duga's machine today, yay!
 
1:42 PM
Welp
 
2:12 PM
Monking
 
2:52 PM
CodeReview might be better suited for this kind of question. — Olivier Jacot-Descombes 12 secs ago
 
0
Q: Resolving teeth numbering from 3 columns

BasFor a project, I'm using 3 columns to define teeth positions in a database. For these positions, I want to generate numbers according to this link. Currently, I'm using a Teeth and Section enum, which has the numbers according to the link. The Section defines which range, and the Teeth defines t...

 
 
1 hour later…
4:18 PM
0
Q: Make date range generator interface stateful or stateless?

user2190492An app has a feature that's much like any calendar application (like the Outlook calendar for example). Consequently, I need to do a lot of date logic. I wrote a class with date calculation methods that are useful in any scenario. You can choose in what resolution of time you want to view the ca...

 
 
1 hour later…
5:34 PM
0
Q: Abstract Factory in C++

FangI have tried my hand at the abstract factory pattern in C++: #include <iostream> class AbstractFactory; class AbstractDoor; class AbstractWindow; class AbstractDoor; class AbstractFactory { public: virtual AbstractWindow* buildWindow() = 0; virtual AbstractDoor* buildDoor() = 0; }; cla...

 
6:24 PM
0
Q: How to optimize of "Find the largest subarray formed by consecutive integers"

diEchorecently solving a data structure question and counter below question Given an integer array, find the largest subarray formed by consecutive integers. The subarray should contain all distinct values. 2 set of examples as below input = [2, 0, 2, 1, 4, 3, 0, 0]; // Output: The largest subarray ...

 
 
2 hours later…
8:04 PM
0
Q: Get Unique Version of (Async) JS Generator/Iterator

Remirror I have a function generatorCreator that returns a generator, here an AsyncGenerator (sync/async should not matter). My purpose is to get a version of this generator that generates each element only once (that is, only "unique" elements are generated). Equality is determined by a given equalityTe...

 
8:30 PM
0
Q: Extract and write fasta files using Biopython based on input from another file

Susheel BusiI have the below code that takes a sequence file and another file with a list of contigs and extracts the sequences and writes them to a file, specifically based on the file with the contig list. The code works great.. However, I'm having to do SeqIO.parse('SAMPLE.fasta', 'fasta') inside the for-...

 
9:03 PM
1
Q: Make the Codeblock detection less aggressive

Felix B.In this question Small Bayes Calculator to learn Javascript I ended up adding a maths appendix with a bunch of LaTeX. This LaTeX was detected as "code" and I was supposed to indent it by 4 spaces otherwise it would not let me post it. Indenting it would have prevented it from rendering the equati...

 
9:18 PM
possible answer invalidation by Peilonrayz, Felix B. on question by Felix B.: codereview.stackexchange.com/posts/273248/revisions
 
@Duga Nah, just a bug. Check the meta post.
 
9:45 PM
0
Q: Using functionnal programming in scala

Imed I am developing a scala function called TennisGameStatus which returns the state of tennis games between two players. To remind, here are the rules of tennis games : - 1st gain: 15 pts - 2nd gain: 30 pts - 3rd gain: 40 pts if both players get 40 scores, then, there are many states : - "DEUCE"...

 
 
2 hours later…
11:44 PM
@TobySpeight As far as I understand codereview.stackexchange.com/help/on-topic CR is accepting questions about the performance of working code. So one can use both, SO or CR. — Marged 18 secs ago
 
@Duga @TobySpeight I think Marged is correct here. Seems like a fine question to me.
IIRC our scale rules (too much memory, too slow) are the only exception with the broken code reason.
 

« first day (3185 days earlier)      last day (822 days later) »