« first day (2943 days earlier)      last day (1372 days later) » 

00:02
RELOAD! There are 7589 unanswered questions (89.4374% answered)
Welcome to SO! Please take the tour. As @itprorh66 said, this is not a good fit for this site. Please ask on Code Review instead, but first read their How to Ask page. — wjandrea 22 secs ago
 
1 hour later…
01:04
I'm sorry to hear that. If you undelete your question on code review I'll answer it and rewrite your code. — Boris 10 secs ago
1
Q: Python: Tic Tac Toe Game

KeyesCodeI am here to ask for some more experienced programmers to critique my first project. I wanted to see where I lack and what I can improve on. Thank you for taking time out of your day to help me better my skills as a programmer! I hope I did a good job for being a beginner but I know there is much...

@Boris This question will be off-topic on Code Review as it is not working as intended. — Summer 8 secs ago
Stop stalking me @Duga
 
2 hours later…
03:42
Monking
0
Q: How to terminate the whole program when one of two methods running in parallel returns a result?

Allen WhoHere is a simple example. I am trying to find a maximum element in an incremented array which only contains positive integers. I want to let two algorithms run find_max_1 and find_max_2 in parallel, then the whole program terminates when one algorithm returns a result. Notice that the example sta...

04:35
@Zer0 Indeed, using a Dictionary<string, Pagebase> will be a standard improvement on the first code review instead of Where. — Olivier Rogier 31 secs ago
05:03
0
Q: Best pattern for catching errors in javascript loop

user46581This loop executes a function this.DoSomething based on multiple conditions: for (let i=0; i<this.noProfiles; i++) { // Check for error in function below try { var page = await this.Function(url) } catch (err) { // new iteration in case of error // do not execu...

 
2 hours later…
07:10
0
Q: I made a simple program that roll the dice multiple times and also count the results. Please help me simplified my code and sorted dict is not working

Oak Soe Sanfrom random import randint from collections import OrderedDict class Dice(): def __init__(self): self.sides = 6 def roll_dice(self): print(randint(1,self.sides)) class Roller(Dice): def __init__(self,name,age): super().__init__() self.name = name self.age = str(age) def des...

07:47
Monking
possible answer invalidation by Aloysius Rebeiro on question by Aloysius Rebeiro: codereview.stackexchange.com/posts/261044/revisions
@Duga Vandalism
0
Q: Dice rolling program which also counts and stores the result

Oak Soe SanIs there any rooms for improvement in terms of simplicity and efficiency. from random import randint class Dice(): def __init__(self): """Making a dice instance with 6 sides.""" self.sides = 6 class Roller(Dice): def __init__(self,name,age): """Making a Dice Roller Instance""" su...

Monking
08:27
0
Q: Python code to find greatest common divisor of multiple numbers

Xeнεi ΞэnвϵςHmm, I know this has been implemented countless times, and Python 3.9.5 math standard library has a built-in gcd() method that does exactly this, but this is how I do this, I think completing simple programming challenges using new ways will let gain experience that will help me find ingenious wa...

 
1 hour later…
09:44
Isn't this better suited for codereview.stackexchange.com? Unless there's something wrong with the current approach? — evolutionxbox 56 secs ago
Hi, looks like this is perfect case for codereview.stackexchange.com. I think you might find more help there. — ulou 9 secs ago
10:09
0
Q: How to design React component properly

GoldfishHi I was just asked by stackoverflow to move this question into this forum (https://stackoverflow.com/questions/67685433/how-to-design-the-react-component-properly). Hi I am pretty new to react and I want to achieve something that turns out to be real pain for me and I am not sure what the best s...

10:34
0
Q: Pi Calculator Using BBP (Bailey–Borwein–Plouffe) - Written in Cython With MPFR

Alexis EvelynI wrote a Pi Calculator using the BBP Algorithm in Cython. My specific goals are make the code more legible and more performant. This is a purely academic script in order to teach me how to implement complex algorithms with arbitrary precision (so no monetary gain, it's not homework, but is a per...

11:25
0
Q: Finding inorder successor of a BST in C

Abrar Ajaz WaniPlease review this code I have written a function to find the successor of BST in c. It takes three arguments, i.e root pointer to the binary search tree, node value of which we have to find a successor and parent pointer (for first call it is also root pointer. It will return an integer that is ...

12:16
I would suggest that you try codereview.stackexchange.com Which is a stack-exchange site like StackOverflow, but dedicated to code reviews. — Jay 19 secs ago
12:34
@Boris Code review does not explain what code does, it indicates that the OP didn't write the code. — pacmaninbw 43 secs ago
13:20
Thank you for your comment. However, I'm not sure to have understood what do you mean by you should ensure that one can understand your code or one would need to know what exactly is calculated there. I have put the whole code for both functions. You mean that I should put some numbers to show what are these functions return? Thank you for codereview.stackexchange.com suggestion. I did not know it existed. I will post my question there if you think that it is more appropriate. — CafféSospeso 23 secs ago
13:58
0
Q: How can I speed up a C++ code with several loops

CafféSospesoI have recently started to work with C++ and I do consider myself quite basic in C++ coding. I have made the following two functions and I was wondering whether someone could give me some hints on how to improve and speed up this code. Please, note that the second function is then used in R throu...

14:24
1
Q: Fixed Point Type

tommschI am implementing a fixed point type, which mostly is used to be able store numbers as multiples of some base (power of 2). Apart from that, the type should be able to replace double/float values without the need of modifying some code. In its current implementation only basic arithmetic operatio...

14:49
0
Q: log setup using RotatingFileHandler and basicConfig

CheppyI am new to python, and developing a moderate application for which, I need to setup a logging mechanism. Below program sets up log handling which gives user an option to specify whether logrotaion is required or not. Rest all is my application , the code is mostly written in terms of functions (...

0
Q: My Radix sort isn't working in C

NoobCoderI am trying to debug it for hours and still can't understand what is the problem here. By GDB I can see that the problem is in CountingSortIMP , and specifically inside SortKeys and also maybe WipeHistogramIMP. By GDB I can see that: SortKeysIMP does not sort the keys as needed to the dest_pair a...

0
Q: Modal dialog box window replaces the original URl in testcafe

learningtakestimeam unable to figured the issue which am facing--i opened a modal-dialog box(it should be pop up window-- which has some info form filled and save it). which i had already solved it -- but here action URL is confusing the testcafe. When i run it, the modal dialog opened and replaced(in 2s) as mai...

Seems like you're asking for a Code Review. — El_Vanja 34 secs ago
15:23
Ryan Donovan on May 25, 2021
The 2021 Developer Survey is ready for your input.
15:44
Monking
15:54
This kind of question is what Code Review is for. — Scott Hunter just now
16:06
0
Q: Android APP Password Strength Assessment class implementation

JimmyHuThis is a follow-up question for Android APP User class implementation. I am attempting to create a password strength assessment class which is named PasswordStrengthAssessment in Java. Instead of adding "111111", "123123" or the other weak passwords one by one in program, the 10k-most-common.txt...

this would never pass any sane code review — juanpa.arrivillaga 57 secs ago
@Feeds Too bad it is so focused on SO and not the other communities.
3
Q: Bug in survey question

user133469 It is not possible to say that I use Stack Exchange but that I have never visited Stack Overflow. If I click one, it unclicks the other.

@SᴀᴍOnᴇᴌᴀ Left a comment on @Catija answer.
16:32
0
Q: Is it a bad idea to put each class method in its own file?

TimWe have an existing project that has grown very messy and confusing; our classes are huge and difficult to read. Our boss wants us to break all of our methods out of the classes and into separate files (for maintainability), so that it would be something like this. class Foo { public functio...

Kaz
Kaz
17:01
@skiwi A browser that runs in the cloud, so you never have to worry about running out of memory for your tabs: m.youtube.com/watch?v=cxUN1dZ0Edk
@CaptainObvious would that be an okay question on SE.SE?
I see there is a file-structure tag there with similar questions
@SᴀᴍOnᴇᴌᴀ I think so.
@pacmaninbw nice. I left a comment on the post
17:19
If this code works but only needs review and improvements, I suggest to post it on CodeReview, not Stackoverflow — Jeremy Thille 5 secs ago
0
Q: Simple Brainfuck Interpreter Implementation in C

ijustlovemathI wanted to implement a short and functional brainfuck interpreter with minimal code repetition. It uses a little bit of macro magic, and does nested loops iteratively rather than using a cache, but it seems to do fine for most tasks I've given it. One of my goals was to use the absolute minimum ...

0
Q: Better way to structure and optimise try except statements

DanI am new to python and I am trying to write a function with various actions based on the parameters sent. I am checking if the data has valid format then it publishes to /accepted otherwise to /rejected. If the data is fine then it does the function and then publishes to /success otherwise to /fa...

0
Q: The Blacklist - follow-up

T145 Follow-up from this question using @Toby Speight's answer: The primary concern is jq improvement/optimization, but please detail any others. #!/bin/sh set -eu sources=$(mktemp) trap 'rm "$sources"' EXIT curl -s -o "$sources" https://raw.githubusercontent.com/T145/packages/master/net/adblock/...

17:52
That said, if the code works, this is probably a better fit for Code Review Stack Exchange. — 0x5453 31 secs ago
18:07
Just dumping a large query without any context won't do a lot of good. Please consider creating a minimal, reproducible example. Aside from that, optimization questions might be a better fit for Code Review. — El_Vanja 39 secs ago
1
Q: Emulating Python zip() Function

Steed-AspreyI'm brushing up on Python, working my way through Python Workout. One of the exercises is to emulate the Python zip() function, assuming each iterable passed to the function is of the same length. Here's what I've come up with: def myzip(*args): result = [[] for _ in range(len(args[0]))] ...

0
Q: Implementing hash table in Python using Tuples

Raghav BhallaI am trying to implement a basic hash table using a list of tuples. The code produce the desired output. Please help me improve my code as I feel there are a lot of while loops. #global variables to keep track of the hash table count = 0 size = 1000 def hash_table(size): return [None] * size...

possible answer invalidation by Jesse C. Slicer on question by user242558: codereview.stackexchange.com/posts/260992/revisions
18:23
@Duga censorship - that specific namespace not mentioned in answer - it looks fine to me
18:41
@Kaz lol
@pacmaninbw For the record, we asked. They didn't want it.
19:06
Welcome @ggorlen
19:19
Greetings, Programs.
There's a stack exchange for that.... codereview.stackexchange.comJoffan 8 secs ago
Hi @Mast congratulations on the moderator election and thanks for helping keep the site running smoothly
@ggorlen Thank you, and you're welcome.
You're not doing so bad yourself.
19:36
Nice of you to say
19:52
possible answer invalidation by CafféSospeso on question by CafféSospeso: codereview.stackexchange.com/posts/261186/revisions
@Duga Technically, yes. But that could've been pointed out in a comment with a close vote for the code being broken nonsense.
Left a comment.
20:26
Very belated congrats @Mast
Must have wondered once more where that diamond came from :P
@skiwi Usually from an election.
Thank you.
21:08
codereview.stackexchange.com is a better place for posting this kind of question! — callback 19 secs ago
I’m voting to close this question because it belongs in codereview.stackexchange.com (Code review wasn't showing up in the "This question belongs on another site" list) — Bahrom 6 secs ago
@Bahrom While this may be on-topic on CR, in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like Needs more focus, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 52 secs ago
21:32
possible answer invalidation by Grewal_Creator on question by Grewal_Creator: codereview.stackexchange.com/posts/261089/revisions
@Duga rolled back
possible answer invalidation by Grewal_Creator on question by Grewal_Creator: codereview.stackexchange.com/posts/261089/revisions
21:59
hey there :)
@SᴀᴍOnᴇᴌᴀ can you do me a favor? I need a diamond moderator to delete an over-enthusiastic message I put up in the Rubberducking chat, it contains information I should have known better than to disclose...
@Duga is double reporting.
Is that a known issue?
@MathieuGuindon okay
@Summer could have been a grace-period edit
(it only shows as 1 edit in the history, but it could be 2 events for @Duga to pick up)
22:02
@MathieuGuindon It has Sams rollback from 25 mins before
as the last.
oh
@SᴀᴍOnᴇᴌᴀ thanks! it's the starred "it's official!" message...
done
Apr 21 at 14:44, by Sᴀᴍ Onᴇᴌᴀ
@Peilonrayz yeah we've told(1, 2) Simon about it.... he said:
many thanks! ...keeps reading onboarding material...
@MathieuGuindon Congrats on whatever you are being onboarded for.
@SᴀᴍOnᴇᴌᴀ Something tells me Simon is playing Factorio instead.
Not that I blame him.
22:08
0
Q: PhoneBook in Java

Grewal_CreatorThis Phone Book allows the user to Enter a value between 1-3. Entering 1 lets the user Add a number to the phone book, when the process is finished, the user is asked again to pick 1 of the 3 tasks. Entering 2 lets the user speed dial a number. If the number exists, it will be dialled, else an er...

0
Q: Evaluating my React.js code, best practices etc

OyosiedI am really new to react and I worked on some challenge. Need to mention I did most the stuff on my own without much dependence on the internet beside what functions do. I'd like to know if I did something wrong in regard of code structure and if there are better ways to acheive what I did. Purpo...

possible answer invalidation by CafféSospeso on question by CafféSospeso: codereview.stackexchange.com/posts/261186/revisions
22:51
@Summer thanks! first new job since 2014...before CR graduated!
Wow that's big! I hope it goes well.
23:24
0
Q: Simple Search Engine Program in Python

Pi HackThis program will get data from a folder called Data which has txt files and will return the filename with a score but I don't think it's really good. Can I get any kind of feedback on this program. Is there anyway this can be written in a better way or something that should be added to? import o...

23:50
@SᴀᴍOnᴇᴌᴀ you may want to redact and purge the message history as well ~wink wink
@Vogel612 for the VBA post, or messages about Duga?
the message that the Mug asked you to remove
I can still read it...
might need a bit of tricking around with some userscripts, because it's kinda hard to edit deleted messages (and even harder to undelete them)
there should be something around in the usual userscripts that are advertised in the moderator team
I can delete or relocate, or should I look at userscripts?
easiest to look for a userscript, I'd say
~starts hunting~
23:55
if memory serves, Art, Undo and Glorfindel all have some variation of that userscript in their collection
@Vogel612 I purged history of that message - is that sufficient?
@SᴀᴍOnᴇᴌᴀ nope
you need to edit it first :/
it's ... one of the many things that are annoying about moderation in chat

« first day (2943 days earlier)      last day (1372 days later) »