« first day (2983 days earlier)      last day (1034 days later) » 

12:03 AM
REFRESH! There are 7676 unanswered questions (89.3938 answered)
 
 
1 hour later…
1:12 AM
I know you guys accept questions reviewing esoteric languages (, ). I've been considering finding a piece of Jelly code (a golfing language) that could do with an actual review (as opposed to a golf) according to the standards of the language, would that be an acceptable question here?
I'd rather play safe and ask here first :)
 
@cairdcoinheringaahing AFAIK we have 2 rules wrt golfing ① Asking to golf code is 100% off-topic ② Posting golfed code is off-topic. So your question is not off-topic for 1, but potentially could be for 2. I can't imagine 2 would apply too much to Jelly (however I don't know the language).
I'd probably just say yeah your question is fine
 
@Peilonrayz I have 2 follow-ups :P ① I'm surprised that asking for golf help is on-topic for you guys, I would've thought you'd just send them our way. I can't read ② Obviously, by the nature of the language, most Jelly code will be short. However, there is definitely a "style guide" for the language, along with a set of "you should do X over Y" standards that I'd expect an answer on CR to reflect more than "here's how you golf 2 bytes"
② is why I was thinking it might be more possible to do a CR of Jelly over most golfing langs which generally 100% prioritise short over standards
 
@cairdcoinheringaahing Yeah sounds fine. I think with esolangs the line between golf and 'real' code is... pretty darn close. I think the second rule is basically to catch people trying to circumvent the 1st rule.
Kinda like a "I'm not asking to golf, I just posted my golfed program for review and will downvote anyone who doesn't give golfing tips"
 
@Peilonrayz Yeah, that line is why I'm asking as opposed to just posting :) Now I just need to find a Jelly program that would actually produce a high quality review :P
@Peilonrayz Is that a common thing for y'all?
 
1:28 AM
@cairdcoinheringaahing I can't imagine so. I can image the situation happened once or twice and we just went, "yeah, no".
 
@Peilonrayz Well, if it does happen, feel free to send them our way. We haven't had any good challenges for a while :P
 
@cairdcoinheringaahing Cooperation, between CGCC and CR?! Unthinkable ;)
4
Sure I'll probably bring the question up in TNB :)
 
2:03 AM
0
Q: Target OS implementation

TrimskyAfter fighting with the internet, I was able to make an implementation to detect the OS. Please review my changes and share your feedback. I'm not sure if it works the way it should, so I asked this question TargetOS.hpp #ifndef TARGET_OS_HPP #define TARGET_OS_HPP #if defined(__unix__) \ || d...

 
 
5 hours later…
7:17 AM
0
Q: Python best practices to impletent QThread, progressbar (pyqt5) and sniffer (scapy)

user3819641I'm new in python and I want to know the way to improve this code with best practices. I'm using PyQT5 to create new thread In that thread I'm using scapy to sniff traffic and filter ARP traffic to find devices which are broadcasting the network. In the complete code I'm filtering IP traffic too,...

 
 
1 hour later…
8:35 AM
0
Q: how to represent a given number as a sum of distinct powers of 3 (i.e. no duplicates of powers of 3 are allowed)

Sameer Mohd need to optimise the code need to represent the given number as a sum of distinct powers of 3 (i.e. no duplicates of powers of 3 are allowed) the code passes all the test cases in the editor, when submitted to online judge it throwing Time limit exceeded i'm getting TLE while submitting the code...

 
 
3 hours later…
11:27 AM
See also codereview.stackexchange.com/questions/47059/…. It is a critique of the raise NotImplemented("Subclass responsibility") approach which I was about to suggest here. — user7610 24 secs ago
 
12:04 PM
0
Q: Decoupling receiving data and processing data by passing callback and shared_ptr

JohnSorry for my poor English. I want to decouple receiving data and processing data, this is the demo code: #include<memory> #include<iostream> #include<functional> using message_handler=std::function<void(const std::string&)>; class Session: public std::enable_shared_from_this<Session> { class Pa...

 
Monking
 
12:39 PM
monking
 
1:16 PM
Monking
 
1:31 PM
possible answer invalidation by John on question by John: codereview.stackexchange.com/posts/263748/revisions
@lupin Code review requests go here. — Ruud Helderman just now
 
@Duga Darn, got ninja'd by pacmaninbw
 
@Peilonrayz Sometimes old guys can still move quickly.
 
@RuudHelderman Code Review will not accept the question as the question violates the Authorship of Code (AoC) reason. — Peilonrayz 21 secs ago
possible answer invalidation by John on question by John: codereview.stackexchange.com/posts/263748/revisions
 
@Duga bug
@pacmaninbw lol
 
1:48 PM
@Peilonrayz I just got ninja'd by @user673679
 
0
Q: reading a file into an array of chars

lupinI want to read from a file and store its contents in an array of char ? I have wriiten a code that is not efficient? I want to make more efficient? #include <stdio.h> #include <stdlib.h> #include <string.h> #define LSIZ 128 #define RSIZ 10 int main(void) { char line[RSIZ][LSIZ]; ...

 
@pacmaninbw nice even on the question which is off-topic for AoC :D
 
@Peilonrayz Just curious, how do you get AoC?
 
@Duga The suggestion here
 
2:00 PM
@Peilonrayz Aha!
 
@RuudHelderman Agh, the question's already been reposted D: No worries. I'd be appreciative if you were a little more cautious when suggesting Code Review in the future, thank you :) — Peilonrayz 55 secs ago
 
2:16 PM
0
Q: Process Tasks Using Servers

17159A problem from leetcode: https://leetcode.com/problems/process-tasks-using-servers. I had a simple solution for it, that's using min heap to store all servers and dictionary to check whether there're free servers at a time. But it cannot pass all testcases (26/36). Could anyone help to point out ...

 
 
3 hours later…
5:10 PM
It is probably going to be a slow day since this is Independence Day in the USA. Lot of BBQs and fireworks.
 
5:35 PM
@pacmaninbw That's ok, we have plenty of questions left.
How are you doing lately?
 
Hi and Welcome to SO. please take the tour first. Then read how to ask questions here and what should I not ask here?. Your question might fit for Code Review Stack Exchange if you provide your code there for performance review. — tacoshy 22 secs ago
 
5:53 PM
I think this belongs to Code Review. — enzo 30 secs ago
 
 
2 hours later…
7:30 PM
0
Q: Checks if all nested objects don't have 'status' attribute as 'deleted'

Vinicius F.I currently this code working, but its performance is very poor — 1.45 seconds seems a bit too much for a simple recursive if statement that only checks attribute values. def _check_delete_status(self, obj) -> bool: obj_name = obj._sa_class_manager.class_.__name__ self.visited.append(obj...

 
 
2 hours later…
9:47 PM
@Mast I posted on Facebook that I am officially old because I now have my Medicare Card. It means I'm old enough for the US government to pay for my medical bills. I don't feel old.
I do take naps now.
 
10:36 PM
possible answer invalidation by Deduplicator on question by Off_grid_coder: codereview.stackexchange.com/posts/254769/revisions
 
@Duga ```
 
possible answer invalidation by Deduplicator on question by Off_grid_coder: codereview.stackexchange.com/posts/254769/revisions
 
11:06 PM
possible answer invalidation by Vinicius F. on question by Vinicius F.: codereview.stackexchange.com/posts/263758/revisions
 

« first day (2983 days earlier)      last day (1034 days later) »