« first day (3568 days earlier)      last day (442 days later) » 

12:08 AM
REFRESH! There are 7397 unanswered questions (90.3365 answered)
 
12:39 AM
for review of working code, code review might be a better place for you. — async await 57 secs ago
 
1
Q: Improving the readability, extensability, and optimization of a custom ETL Pipeline library (Pypeline.py)

GuyI'm looking to improve the logic used in this ETL pipeline manager. The concept creates a structure: Pipeline(Pipe(Task, [Task, ...]), [Pipe(...), ...]) ...where a Pipeline contains one or more Pipes and a Pipe contains one or more Tasks. Another important concept is the Operators, namely the Han...

 
12:54 AM
possible answer invalidation by Reinderien on question by Rozy0930: codereview.stackexchange.com/posts/283132/revisions
possible answer invalidation by Reinderien on question by Rozy0930: codereview.stackexchange.com/posts/283132/revisions
 
@Duga Hmm... the first revision had all lines indented except the comment lines, so they were interpreted as markdown headings
I'd presume the OP (would have) intended to do one giant code block given the text at the top "Here is my full code:"
at this point its probably best to leave it
 
 
3 hours later…
3:48 AM
'^_^ that's right. I can't remember the last time I saw for..in or Object.defineProperty in code review. — Mulan just now
 
 
1 hour later…
5:00 AM
0
Q: An extended simple, funny, easy linked stack of lists in Java

coderoddeThis post is the continuation of A simple, funny, easy linked stack of lists in Java. What's new: Now I have varargs for pushing/linking multiple values per call. Provided the unit tests. com.github.coderodde.util.Multistack.java: package com.github.coderodde.util; import java.util.ArrayList; ...

 
5:20 AM
Monking
 
 
1 hour later…
6:30 AM
Answering "is this normal?" is beyond the scope of a comment. In general: if it works, it's good. You can (and should) refactor and improve your working code until you are satisfied. When in doubt, feel free to ask another question on SO, code review SE or SE SE. — Friedrich 55 secs ago
 
 
1 hour later…
7:57 AM
0
Q: Add TLS to a TCP-based client/server application

groverboyI'm primarily looking for perspectives about correctly using .NET to implement TLS over TCP. We develop a Java application that serves requests over TCP. We also develop client libraries for the application, where each library supports a different language/platform (Java, .NET, etc.). Recently we...

0
Q: Merge multiple map with java stream api

Juneyoung OhI am trying to merge multiple map with Java stream API. The reqiurements like ... support 2 merge method: intersection, union if key duplicates, it overwrites with later value Here is basic code I wrote, public class MapMergeHelper { public static Map<String, String> merge (MapMergeOperatio...

 
 
2 hours later…
9:27 AM
Please read How to Answer and stick to what was asked - this is not a discussion forum. If you like helping people with their code in this way, consider using Code Review instead. — Karl Knechtel 37 secs ago
The DE already has quite a few queries about gold. — Kelly Bundy 35 secs ago
This would probably correspond to the code review area instead. — Ignacio Gaviglio 49 secs ago
 
9:56 AM
How do I post in the code review area? @IgnacioGaviglio — E_1996 46 secs ago
 
10:15 AM
@IgnacioGaviglio The code review site requires working code. A guide to Code Review for Stack Overflow usersTed Lyngmo 24 secs ago
 
10:29 AM
0
Q: How can I make this Rcpp code faster?

E_1996I am new to Rcpp and am looking to make the following code as fast as possible. Any tips would be greatly appreciated. It is running a lot slower than I would like. I have tried vectorising as much as possible but i'm not sure how to vectorise further // [[Rcpp::export]] arma::mat fn_update_log_...

 
10:56 AM
This question may belong to Code Review. — Dorian Turba 44 secs ago
 
11:20 AM
0
Q: Blazor WASM: wrapping @Body in <AuthorizeView>

Roland DeschainI have a blazor webassembly project, which is protected using Azure AD. I don't like the idea of immediately forwarding a user to a login page without context, so I usually use <AuthorizeView> to display different content based on whether a user is authenticated or not. Now in order to make the c...

 
11:45 AM
0
Q: DB2 SQL statement to split a string based on delimiter

Theju112I have a "flat file" with structure as below: machineCode,Key,Ip_Name_No,Share_Percent,Account_Name,Account_No "ygh048GT",4767,534293748,"100.00","cderfgdsc Publishing International Ltd","160102040" "xcd064HW",6380,65424090,"100.00","dascdfrgh snm skion","00090382478" ...

 
12:43 PM
For code review, you could post on Code Review. — Sandra Rossi 30 secs ago
NB: For code review, you could post on Code Review. — Sandra Rossi 57 secs ago
 
1:14 PM
Before you post at Code Review, be sure to read A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. question titles should simply say what the code is for, as the question is always, "How can I improve this?". Be sure that the code works correctly; include your unit tests if possible. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. — Toby Speight 49 secs ago
@SandraRossi, the question needs work before it's suited to Code Review. You could have pointed the asker at A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. we need a good description of the purpose of the code to give context, and question titles should simply say what the code is for (the question is always, "How can I improve this?"). It's important that the code works correctly; include the unit tests if possible. — Toby Speight 8 secs ago
 
 
1 hour later…
2:32 PM
This would be more suitable over at codereview.stackexchange.comKarl-Johan Sjögren 1 min ago
Please review How to Ask. Questions about critique of existing working code may go on Code Review, and software engineering questions may go on Software Engineering. However this question is likely too broad / opinionated for either of them. — blackgreen ♦ 46 secs ago
 
0
Q: VBA Excel - autosum values from all workbooks in the directory

MKRI have the code such as this for opposite conditions. For Each iCell In Range("A2:A6").Cells If iCell.EntireRow.Range("H1").Value = "" Then BOM = InputBox("The current BoM Code is...", "BoM Calculator v1.1", (iCell.Value)) scrUpdt = Application.ScreenUpdating Applicati...

 
2:56 PM
Monking
 
3:13 PM
Ryan Donovan on February 09, 2023
This affects the individual developer writing insecure code, the engineering team blindly trusting their dependencies, and the organization thinking that their best bet is to roll their own security controls.
 
3:56 PM
@blackgreen This wouldn't be a good fit on Code Review. Please take a look at A guide to Code Review for Stack Overflow users. — Mast 48 secs ago
 
4:38 PM
The way to have shorter code is to use a library. There are some slight cleanups possible here, but we don't take questions about coding style or elegance here. Please try Code Review, after first reading their own posting guidelines. — Karl Knechtel 57 secs ago
Well, thank you @KarlKnechtel. I'm gonna close this and try Code Review now. — Navy Flame 27 secs ago
 
1
Q: Singly linked list optimized for search & insert in O(1)

user21078706I have tried to implement my singly linked list to be optimal in the sense that when inserting I don't have to search for the tail and then chain the new node to it, I just keep track of the tail and then insert, resulting in O(1). This is my insert: #include <stdio.h> #include <stdlib.h> typed...

0
Q: Aggregate a list in Python without using any libraries

Navy FlameCan I get the below output without using any libraries? (in a shorter way) Input: items = [ {'product': 'A', 'customer': 'A', 'count': 10}, {'product': 'A', 'customer': 'B', 'count': 15}, {'product': 'A', 'customer': 'C', 'count': 100}, {'product': 'A', 'customer': 'A', 'count': 50}, ] O...

 
Note that if you have working code, and you want help in optimizing it, Stackoverflow is not the right place to ask, you want codereview.stackexchange instead. — Mike 'Pomax' Kamermans just now
 
5:08 PM
@Mike'Pomax'Kamermans It isn't clear that the code is working, it might also be better to have them read A guide to Code Review for Stack Overflow users and How do I ask a good question? before posting. — pacmaninbw 35 secs ago
 
5:36 PM
Monking
 
6:30 PM
0
Q: Do intermediate variables good for readability or do they clutter the code?

Marcin K.Let's compare these 2 short Java code snippets. Which version do you prefer? The 2nd is more concise for sure. However the second option gives a reader an extra information about what is the content of the data returned by the query function and the type of the intermediate list. I often find mys...

 
7:20 PM
0
Q: Avoiding Deadlocks using Locks

Neranmy question is about synchronisation and preventing deadlocks when using threads. I made up a simple class for demonstration purposes. public class Data { private long value; private Lock lock = new ReentrantLock(); public Data(long value) { this.value = value; } pub...

0
Q: Rust - implementation of multiple type of graphs with shared code

qoqoszI am trying to improve my Rust coding skills. One thing which I find hard to tackle is how to shift from a polymorphism you can observe in e.g. Python to sth. similar in Rust? Let me give you a specific example. I would like to implement a very simple Graph (undirected graph) and DiGraph (directe...

 
7:46 PM
1
Q: Gizmo Movement Script in Raylib with Mouse Interactions to move an entity in 3-D space

LixtI have a working gizmo movement script made in Raylib that allows me to move an entity (i.e. entity_in_inspector) in a 3D space using 6 arrows. Each arrow is rotated at a 90º degree angle from each other, and when I hover my mouse over an arrow, it turns green and I can change the entity's positi...

0
Q: Is it better to useRef or useState to manage a polling operation?

Archimedes TrajanoGiven the following signature: /** * @param predicate an async function that if false will skip the callback, but will still poll. * @param asyncFunction the async function to call. (there's a high likelihood this will change the state) * @param options extra options for polling */ export fun...

 
8:11 PM
0
Q: Code scraping oddsportal using beautifulsoup

RanderThis code scrapes the website www.oddsportal.com for betting odds and historical games. code: import os import threading from math import nan from multiprocessing.pool import ThreadPool import pandas as pd from bs4 import BeautifulSoup as bs from selenium import webdriver from selenium.webdriver....

 
possible answer invalidation by schuelermine on question by schuelermine: codereview.stackexchange.com/posts/283146/revisions
possible answer invalidation by schuelermine on question by schuelermine: codereview.stackexchange.com/posts/283146/revisions
 
8:40 PM
Regarding: "We have some feature branches with a long lifetime (months even) with multiple devs working on them." Is that an exception to the rule, and how many devs are typically sharing the branch? Are the merges into the shared feature branch in the context of a PR with a code review, or do they all just merge locally and push? — TTT 55 secs ago
 
9:40 PM
@Duga Rolled back and commented, definitely changed code that was reviewed.
 
 
1 hour later…
10:43 PM
0
Q: Make the output line up

dcazI have a script that tells me about SPF, DMARC and DKIM. If you want to see it fully it is https://github.com/dcazman/MRNAP/blob/main/Unrelated/IsDomainActive.ps1 The part that bothers me and I want to do better is the MX line I want the name, Perf and TTL to line up with the values nicely. Here...

 

« first day (3568 days earlier)      last day (442 days later) »