« first day (2483 days earlier)      last day (1526 days later) » 

12:00 AM
RELOAD! There are 6382 unanswered questions (90.1362% answered)
 
12:45 AM
possible answer invalidation by Doi9t on question by Nenad Mitkovic: codereview.stackexchange.com/posts/237593/revisions
 
 
3 hours later…
3:49 AM
0
Q: Simple Python turn based battle game - just looking for improvement tips

CelestialMarkAs I mentioned in my bio, I do not code for a living and too old to switch careers but I do enjoy it as a hobby and I am trying to get better. Also trying to get my teenage son more interested. Anyhow, the code below does want I want it to but I am looking for tips to improve it. Any advice would...

 
 
1 hour later…
4:56 AM
Consider asking at CodeReview.SEjtbandes 22 secs ago
 
5:11 AM
0
Q: recursively removing nodes

addisenedit: solved the problem, cant find how to delete post def insert solved solved solved

0
Q: Serializable and extensible API implementing the Command Design Pattern

Tommy-Xavier RobillardI am currently trying to implement an extensible way to create commands that can be sent to some type of executor. In my case, there would be two of them (server and client). As I posted here, I had a hard time developping my idea, but it finally came through something usable, but a bit complex i...

 
5:31 AM
0
Q: Azure's service bus queue handler

Shahar ShokraniI'm using azure's service bus in order to make orders using a IOrderLogicService interface. The Logger.InsertLog is irrelevant for this thread. private readonly IOrderLogicService _orderLogicService; private readonly AppSettingsConfig _config; private IQueueClient _queueClient; public ServiceB...

 
6:12 AM
0
Q: Stop busy javascript program in timed manner

Karthik NedunchezhiyanI am trying to write a nodejs express server. In that, I need to set time for execution. let say I made a request to /endpoint1 in express from the postman and that endpoint will trigger a function that contains an infinite for loop. My doubt is it possible to set the time limit for a single requ...

 
6:45 AM
@CaptainObvious Hammertime!
@Duga Fine
Monking
 
7:32 AM
0
Q: Dynamic SQL query for count data

AdrianI'm working on an application that counts the number of employees in each department. Here's my code: SELECT count(case when (JS_TITLE = 'Accounting')then 1 end)as Accounting, count(case when (JS_TITLE = 'Management')then 1 end)as Management, count(case when(JS_TITLE = 'Marketing')...

 
 
2 hours later…
9:11 AM
Code improvement is better on-topic at Code Review. That being said, intermediate collections and named foreach loops are often easier to read than long pipelines. — vonPryz 13 secs ago
 
0
Q: Tic Tac Toe - Javascript The Odin Project

Ylli AbaziI have been working on tic tac toe project as part of "The Odin Project" curriculum for the past three days. This was quite a challenge for me as I have attempted to do this project three times. If anybody could review my code and point out things that I should or could improve please do so as...

 
9:33 AM
0
Q: React - synchronously get an updated value that is otherwise stored in state

amikMy component uses some complex validation function that should not be triggered on every keystroke. I've simplified my actual code to the example below - a number input that validates prime numbers. The part I'm not sure about is the validation: I hold the validation result in a state field, but...

 
This question should be asked on codereview.stackexchange.com instead. StackOverflow is for specific problems and not for general code review. — Amongalen 26 secs ago
 
 
1 hour later…
10:41 AM
Please read my first comment, I know it's that line.This isn't a code review site, it is for specific Q&As, "is my code correct" is too broad - that will be determined by your professor when you submit your homework! — Wolfie 10 secs ago
 
10:54 AM
0
Q: Am I using powershell best practices and syntax on this code?

Dennes TorresThe following script reads a set of SIDs inside firewall rules and uses them to set ACL rules in a folder. The question is: Is this syntax ok or is there better ways to write this script, considering powershell syntax features? (by the way, this code works) param([Parameter(Mandatory)]$folderna...

0
Q: A simple Java login system

TomZI created a simple log-in system in Java for a project. Security isn't a concern here, hence the plaintext password, but I'm interested in how I can improve the quality of my code. Everything seems to work but it just feels like messy code. public boolean logIn(String name, String password) { ...

 
11:14 AM
0
Q: Refactor a Python code to make it library-agnostic

RMPRI'm working on this, specifically on the play/stop feature. Now, it looks like: def on_press(self, key): if not self.recording: return False b = time.perf_counter() self.capture.append(f"time.sleep ({b - self.last_time})") self.last_time = b ...

0
Q: detecting isolated voxel-blob in 3D cube with breadth first search

SumakuTensionI just recently got into c# and Unity coding, and would like to put this algorithm and code up for review to check how I'm doing. I've only been working by myself, so it would be interesting to hear how my code design and style could be improved. The task is like so: There's a 3D cubical grid (s...

 
 
1 hour later…
12:15 PM
possible answer invalidation by user12904402 on question by user12904402: codereview.stackexchange.com/posts/237337/revisions
 
So to sum it up: 1. You lied in your CV that you know SQL 2. The employee gave a test about SQL 3. You failed the test because you didn't know SQL 4. You're thinking of asking if you can go learn SQL and retake the test. Yeeaah, that's not how it works. — ruohola 1 min ago
@Duga Fine.
 
12:35 PM
0
Q: Evaluating arithmetic expressions and ploting graphs

ArekI just got started with python. I created some code, and I want to know what more experienced devs think about it. What can I do better? What to avoid? #!/usr/bin/env python # -*- coding: utf-8 -*- """ Graphs - Calculate expression or draws a graph from given equation. This is a conversion of m...

 
12:49 PM
This would probably be better fit for: codereview.stackexchange.comOH GOD SPIDERS 33 secs ago
 
1:08 PM
@Mast welp ...
 
1:24 PM
Hi Anaka Siriwardena, Welcome to StackOverflow. This question belongs on another site in the Stack Exchange network like Artificial Intelligence SE or Code Review SE. — Dorian Turba 56 secs ago
@DorianTurba If you don't know on which site it should go, please refrain from making recommendations. For starters, I'm not sure a 60% accuracy is considered good enough here to be 'working code', so I'd be hesitant to recommend Code Review here (which has working code as a requirement). — Mast 42 secs ago
 
1
Q: Editable Data Table for Assigning Helpers to Drivers

bentshI am just learning Vuejs and I am implementing it in a 'legacy' environment where jQuery, Bootstrap 3, among other libraries are loaded by default. In my implementation I try to keep it simple with certain functionality built in. My codepen is stripped of a few things such as some fetch calls and...

0
Q: Optimising String split into chunks of fixed size

TopiaryI am looking to optimise my solution of the 'SMS problem', i.e splitting a String into chunks of the same size without splitting words. I did a recursion and am looking for ways to optimise that code, or a more efficient algorithm. In my solution spaces are left at the beginning of each chunk, t...

0
Q: Class template, custom container

KhanoaSo I wrote this class template for a custom container. Basically, it stores elements and their occurences. When an element is pushed into the container, if it already exists, all it does is increment its counter. #pragma once #include <map> #include <string> // // Template class for a tocc, or...

0
Q: How can I to refactor this code and decouple method?

Pavel PetrashovI have set of entities(templates) I need to clone full this set and create same set with new Ids. I have 3 methods like this(Entity One is User): private Map<String, String> createUsers() { Map<String, String> userIds = new HashMap<>(); Iterator<User> users = userServ...

 
2:29 PM
Post this over in CodeReview with the PowerShell tag and then respond in the comments here with the link and we'll get you situated. — FoxDeploy 39 secs ago
 
3:00 PM
This should either be moved to code review, or db exchange. It's too broad for this area of Stack. — Funk Forty Niner 11 secs ago
 
3:58 PM
The inner two loops are very similar to the code piece I address in the last section of this answer on Code Review. You should be able to follow that recipe to turn those two loops into a single statement. — Cris Luengo 30 secs ago
 
Ryan Donovan on February 20, 2020
It’s now been more than 50 years since the first IFIP Conference on Software Engineering, and in that time there have been many different software engineering methodologies, processes, and models proposed to help software developers achieve that predictable and cost-effective process. But 50 years later, we still seem to see the same kinds of problems we always have: late delivery, unsatisfactory results, and complete project failures.
 
4:17 PM
0
Q: application to get git commit and write data into csv file

jacobcan118I am writing a small application to get commit command between two tag from different env (apple, banana) and write the result into csv file for security, I have to replace some sensitive information with alfa, beta and application banana key words. but the application running fine from my local....

0
Q: JQuery Class and Display Toggling

FamousAv8erI know there is a better way to do the following but I havent had any luck trying to clean it up. This is for a table of messages where the user can click a row, message-head, which will display the message-body-hidden to the user as well as change the class of message-head to message-head-acti...

 
5:05 PM
possible answer invalidation by Graipher on question by Arek: codereview.stackexchange.com/posts/237632/revisions
 
5:19 PM
-1
Q: LeetCode: Most Frequent Subtree Sum

user_185051My solution to LeetCode problem Most Frequent Subtree Sum works, but I have several questions regarding the code. I am also looking for an advice on how to improve the code. Problem: Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node ...

 
Monking
 
5:46 PM
Working codes are better suited for: codereview.stackexchange.comHarshal Parekh 50 secs ago
 
6:20 PM
-1
Q: Best practice when checking multiple addresses for a Worksheet_Change() event?

dwironyI'm doing some code revision and I'm looking at this portion of my Worksheet_Change() event: If Target.Address = "$A$4" Or _ Target.Address = "$A$7" Or _ Target.Address = "$A$10" Or _ Target.Address = "$B$21" Or _ Target.Address = "$B$22" Or _ Target.Address = ...

 
@Feeds And electrical engineering, and I'd bet many other forms of engineering.
Scoop creep, requirements which are unclear, unresponsive customers, you name it.
 
7:04 PM
Check out the CodeReview SE for when you'd like feedback of code that doesn't have specific problems — that other guy 40 secs ago
@that other guy Moved to CodeReview. Thank you sir! — TheWonkyTwit 28 secs ago
 
7:21 PM
0
Q: Test to see if installed and it not, install it

TheWonkyTwitOkay all you linux/shell folks out there. This is my first shell script (2nd if you count "Hello World") and would appreciate some feedback. Basically, i need to test if htop is installed, if it is, then move on, if it is not install it. If the user is root then just do it, and if not, sudo and i...

 
7:41 PM
0
Q: Any ways to optimise my first python script? Script checks an image for characters using pytesseract; and then prints it to the console

DevThis is my first ever python program. It checks every frame of a video file, Tesseract then uses OCR to recognise numbers in that frame and prints it to the console. import pytesseract import os import cv2 import openpyxl from numpy import interp import numpy as np # Video URL TEST_VID = cv2.Vi...

 
I'm voting to close this question as off-topic because it should be on code review — con 49 secs ago
 
8:00 PM
> I created a simple log-in system in Java for a project. Security isn't a concern here
Think about that for a moment.
 
-1
Q: Code execution against a server returns Error: socket timeout, no reply received

anonymous9we04242I know a bit of C but nothing about sockets and ports and tcp or udp connections against a server. I'm running a script in C against a server and script is returning Error: socket timeout, no reply received. The piece of code where is entering and exiting with that print ouput is this one: #def...

0
Q: Display content if form field is filled - Do not display if field is empty

BagseyeI am using the following code within the footer of my test site. I am using WordPress and Advanced Custom Fields The intention is: To display the HTML container .social-media--icons if any of the fields contain content within the CMS. Then, within the container .social-media--icons, display t...

 
@CaptainObvious No
How did this attract CV...
 
8:21 PM
-1
Q: Extension method: Task<T>.CoalesceAwait

Kyle DelaneyThere has been ongoing concern about the question of awaiting a task that could possibly be null, as when using null-coalescing operators. Consider the following: var result = await Instance?.DoSomethingAsync(); That will throw a run-time exception when Instance is null, as seen in questions l...

 
8:52 PM
If the code works, you should ask on Code Reviewroganjosh 8 secs ago
 
0
Q: Task scheduling

pikauspA simple design for task scheduling using the following classes/interfaces. /// <summary> /// Represents an executable action. /// </summary> public interface IExecutableTask { Task ExecuteAsync(); } /// <summary> /// A task which can be planned for execution. /// </summary> public ...

0
Q: Integrating caliban, ZIO and Akka

TobiPI created a small sample project using caliban, akka-persistence and ZIO. I'm not really happy with the wiring code: implicit val defaultRuntime: DefaultRuntime = new DefaultRuntime {} val counter = context.spawn(Counter("counter"), "counter") val service: CounterService = defaultRu...

0
Q: Data entry of Information

Zack E Couple of items to make note of first: I inherited this code I am still working through naming cells that I feel need to be named. This code below was re-factored once with help from @TinMan on This Post All of the code below works and I dont have any real performance issues w...

 
9:22 PM
1
Q: Is there anything to complain about in this PowerShell script?

schuelermineI have the following code in project that installs sl on Windows using PowerShell. Is there anything you'd improve about this? param([String]$Profile, [Switch]$Help, [Switch]$Force) $ErrorMessages = @() $Payload = " # <Code inserted by Install-Steam-Locomotive> function Steam-Locomotive {wsl s...

 
@CaptainObvious There is always something to complain about <x>.
 
9:39 PM
Code review questions should go to there — vonbrand 20 secs ago
 
 
1 hour later…
10:50 PM
possible answer invalidation by mickmackusa on question by Bagseye: codereview.stackexchange.com/posts/237657/revisions
 

« first day (2483 days earlier)      last day (1526 days later) »