« first day (2651 days earlier)      last day (1370 days later) » 

12:00 AM
RELOAD! There are 6884 unanswered questions (89.8286% answered)
 
12:23 AM
0
Q: I’m a beginner building a terminal hangman app in which you can decide what the guessword for you opponent is

quophilThe following program directs you to a menu once you start it where you can either enter a new guessword or start the hangman game. By looking at it I think the code should work but once I press 2 to start the hangman game it just doesn’t do anything except give me an input place where i can type...

 
12:48 AM
0
Q: Mutual recursion - Naming the opponent serve - pingpong

overexchangeProblem statement Ping-pong The ping-pong sequence counts up starting from 1 and is always either counting up or counting down. At element k, the direction switches if k is a multiple of 7 or contains the digit 7. The first 30 elements of the ping-pong sequence are listed below, with direction s...

 
1:25 AM
If this a code review maybe put this up on codereview.stackexchange.com for better feedback — sagar1025 45 secs ago
 
1:35 AM
@CaptainObvious @Peilonrayz You editied this and you didn't vote to close?
> but once I press 2 to start the hangman game it just doesn’t do anything except give me an input place where i can type something that doesn’t do anything. How can I fix that?
 
1:57 AM
What is your question? This is Stack Overflow. Perhaps you should try codereview.stackexchange.com ? — ewong 20 secs ago
 
2:23 AM
Welcome to Stack Overflow. Please read about what's on-topic in the help center. This is too open-ended and opinion-based to be on-topic here. You might have better luck on our sister site Code Review. — Chris 12 secs ago
 
 
1 hour later…
3:41 AM
0
Q: Too many class what the alternatives?

drakebakincakeWorking on a program that using RIOT API league of legends that collects the data of a player and calculate how skill a player is by using a grade system( AS of right now it just the average of the last ten games for each skills). Realize I used a lot of class and what is a better way to do it? i...

0
Q: Building a string with only two repeating characters (different code)

user2129013Context I would like to receive feedback on my code for the question which can be seen here. Problem This is another C# implementation for the a function for given parameters int a, int b - both represent characters 'A' and 'B' respectively, where the function should return a string containing bo...

 
4:27 AM
Monking
 
 
2 hours later…
6:56 AM
Monking
 
0
Q: RXjava call an API and insert data into DB

milad salimiI want to call an API and if it was success insert data to DB and then if it was success subscribe an observer. The first approach its something like this : Get list from server : fun getList(): Single<Response<List<A>>> { return Single.create { subscriber -> mApiInterface.getList() ...

 
 
1 hour later…
8:14 AM
-1
Q: 8 Puzzle problem using BFS in python

Atali want to apply 8 puzzle problem in python using BFS algorithm in simplest way. please somebody help me. i just write the main class but i cant go further. class Board(object): def __init__(self, initial_values=(), dimensions=(3,3)): rows, columns = dimensions assert len(initial_values) =...

 
@pacmaninbw I only added the tag. Just cause it says "edited" doesn't mean I've actually read a single word in the body or title
Like I'd set up a bot to do this, but my todo list is so big and this is soo small
 
One more VTC.
@Peilonrayz Bot to do what, flag suspicious questions to be closed?
 
@Mast Add to or questions
 
Ah.
Basically this and this
 
8:29 AM
Yeah, I'd want to add this too but that'd be a bit more work :/
 
I think there should be an or specifier in that somewhere.
 
No no, this is for ones tagged with both
 
Oh, right, because it's a bloody mess.
Questions that should explicitly work on both should indicate this in the question body, not with tags.
Wait, is that correct?
 
Yeah, having 3/5 tags be 'language tags' is a bit like...
 
I'd actually assume 3 tags would be better there...
It's a mess either way.
Meh.
 
8:38 AM
You'll get some questions that are and then you have 2 tags left for say or something and then you start having to select the tags you want
Either way it's not great
The best solution IMO would be allowing 10 tags
 
8:51 AM
I'm not sure what the tagging system had hoped to accomplish.
Tags like fit just so many questions.
 
IIRC tags were the craze when SO came out, I guess they also didn't want it to be like YouTube tags where they'd tag with 100s of tags '4 dat max seo'
 
You mean like Twitter uses hashtags? #nojoke #imsofunny #seemepostingthiscrap #thursday #fml
Garbage.
 
This isn't a code review site. Also, there's no indication of what your reviewers were looking for. — ewong 41 secs ago
 
I'm surprised there isn't a KYM page for them. Pretty sure they were a meme at one point.
 
9:29 AM
0
Q: How to create a folders and subfolders in python in a tree like structure

CS.EnthuI want to create folders and subfolders in the order: Test , Train ,valid. Each of these folders will contain 1 to n subjects and each subject will have three different folders. Ex: Train> Subj 1>A >B >C subfolder . . Subj N>A ...

 
10:21 AM
Monking
 
10:43 AM
0
Q: Avoid nested try / except

TmSmthI have the following code structure: try: x = function_one(args) try: y = function_two(args) try: # # some code where I need x and y # except Exception as e:: print("Problem with code above : ", e) except Exceptio...

 
11:03 AM
@CaptainObvious MRC
 
@MiralKh: If you have working code and you're just looking to improve it, you might try Code Review instead. Though you are encouraged to read their Help Center to learn about that community first. To learn more about this community and how we can help you, please start with the tour and read How to Ask and its linked resources. — David 11 secs ago
 
> how could i not repeat this code many time ? it's to hard
...
 
11:20 AM
@David You stated "might try Code Review instead. Though you are encouraged to read their Help Center" yet linked to SO's help pages. From the phrasing I had expected CR's pages. — Mast 41 secs ago
 
11:33 AM
0
Q: Shortening list of arguments to some kind of a variadic function

nopIf you look at ImportAndPreload method, it looks bad because: MovingAverageConvergenceDivergence, StochasticRSI, RelativeStrengthIndex and ExponentialMovingAverage. They are all indicators, they all inherit from IndicatorBase. What would happen if I wanted to pass a few more indicators? There wou...

0
Q: This python code converts integers to strings and strings to ints without the inbuilt functions "int()" and "str()"

JonasIt is my solution from a challange from edabit.com named "Drunken Python". Thats the task: You need to create two functions to substitute str() and int(). A function called int_to_str() that converts integers into strings and a function called str_to_int() that converts strings into integers. I h...

 
11:58 AM
Please notice that requests for improving working code (i.e. without bugs or related issues) are actually off-topic here, and they should be posted at Code Review SE instead. — desertnaut just now
 
12:51 PM
Nobody's being mean here, as you're new, you just don't know about how to present or write in order to make it easier for us to help you back. It's the "help me help you" mindset as well as "help futur you": you can read the answer on that code review, it covers general "problems" new coders (as i was and still am sometime) have. codereview.stackexchange.com/questions/246013/…Patates Pilées 53 secs ago
possible answer invalidation by Edward on question by Sergey Kolesnik: codereview.stackexchange.com/posts/247504/revisions
 
1:11 PM
Your question could be better on Code Review site of SE — Vega 47 secs ago
 
0
Q: Concerned about thread safety

WLTYI'm writing start/stop module for my application. I have a class that manages application life cycle and I called it Work. Work uses WorkState class that contains 4 states the application can be in, that's: INITIALIZING (state between NOT_RUNNING and RUNNING) RUNNING FINALIZING (state between RU...

 
@Duga Ok
 
1:39 PM
This seems like a question for codereview.stackexchange.com. — jaco0646 46 secs ago
 
Greetings, Programs.
 
2:38 PM
I would say this question is more suitable for codereview.stackexchange.comGuru Stron 20 secs ago
 
2:52 PM
0
Q: Angular: HttpInterceptor for caching HTTP request

Simone NigroI would like to get your opinion on this service, which is used to cache HTTP requests. See the working demo, this is the full code: ng-http-caching.module.ts import { NgModule, ModuleWithProviders } from '@angular/core'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { NG_HTT...

 
3:13 PM
Monking
@Duga @Mast it makes sense - the first link is to the CR help center, but then goes on to state "To learn more about this community and how we can help you" before the SO links - makes sense because he wants the OP to learn about the SO scope
 
3:41 PM
0
Q: PowerShell Script to Harvest System Inventory

PendraigI've written a 'fast & dirty' PowerShell script to harvest a system inventory of Windows client and\or server operating systems to streamline case note documentation. $NewLine = "`n" $FileName = Join-Path $Env:USERPROFILE 'Desktop\System Inventory.txt' # Current Date $TimeStamp = Get-Date -Form...

 
4:06 PM
0
Q: Advent of Code 2019: Day 6 (with Trees)

TrebledJI've been going through some 2019 AoC challenges and decided to solve Day 6 in Haskell with the help of Data.Tree. In summary, the puzzle provides a list of orbits (edges) as input, resembling: COM)B B)C C)D D)E E)F B)G G)H D)I E)J J)K K)L K)YOU I)SAN where COM is supposedly the centre of all or...

 
4:31 PM
1
Q: Is performing IO in constructor good idea?

jiwopeneI have Java (or C#, Python, Kotlin, or other similar language) class that will be used to communicate with client over network. Protocol used by this application allows many different ways to create connection (TCP, unix socket, serial port, …) and perform handshake (plain connection or TLS, with...

 
4:56 PM
0
Q: Correct way to delete posts and unlink images using NODE JS

LV98I have the following tables in MySQL: create table PostSchema (id int not null primary key auto_increment, categories int not null, title varchar(50), status varchar(20), comments bool, body varchar(255), filename varchar(255), date_created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP); create t...

 
If you want feedback (note the code must be in the question), see Code Review. — jonrsharpe 44 secs ago
@jonrsharpe when suggesting users post on CR it would be great if there was also a suggestion like "Please read the relevant help center pages like 'What topics can I ask about here?' and 'How do I ask a good question?". In the current form the code above would likely be closed as off-topic because the code to be reviewed is not embedded in the post. — Sᴀᴍ Onᴇᴌᴀ 42 secs ago
What's the question? If the code you have works and you want to know how to improve it, post to Code Review instead (and post the code there as text.) — Guy Incognito 44 secs ago
If your code runs without problems, Code Review might be a better place to ask. (But yeah, they will insist on seeing the code as well.) — usr2564301 25 secs ago
If your code is working, it would probably be a better fit for codereview.stackexchange.com - but note that they won't accept an image of code either. See meta.stackoverflow.com/questions/285551/…Thierry Lathuille 43 secs ago
 
5:13 PM
@Duga wow three suggestions for CR on one post...
@Duga oops... he did advise to embed code
 
6:11 PM
0
Q: Self Running iterable state machine with Enums in Java

Makis PapapanagiotouDuring development I needed to design a state machine with decision which runs to completion and performs state transition without the need to wait for events. So i come up with the following implementation that I want to share. So the state machine is described with the following Enum public enu...

 
Ryan Donovan on August 06, 2020
The React community grew organically thanks to its instant popularity. Here’s how the folks shepherding that community ensure that everyone who wants to contribute is welcome to.
 
6:43 PM
@CaptainObvious That doesn't look like real code.
 
yeah - is it a best practices ("in general") question?
 
7:08 PM
not that it makes it alright but there is an upvoted answer so it isn't a zombie anymore...
 
@CaptainObvious @Donald.McLean Agreed, voted to close.
@SᴀᴍOnᴇᴌᴀ It's a selfie.
 
7:25 PM
1
Q: Implementing GSL synchronized_value. Does not pass tests

Sergey KolesnikCore Guidelines mention a type synchronized_value<T>, which supposedly pairs std::mutex with the internal value. I couldn't find any implementation both in GSL-Lite and MS GSL libraries. I implemented my class and want to have it reviewed. There are some problems, for instance, make_synch_value d...

0
Q: code into def function

klimaI'm brand new in Python and trying to solve one of my exercises: Below is a code describing growth of money, which started at $100, and which grows over time at a rate of 3% per year. The balance at the end of a given year is equal to balance*rate from the year before. balance = 100.0 rate = 0.03...

 
@Mast Here's all the rules and sub rules I've found so far. (might be more apt to call them similar posts) Here is a short explanation on what all these random pages and links even mean.
 
:-)
 
 
1 hour later…
8:40 PM
0
Q: Rust Book's Chapter 8 - Text Interface

JahwiI recently finished chapter 8 of Rust's book, and below is my solution to the third exercise. I'd appreciate pointers on how the code can be improved. Thanks in advance. use std::collections::HashMap; //An attempt at Rust book's chapter 8's third exercise: //https://doc.rust-lang.org/book/ch08-0...

 
 
3 hours later…
11:23 PM
Also, you may need to move this question into the Code Review codereview.stackexchange.com or WordPress wordpress.stackexchange.com Community. I'm pretty sure you just have a bug in your code somewhere. — Phil F 20 secs ago
If the code is complete, works, and you just want a review of it, it should be on our sister site Code Review. This site is primarily for fixing broken code. — Carcigenicate 40 secs ago
@PHilF please don't suggest users post questions involving code that is not working on Code Review since that is not on-topic there. — Sᴀᴍ Onᴇᴌᴀ 19 secs ago
How would I check if my_ajax_object.ajax_url is defined or not? There are no errors in the console prior to or during the attempt of the call. Thanks for the advice, I'll move this question into code review and wordpress stackexchange — kenyac 30 secs ago
@kenyac please see SAM's comment. Code Review would NOT be a good fit for this. I was only mentioning it as a possibility, but that community has said it off-topic. — Phil F 57 secs ago
@PhilF Thank you, I have posted a copy with some edits in the wordpress stack exchange but I won't be posting it to code review. — kenyac 5 secs ago
 
11:55 PM
If it works ask for a code review: codereview.stackexchange.comMartin York 51 secs ago
 

« first day (2651 days earlier)      last day (1370 days later) »