« first day (2857 days earlier)      last day (1146 days later) » 

12:00 AM
RELOAD! There are 7340 unanswered questions (89.6128% answered)
 
12:35 AM
0
Q: initialize 2d array using 12 tone algorithm with Rust

jlima rust exercise in initalizing a 12x12 array based on the algorithm for twelve tone matrix described here: https://www.instructables.com/Create-a-Twelve-Tone-melody-with-a-Twelve-Tone-Mat/ i copy pasted description from there into a comment but the post has pictures which may help you understand....

 
 
1 hour later…
1:37 AM
@DevMoutarde: The close votes are because asking for a “better, more efficient way” is an opinion-based question. That said, this might be a good question to pose to the Code Review Stack Exchange community. — Jeremy Caney 12 secs ago
 
 
1 hour later…
2:39 AM
0
Q: Asking for feedback, when utilizing Pandas, why is it better to use pandas.Series than lists data type?

Alex RicciardiI found out the hard way, when utilizing pandas is better to use pandas.Series than lists data type to manipulate data. Even if I understood how pandas stores different data types, I did not realize the ramification of using lists of strings instead of pandas.Series of objects. Pandas dtype Like...

 
 
2 hours later…
4:42 AM
0
Q: Inventory class creates an inventory system that holds inventoryItem objects, functioning as a Inventory management system

CrypticEthosInventory.h #pragma once #include <vector> #include <iostream> #include "InventoryItems.h" class Inventory { public: Inventory(); ~Inventory(); void createNewInventoryItem(std::string itemName = "", unsigned int maxQuantity = 0, unsigned int orderThreshold = 0, ...

 
possible answer invalidation by Jamal on question by LauraMay: codereview.stackexchange.com/posts/256515/revisions
 
5:44 AM
I think you might want to post this on Code Review StackExchange instead, it would probably be a better fit for that site. — mediocrevegetable1 33 secs ago
 
 
1 hour later…
7:09 AM
0
Q: setjmp and longjmp implementation in mmix

NoLongerBreathedInI've written an implementation of setjmp and longjmp in MMIX (assuming no name mangling). I also hand-assembled it. Are there any mistakes anyone can spot? // Memory stack pointer is stored in $254. // jmp_buf is rO, next address after setjmp call, memory stack pointer, // then possib...

 
7:59 AM
0
Q: Creating a database, a table within the database and inserting some values into it in one go

SIMI've written a script which creates a new database, a table within the database, insert some values into it and fetch the values in one go. The way I've created the script below to achieve what I just said seems not to be an ideal way as there are too many repetitions in there. Although the scrip...

 
8:23 AM
0
Q: Iterating over a C# range

Vlad RaduUsing GetEnumerator extensions added in C# 9 I was able to do the following: public static class Extensions { public static IEnumerator<int> GetEnumerator(this Range range) { var start = range.Start.Value; var end = range.End.Value; ...

 
9:06 AM
StackOverflow is not a place where you can simply dump questions. You have to explain your thought process, and how you decided to approach your problem. Also, another thing- you need to ask a question! You don't specify a question in your post. Only "can you help me solve this?". If you want insight on if your code is optimized, try checking out codereview.stackexchange.com — Xiddoc 26 secs ago
 
 
1 hour later…
10:10 AM
Nice code. Maybe you want to submit parts to Stack codereview. Tell me here if you do submit. (Just one glaring issue but still not relevant here is why your "type io = Int of int | Obj of obj" instead of char or string. Really don't like those Obj Nulls). Anyway what this code is lacking is tests. This should be really simple to create even without a test library considering it is REPL. Just get it to read a text file line by line. Then you can test this not just with nested increment (+) but all the other binary operations and find the errant line in the debugger. — Martino 13 secs ago
 
 
1 hour later…
11:10 AM
possible answer invalidation by Pierre-Alexandre on question by Pierre-Alexandre: codereview.stackexchange.com/posts/256512/revisions
 
0
Q: Why do online compilers/interpreters use different limits for the maximum recursion depth error?

JustinWhen using two different online Python compilers/interpreters for executing a program (this one, and this one), I found that both sites showed the maximum recursion depth error at \$n = 998\$, whereas the one which I had downloaded from python.org showed the error at \$n = 1024\$. Is there a reas...

 
@Martino I'm planning to do tests but only after I make the statements syntax. I'll see this part of the Stack codereview since i didn't know about it. and the other responses before where enough to correct everything I just commit the changes o the other branch (whice already did't have the io type since it was a hack way that didn't work either way) if you want you can go see. — fourglobe 23 secs ago
possible answer invalidation by Pierre-Alexandre on question by Pierre-Alexandre: codereview.stackexchange.com/posts/256512/revisions
 
11:58 AM
For code improvements, see Code ReviewTomerikoo 58 secs ago
 
12:25 PM
possible answer invalidation by Pierre-Alexandre on question by Pierre-Alexandre: codereview.stackexchange.com/posts/256512/revisions
 
0
Q: Very simple interpreter in C

ArianKGI made very simple interpreter in C and now, I want to make my code better. Here is my code: #define size_t unsigned long long int printf(const char *format, ...); int scanf(const char *format, ...); void *memmove(void *str1, const void *str2, size_t n); size_t strlen(const char *str); int main...

 
1:11 PM
If your code works, and you are looking for feedback on things like performance and code style, then Code Review is where you should go with your question. — trincot 58 secs ago
 
1:30 PM
Mon king
 
1:45 PM
0
Q: Azure - Dynamically polling until certain conditions are met - using Azure Durable Functions

AthaduAnyone interested in reviewing and sharing comments on the following approach? Greatly appreciate it. Thank you Athadu Requirements: Job - Code that executes and performs certain action JobGroup - One or more Jobs grouped to perform some work in a coordinated fashion. Jobs within a JobGroup ar...

 
2:10 PM
0
Q: A JavaScript Program that console logs 'Fizz' for multiples of three, 'Buzz', for multiples of 5, and 'Fizz Buzz' for multiples of 3 & 5

Marc SharpI'm new to coding and have been directed here from Stack Overflow. As I'm new to coding, I'm not entirely sure if my program works completely, but I think it does. I'm looking for suggestions on how to improve my code, particularly the format, as well as the code itself please. Rather than output...

 
2:53 PM
@Duga Rolled those 3 back to rev 2.
 
0
Q: Byte array comparison - efficiency check

W.DonaldI have a TCP Listener with NetworkStream that reads 530 bytes from the Client once a second. Within the TCP Listener BackgroundWorker, I write those bytes into a MemoryStream, and invoke a method that breaks down the MemoryStream into smaller arrays. Then, I have another BackgroundWorker that con...

 
3:24 PM
-1
Q: Python programming:

aynishan#Answer the following question without running the code. The procedure isMyNumber is used to hide a secret number (integer). It takes an integer x as a parameter and compares it to the secret number. It returns: -1 if the parameter x is less than the secret number 0 if the parameter x is correc...

 
4:15 PM
Not sure why you felt compelled to take a stab at my response, but here's another: we're not a code review service. That site is over here: codereview.stackexchange.com. (note that they also have guidelines) — Robert Harvey 41 secs ago
Oops! didn't realize that - link to the same article on codereview: codereview.stackexchange.com/questions/256535/…Athadu 12 secs ago
 
Hi! I asked a question recently which still hasn't gotten any replies: codereview.stackexchange.com/questions/256457/…. I know it has only been two days since I posted it, but if there's a way I could improve it so there would be a better chance of someone responding, I would love to know
 
4:55 PM
@bzrr I would say the "problem" with your question is the apparent size. Unfortunately JS best practice is to have lots of small files, so you have lots of code blocks. Which makes for a long web page. I think your question is fine.
 
0
Q: Python /xed problems?

dank soirstThe code printed below is in Korean because I'm making a Korean text adventure player_race = str(input('인종을 선택하십시오 :\n' + Style.RESET_ALL + '[' + Fore.RED + '인간' + Style.RESET_ALL + '] ' + Fore.RED + '인간은 가장 밸런스 된 인종\n' + Style.RESET_ALL + '[' + Fore.GREEN + '도마뱀' + Style.RESET_ALL + '] ' + Fore....

 
5:27 PM
0
Q: Asynchronously Iterable Queue Implementation for JavaScript

ReduWhile studying Deno which is a kind of Node with everything normalized to modern JS and TS, I quickly met the; import { serve } from "https://deno.land/std@0.87.0/http/server.ts"; const server = serve({ hostname: "0.0.0.0", port: 8080 }); for await (const request of server) { request.respond(...

 
 
1 hour later…
6:41 PM
0
Q: A Tiny Image Tagger Implementation in C#

JimmyHuI am trying to implement a tiny image tagger with customized tag options in C#. The main window is as follows. The left block is a picture box MainPictureBox and there are two buttons, PreviousButton and NextButton. Furthermore, there are some tags in a group box AttributeGroupBox. A save button...

 
7:22 PM
75
Q: How to get the best value out of Code Review - Asking Questions

rolfl I have a project I am working on, and I would like some, or all of it reviewed, how can I ask for this review on Code Review in a way that produces the best possible value? This is not about a question being on-topic, or off topic. Rather, this is about making on-topic questions great questions...

33
A: Checklist for how to write a good Code Review question

Simon ForsbergSimon's Guide for posting a good question There are a lot of questions that appear on Code Review, and all questions are fighting for reviewer attention. This is a non-exhaustive list of items that I am looking for in a Code Review question when determining whether or not I should review it and ...

 
8:03 PM
This question appears to be off-topic because it is a code review request. This might be better suited to the Code Review Stack Exchange site. Before posting there be sure to read their FAQ to ensure that your question meets their guidelines. — John Conde 19 secs ago
 
8:33 PM
So... you're creating a slide effect? if so: then you may want to consider asking this on the code review site (codereview.stackexchange.com), if you're looking for coding feedback and suggestions. — David Makogon 42 secs ago
 
 
1 hour later…
9:59 PM
0
Q: Python (Flask) - User registration system

Pierre-AlexandreI am working on a simple CRUD app as a personal project using Flask. I am currently working on the user service and I just finished the registration process. I am also trying to use as less as libraries as I could, this is why you won't see any ORM or Flask-wtf (for learning purposes). models.py...

 
10:23 PM
0
Q: Using Autofac with static services class

user238388I am using Autofac to maximise the sharing of code between Android and iOS via a shared PCL assembly in a Xamarin (native) environment. The shared service layer consists of four interfaces to classes containing methods or data that don't change throughout the lifetime of the application. Instead ...

 
10:48 PM
0
Q: How to manage concurrency while writing - DBMS on files

porkalocaI'm trying to create a small DBMS with text files, but I've no experience with this stuff. The code below is part of the Writer class of the Table class. Its concern is to gain access to the table and make the requested changes. The hardest part is to gain unique access to the file that contains ...

 
11:10 PM
Are you asking about the error? In that case, extract and provide a minimal reproducible example. If you want improvements on a working program, use codereview.stackexchange.com. — Ulrich Eckhardt 8 secs ago
 

« first day (2857 days earlier)      last day (1146 days later) »