« first day (3429 days earlier)      last day (587 days later) » 

12:05 AM
REFRESH! There are 8047 unanswered questions (89.4673 answered)
 
1:02 AM
0
Q: Auctionsite API Wrapper in Python

holts-shoeThis is the first API wrapper I've written and I'm wondering what I can do to improve. I've read through the feedback of a few similar posts Readme Code import requests import time as notdatetime import datetime import matplotlib.pyplot as plt # uses Algolia for API class API(): def __init__...

 
 
2 hours later…
3:00 AM
If there is no obvious problem with your code and you just want a review or general tips, the question might be more suitable for codereview.stackexchange.com. Questions here require a clear problem statement with minimal reproducible example. — Jason Liam 22 secs ago
If your code works, but you're looking to improve it, it's best to try the Code Review SE. — sj95126 25 secs ago
 
4:03 AM
0
Q: How can I change this code to a code using std-pair?

아무것도 몰라요Before the question, I am a non-English speaker, so my English might be a little awkward This is Closest pair of points problem. I use array but using an array to list the coordinates one by one is messy. so, How do I replace this code with std::pair #include<iostream> #include<array> #include<cmath

 
4:28 AM
0
Q: Trying to link Nodes together, process takes too slow though

Benjamin Chen#include <iostream> #include <vector> class Node { public: std::vector<Node*> front; Node* end; int value; Node(std::vector<Node*> front, Node* end, int value) { this->front = front; this->end = end; this->value = value; } }; void findLargestSumRevers...

 
Monking
 
Monking
 
5:03 AM
possible answer invalidation by mickmackusa on question by Red Sebastian A. Arce: codereview.stackexchange.com/posts/279873/revisions
possible answer invalidation by mickmackusa on question by Red Sebastian A. Arce: codereview.stackexchange.com/posts/279873/revisions
 
 
4 hours later…
9:12 AM
This question is probably better suited to Code Review. However be sure to take their tour and read A guide to Code Review for Stack Overflow users and their How to Ask page before posting. — Nick 21 secs ago
 
10:03 AM
0
Q: K&R Exercise 5-11. Modify the "detab" - to accept a list of tab stops as arguments

jr.çhåvez__07So far I have reached chapter 5 of the K&R Book, Edition 2 from which I have been learning C. I spent a few days thinking of a solution to this program. I wrote two or three versions of the same program, And the truth is that I couldn't bring myself to think of a better solution for this exercise...

0
Q: Facebook API class for making access token requests

BobI am writing a bunch on integrations with some social media platforms and have been hacking around with the Facebook API. I would like a review on the code below as i'll most likely rinse and repeat it for the other socials. from __future__ import annotations from typing import Any, Dict, Iterab...

 
 
2 hours later…
12:11 PM
-1
Q: Python: A function to check if any veraible (int, float, string, list ,etc. ) is a positive int

Daniel Esnadycheck if a given variable is positive integer: def is_positive_int(n: Any) -> bool: try: return str(n).isdecimal() and n > 0 except ValueError: return False

 
 
1 hour later…
1:16 PM
You can probably get better answers in codereview.stackexchange.comÖzgür Murat Sağdıçoğlu 11 secs ago
 
1:54 PM
0
Q: SIngle-directional linked list in C

zxqpI'm learning algorithms and I wrote the single-directional linked list implementation in C. I need a code review of what can I improve in my code and I want to make sure there are no possible memory leaks. Code: #include <stdio.h> #include <stdlib.h> struct node { int data; struct node *...

 
Before you post at Code Review, make 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 does, 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 32 secs ago
 
2:54 PM
Monking
 
@shazwashere Hah! Thanks for the term! It's useful for me to show other devs in code review. — emeraldhieu 28 secs ago
 
3:33 PM
This isn't really something that can be answered very objectively, so maybe getting a Code Review would be more helpful. But probably by far the easiest way to simplify this is to present a menu of choices to the user, so they can see all their options at once, and then they just write the name or number of their option. — Random Davis 15 secs ago
 
3:48 PM
I'm going offline for a few days now. Back Wednesday(ish).
 
@TobySpeight okay- have a good break!
@Duga removed a new line towards the end of the code.... I didn't really mention anything along those lines
 
4:04 PM
Monking
 
4:28 PM
0
Q: Access to Excel VBA Loop Running Very Slowly

BlueFlameI have a couple of VBA loops that work in the blink of eye when I execute them through Excel, but doing this as part of an Access VBA application takes like 15 minutes. I have no idea what I could be doing wrong so any help would be appreciated. This is the database code pertaining to the Excel p...

 
4:54 PM
0
Q: Create URL's, then download and print each RSS feed text

LucaLooking for a more efficient way of achieving this. In particular the combine_all_rss_lists so I don't need all those params. Feedparser module doesn't accept lists which is why I've had to initially break them into strings. Would be ideal to have minimal arguments as well. def create_rss_urls():...

 
 
2 hours later…
6:37 PM
1
Q: API request into a dictionary

OrcaDriveI have the code below which currently pulls pricing data for Ethereum from CoinGecko API. From this request I am building a dictionary that contains the pieces of information and returning it to be used elsewhere in my code. This function works fine, but I can't help think it could be written so ...

1
Q: Pairwise Max Product

Pratik RoyThis python program takes user input of the number of elements in a list in the variable b and then takes user input of the list elements in list a. It then finds out the maximum product of a pair of the list elements. For example, if the list elements are 5,4 and 6, then the maximum product is 3...

 
 
2 hours later…
8:45 PM
0
Q: Laundry machine tracking app using NgRx to track state

user2986734Essentially, I live in a flat on 9 people and it's a pain in the butt coming down from the 4th floor to find out the machine is in use and having to go back up with the laundry. I tried to use NgRx for state management and believe I am using it a little incorrectly. Heroku: https://washing-machin...

 
Welcome to Stack Overflow! If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 44 secs ago
It seems like you are looking for Code ReviewsRandom Davis 41 secs ago
 
9:08 PM
I have to download clang extensions for homebrew - hopefully it doesn't actually take 97 hours ಠ_ಠ
 
9:30 PM
yay 24 minutes is better than 97 hours :)
 
0
Q: input character name and age then print name and age list the characters that are older

Ahmed OshiInstead of using so many if and elif statements I want to organize the names and ages into a list and when a user input the name and age it will iterate through the list of ages to see if any of them are older and if they are it will then return the name of the people who are older from the list ...

 
10:02 PM
0
Q: General purpose 2D grid

Richard NeumannI am developing (WIP) a mine sweeping game to get more familiar with Rust. I decided to represent the mine field as a 2D grid. While developing I realized that this grid can be outsourced as a general purpose grid into an own module. Here it goes: #[derive(Debug)] pub struct Grid<T> { width: ...

 
 
2 hours later…
11:44 PM
Improving working code belongs to codereview.stackexchangeTim Schmelter 55 secs ago
 

« first day (3429 days earlier)      last day (587 days later) »