« first day (3339 days earlier)      last day (671 days later) » 

12:03 AM
REFRESH! There are 8100 unanswered questions (89.3106 answered)
 
 
4 hours later…
3:56 AM
0
Q: Beginner looking for Critiques! Formatting an Excel for Tableau using Openpyxl

FroppindroppinI just finished writing a script in openpyxl to automatically format a dataset so it can be placed into Tableau. The script is running and working as intended but I know there are some things that can be cleaned up. The main thing I think is sloppy is not doing a for loop for the adding a string ...

 
 
3 hours later…
6:29 AM
0
Q: MaxCounters Codility Challenge JavaScript (88%)

Jose Angel Martinez ManzanoThank you in advance. I would like to figure out why I'm getting 88% of the score. I would like to know how can I improve my code based on my approach to get 100% on this challenge. function solution(N, A) { let counters = Array(N).fill(0); let max = 0; for (let i = 0; i < A.length; i++) {...

 
 
3 hours later…
9:57 AM
Monking
 
10:20 AM
0
Q: Simple networking framework in C

Andre AdrianQuestion: What do you think about this design and the implementation? This is a simple networking framework for IPv4, IPv6 TCP client and TCP server. It uses a single-thread solution around the system call select(), that is IO-multiplexing. Connect and data read are asynchronous, write is synchro...

 
Monking
 
 
1 hour later…
11:36 AM
0
Q: Domain modelling of data intensive applications (crawler)

Dennis YurkevichI am refactoring various microservices into a single monolith, this application is first and foremost a crawler, but which then will process the crawled data in various ways and will extract features, build numerical representations of the data, and finally make business decisions based on the fe...

 
12:01 PM
Monking
 
 
2 hours later…
2:12 PM
You can use whatever method you find most convenient and understandable. If you write code and want opinions on the style of it, Code Review is the place to ask. — Barmar 15 secs ago
 
2:22 PM
Thanks. I edited the answer as mentioned, but perhaps it would be more appropriate to move this post below the first one to show evolution (since i am not totally satisfied with this one neither and need advices) — curious 4 hours ago
@pacmaninbw I'll let you handle your comment.
 
2:33 PM
@Peilonrayz I still think there aren't enough observations about the original code.
 
@pacmaninbw Could we bother you for a follow-up comment?
On the answer?
 
@Mast @Peilonrayz Better?
 
Thanks.
 
@Mast @Peilonrayz I didn't down vote the answer, I only flagged it, there is someone else`s down vote there.
 
2:42 PM
Ok
 
I didn't down-vote. I had assumed you (pacmaninbw) did, as the DV was there when I handled your flag.
 
Wasn't me either. I'm still considering whether it's worth an upvote yet.
 
I expected the community banner, I'm guessing that the list of comments was there when you observed it, it was just code when I saw it.
@Mast @SᴀᴍOnᴇᴌᴀ apparently some one didn't like my answer.
 
Downvotes happen.
I once got hit by a wave of them, 30 or so. Got invalidated.
Someone didn't like me much, apparently.
 
2:51 PM
Thank you Santa.
Okay, I see why you removed the banner. Am I being too harsh on the answer?
FYI, The final project for my embedded programming class is a group project to specify a DC motor controller. I'm a little distracted this morning. It is due 40 hours from now.
 
0
Q: Simple networking framework in C++

Andre AdrianQuestion: What do you think about this design and the implementation? This is a simple networking framework for IPv4, IPv6 TCP client and TCP server for Linux and MS-Windows in C++14. It uses a single-thread solution around the system call select(), that is IO-multiplexing. Connect and network re...

0
Q: A uniform interface for storing data by fd or container

JohnI need to store the data in three different ways: storing the data to a std::string writing the data to a given file descriptor both of the above And I hope to use a uniform interface for these three different methods. How to make it better? Here is the code snippet: #include <memory> #include

 
@pacmaninbw Best of luck.
 
:) Group projects are all luck. Good thing it is only with 10 points out of 1000.
 
3:16 PM
@pacmaninbw Sounds cool, have fun
 
3:34 PM
If this code works, and you just want to optimize it, then you should ask on CodeReview instead of StackOverflow. — Remy Lebeau 46 secs ago
 
@Peilonrayz Thanks.
Welcome back.
 
3:53 PM
0
Q: How to avoid nested map allocations in below code?

normanI have a below struct where I have a nested map for CustomersIndex which allocates bunch of internal maps causing memory increase. I profiled it so I noticed this. I am trying to see if there is any way to redesign my CustomersIndex data structure which doesn't uses nested map? const ( depart...

 
@CaptainObvious Too theoretical, MRC.
 
4:18 PM
0
Q: Virtual method with variations for different types

prestokeysEach animal type will call reactToOwner() and exhibit its own behaviour. So simply define a reactToOwner() override for each animal type, right? But in this case reactToOwner() has many common parts for each animal type, e.g. lookAtOwner(), goAboutOwnBusiness(). So simply define hook methods be...

 
4:36 PM
Try posting this here instead, for a more receptive audience: codereview.stackexchange.comGabriel Staples 53 secs ago
 
@pacmaninbw Their previous question (2018) was worse. Closed.
I wouldn't worry about their tone.
 
5:06 PM
possible answer invalidation by Logan Alldredge on question by Logan Alldredge: codereview.stackexchange.com/posts/277586/revisions
 
5:47 PM
@Duga Commented but not rolled back, Edit is clearly shown below original code.
@Mast As Alfred E. Neuman always used to say, why worry?
Are you familiar with MAD Magazine?
 
possible answer invalidation by Andre Adrian on question by Andre Adrian: codereview.stackexchange.com/posts/277603/revisions
 
0
Q: Optimal Jelly string compressor in Rust

Radvylf ProgramsI'm writing some small programs to practice Rust, and this one's a string compressor for the golfing language Jelly (unofficial spec). It involves some non-ASCII stuff and bigints (from the num-bigint crate). use std::io; use std::io::Write; use num_bigint::{BigUint, ToBigUint}; use num_traits::c...

 
6:21 PM
@pacmaninbw Yes, although it has been a while since I've heard anyone about it.
I primarily remember it from the Spy vs Spy series.
 
6:49 PM
 
7:21 PM
It seems to me this question is more suited to be asked in the Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh66 44 secs ago
 
7:31 PM
possible answer invalidation by curious on question by curious: codereview.stackexchange.com/posts/277576/revisions
 
@Duga Self-answer has been removed.
 
8:09 PM
0
Q: non recursive quick sort in c++

iHnRI'm relatively new to c++ programming. I have a few years of experience writing simple Arduino programs, but I always kept to the basics. I also have some more experience with Python. I set myself the challenge of writing a non-recursive quick sort algorithm. I'm wondering if anyone has feedback ...

 
8:58 PM
@Mast I loved Spy vs Spy, it was the best part.
 
 
2 hours later…
10:50 PM
If your code works, but you are looking for possible improvements (not only in terms of performance) then you can consider asking it on codereview.stackexchange.comPshemo 21 secs ago
 
11:08 PM
0
Q: Make requestAnimationFrame faster javascript

SanwychI'm creating a gameloop using requestAnimationFrame. But I have a little problem. My webpage has also a sidebar, which can be toggled on/off I made it so when the sidebar is OFF (not shown in the screen) the game works normally. Nothing happens at all But when the sidebar is ON (shown in the scre...

 
there is a separate site for code reviews codereview.stackexchange.comToerktumlare 51 secs ago
 
11:59 PM
0
Q: Small shopping cart application - Solid Principles and Clean Code

Laila CamposI've recently had a technical interview where I had to identify code smells and refactor an existing code by applying the SOLID principles and implementing unit tests. It is a small shopping cart application with a small set of eCommerce/shopping cart rules. Rules include calculation of total pri...

 

« first day (3339 days earlier)      last day (671 days later) »