« first day (3327 days earlier)      last day (988 days later) » 

00:03
REFRESH! There are 8093 unanswered questions (89.3081 answered)
00:21
0
Q: String / Char Vector Concatenation Performance Comparison in Matlab

JimmyHuConsidering the suggestion of using modern string arrays instead of char vectors proposed by Cris Luengo. I am trying to make a code snippet for performance comparison of these two cases. The experimental implementation %% Print system information system('systeminfo'); %% Setup: test parameters ...

01:01
possible answer invalidation by PuttBluggin on question by PuttBluggin: codereview.stackexchange.com/posts/277296/revisions
 
1 hour later…
02:27
0
Q: C# API Data Load method advice- too many parameters per method?

HarbsThis is my first question so please let me know if this is too vague/broad and I will do more research on question asking. I have implemented a handful of data loaders in C#, and have come to the point where I have what I consider in my limited experience a decent structure, but I'm not confident...

03:16
Questions about working code are more appropriate for codereview.stackexchange.com. — jaco0646 32 secs ago
 
2 hours later…
Monking
0
Q: PHP assign values within in_array

Tim MWhat is a more efficient way of writing this sample code? Its purpose is to create a variable for days of the week based on a numerical value. Fiddle here - https://3v4l.org/Sghnh#v7.4.30 <?php $classDays = [1,3,5]; if($classDays[0] == '') { $classDaysD = 'Online'; } else { if (in_array(...

06:09
I’m voting to close this question because it asks about possible optimizations to an already working piece of code. It should be posted to codereview.stackexchange.com instead. — Karl-Johan Sjögren 21 secs ago
06:53
Please read Code Review's How to ask before posting it there. — Mast 28 secs ago
07:37
I vote for re-open. I don't see why it does not fit to SO. Please explain to me and the opener because then we can learn. That it fits better do "CodeReview" doesn't matter. It IMHO also fitts to SO. — buhtz 33 secs ago
 
2 hours later…
10:02
0
Q: pcntl_fork working from CLI but not from apache

Dovid BenderI have a small mission critical web app that needs to respond to all requests rather fast. I need to run some other code that can potentially take a few seconds. I was trying to use pcntl_fork. If I have the simply script <?PHP $pid = pcntl_fork(); if ($pid == -1) { die('could not fork'); } ...

10:27
0
Q: Design Tic Tac Toe Interview Problem [Python 3]

whiteSkarPracticing objected oriented design. This time, it's designing the TicTacToe game. One difference between the real TicTacToe game is that I've made my TicTacToe game to have variable sized board. Please review in terms of OOD and I've also left some comments in my code where I want feedback in pa...

0
Q: When do we need to create the concrete factory method?

RashikI am trying to learn the factory design pattern. I have created a code for creating two animals (for now only dogs and a cats). I have got an Animal (as a product) public abstract class Animal { public abstract void CreateBody(); public abstract void CreateLeg(); } Dog and Cat Implements...

 
2 hours later…
11:58
Anyone here have a rough guess on the level of effort to dockerize the build and runtime pipelines for a Java application?
12:33
0
Q: Type safe generic array in c

Lead VaxeralHere is my type safe dynamic array. I'm eventually going to make a hash table in C. I'm just wondering if anything seems wrong or out of place. Thanks. #ifndef DARRAY_HEADER_INCLUDED #define DARRAY_HEADER_INCLUDED #include <stdlib.h> #include <assert.h> #include <string.h> #define darray_def...

12:58
0
Q: MadLibs program - Java

Sean RileyThis is actually my version of a project I'm giving to my class of High School juniors. I'm not the greatest programmer and also a new teacher so I was hoping someone could check out this code and give me any suggestions or advice they see on it. Please just keep in mind that it's written to be a...

13:23
0
Q: Recursive combinations with subsets in Elixir

Glutexodefmodule Combination do def combine([]) do [] end def combine([head | tail]) do tail_combinations = combine(tail) merged_combinations = Enum.map( [[]] ++ tail_combinations, fn c -> c ++ [head] end ) tail_combinations ++ merged_combinations end end This E...

13:49
0
Q: Simple backup script with file removal after 7 days

Troy WilsonHere is the script that I would like reviewed for the following: Best practices and design pattern usage Correctness in unanticipated cases Possible error checking import os import tarfile import time # Create backup filename timestr = time.strftime("%Y-%m-%d:%H%M%S") output_filename = "minecr...

14:39
0
Q: Scheme Procedure for Permuting Characters in a String

clartaqThe following is a Scheme procedure to permute the characters in an input string. It outputs permutations of all lengths from 1 character up to the number of characters in the input string. The list returned from the procedure permutations is in lexicographic order. Duplicates are not part of th...

15:09
Monking
15:25
@CaptainObvious Requested the OP provide their test cases as well, currently just macro definitions.
@CaptainObvious Authorship, no code.
@CaptainObvious I don't have a clue on this one.
15:42
@pacmaninbw closed
15:57
0
Q: MadLibs Builder- Resubmit cause I did the last one wrong

Sean RileyThis is actually my version of a project I'm giving to my class of High School juniors. I'm not the greatest programmer and also a new teacher so I was hoping someone could check out this code and give me any suggestions or advice they see on it. Please just keep in mind that it's written to be a...

Monking
16:23
0
Q: Serial port class wrapper for serial port object VB.NET

PsliceI've been reviewing some code recently, and I came across this wrapper object for the serial port class. I'm trying to understand the advantage of this seemingly redundant object: Public Class SerialPort_Class Private WithEvents Serial_Port As IO.Ports.SerialPort Private SerialPort_ReOpen_Flag A...

 
1 hour later…
17:30
 
1 hour later…
18:30
I’m voting to close this question because it belongs to codereview.stackexchange.comray 1 min ago
18:40
This may fit better on Code ReviewRobert 17 secs ago
18:54
0
Q: How can I make this code better?

Afolabi Olaoluwa AkinwumiI am parsing a document and returning (1) uniqueness, and (2) total number occurrence. I believe my code can still be subjected to review. I would like a review of my code as I have even made it too tightly coupled, and some Dependency Injection would be a nice to have. links.log file /help_page/...

Thanks for all the replies! @Robert You're right! I didn't know about [Code Review][1] ! Thanks again. [1]: codereview.stackexchange.comEduardo Pistorello just now
Thanks for all replies! You're right @Robert, I didn't know about Code Review. — Eduardo Pistorello just now
I believe that this question should be asked on Code Review. — Olvin Roght just now
19:29
Me: "I don't mind PHP."
The Universe: *here, deal with this Magento2 extension someone half-wrote*
 
1 hour later…
20:35
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 50 secs ago
0
Q: Testing out whether controller response body contains correct data in Rspec Controller specs

SensanatyRunning Rails 7.0.3, Ruby 3.1.2 and rspec-rails 6.0.0rc1 I'm writing out some specs to test for the inclusion of certain data getting sent by my controllers. A random (simple) example from the codebase looks like this: describe 'POST /create' do it 'should create and return newly created user' ...

21:01
0
Q: OOP PHP form builder with validation

PRobertYes, another php form builder... I wrote this solely to demonstrate OOP principles. My questions are: Could this be written better? OOP-wise. How could i better implement error handling? Index.php <?php require __DIR__ . '/vendor/autoload.php'; use FormBuilder\FormGenerator as Form; use FormBuil...

21:16
@DerKommissar but of course!
It is a mess
I have sent 6 submissions to the Adobe Marketplace today to try to get the updates out
I’m voting to close this question because it better fits codereview.stackexchange. It could have an infinite number of valid refactoring answers so I don't think it fits SO. — julealgon 15 secs ago
0
Q: c# oop polymorhism

user259690I had a class which creates pdf for various things such as exam, course and subject. In my pdfmanager class the code was repating itself like : CreateExamPdfForStudent(somedto){ //do common something //exam and student code //do common things.. } CreateCoursePdfForStudent(somedto){ //do comm...

22:06
Head over to Code Review SE. Stack Overflow is for general programming questions, so this question would be better suited there — cocomac 23 secs ago
 
2 hours later…
23:55
StackOverflow is a Q&A site for solving programming problems. If your code actually works, and you just want to clean it up, ask on Code Review instead. — Remy Lebeau 26 secs ago

« first day (3327 days earlier)      last day (988 days later) »