« first day (2454 days earlier)      last day (317 days later) » 

12:00 AM
RELOAD! There are 6378 unanswered questions (90.0653% answered)
2 hours later…
1:30 AM
possible answer invalidation by Vulpex on question by Vulpex: codereview.stackexchange.com/posts/216457/revisions
@Pablo sounds like I'm going through a formal code review ;) thanks mate — artm just now
1 hour later…
2:43 AM
Q: Trouble returning web scraping output as python dictionary

ZackSo I am attempting to scrape a website of its staff roster (https://www.milb.com/greenville/ballpark/frontoffice) and I want the end product to be a dictionary in the format of {staff: position}. I am currently stuck with it returning every staff name and position as a separate string. It is hard...

1 hour later…
4:01 AM
Although my code is buggy and the build fails, would a modified version (or preferably a corrected version) of this post be appropriate for this site? stackoverflow.com/questions/59852163/…
4:49 AM
Q: function swap 2 nodes in doubly linked list

BeckerHelo everyone, I need to review on function swapNode in doubly linked list. It works but I want to make it clearer and better. Are there any errors like memory leak in my code? #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> struct node; struct list; typedef str...

5:04 AM
@ankii if the code is doing what you want to the best of your knowledge it is on-topic.
5:29 AM
Q: Minimize Hard Coding in React Native

Jasur KurbanovCan anybody help me to minimize my hard coding? Also please give me any suggestions for improving my code for the future? My Source Code: export default class App extends React.Component { render() { return ( <View style={styles.container}> <View style={styles.border}> ...

I think this question is off-topic for StackOverflow. If you have some working code that you're not happy with, CodeReview might be more appropriate. — Kerndog73 28 secs ago
5:59 AM
If your code is working as you expect and you want a review this is the wrong site - use codereview.stackexchange.com instead. — 4386427 34 secs ago
It very likely can, but it is unclear what you mean by "find how long is the range to get exactly K ”Climb Up” and M ”Climb Down”?". For working code (as yours appears to be), your question is more properly asked on CodeReview.StackExchangeDavid C. Rankin 14 secs ago
6:10 AM
Q: Is possible make more efficiency multithreaded code? (double for loop O(n^2))

InKwon James KimI use minimum edit distance algorithm for find similar string. My code subject is find the couple with the closest hobbies among the input data. Hobby type A B C D E F G H I J K L M N O P Q R S T U V W X Y Z // * All of the person have 10 hobby. // * Hobby can not be duplicated. // Input Dat...

Q: Toy Robot Code - Improvements?

Eliseo d'AnnunzioI know this code worked as I've tested it with the case tests commented below in the code, and even added a few of my own, but the developers who were testing me came back with the following critiques: All in one file, no attempt to modularise or separate out concerns No tests at all. You could...

I did suggest codereview.stackexchange.com for review. However, I'm not sure your code is doing what it is supposed to do. The code seems to assume that you always move forward (i.e. alt[0] -> alt[1] -> alt[2] -> ...). Are you sure that's correct? Why not do alt[0] -> alt[1] -> alt[0] -> alt[1] -> alt[2] ? — 4386427 7 secs ago
If this is working code, it belongs on Code Review. — madreflection 40 secs ago
6:27 AM
This is a bit too broad for Stack Overflow. It might be topical for codereview.stackexchange.com (though I'm not as familiar with their guidelines). — David Makogon 1 min ago
6:42 AM
If the code works you should ask at codereview.stackexchange.com instead — Joakim Danielson 7 secs ago
7:11 AM
Q: Getting Time Out Error For Dynamic Array Problem (Hacker rank)

Siddharth KumarI am trying to solve dynamic array problems on hackerRank. (link https://www.hackerrank.com/challenges/dynamic-array/problem). However, getting time out error for very large inputs. PFB my code in swift: func dynamicArray(n: Int, queries: [[Int]]) -> [Int] { var sequences: [Int: [Int]] = [:...

7:23 AM
What value determines a pass mark? @ComputerVersteher your feedback is not helpful, OP has a current schema and just wants some help, we are not here to judge, leave that for codereview.stackexchange.comChris Schaller 11 secs ago
Perhaps better asked on codereview — Marged 27 secs ago
Q: Why is a moderator who has been around for 8 years a new contributor?

Pika the Wizard of the WhalesToday while I was reading a linked question on this answer, I found that Paul White, a moderator who joined more than 8 years ago and currently has around 55k reputation points and 900 posts, is showing up as a new contributor on this question. He's not showing up as a new contributor on his s...

8:12 AM
Q: reducing the number of nested if and else on time

Damcho ThinleyThis is my javascript function to get a break time taken. I have two times (time_start and time_end). And with these two times, I have to get my break time. (break time hours are 12:00-13:00 and 17:45-18:15). The code below works but it contains a lot of nested if and else. Is there any method to...

8:25 AM
If the code works you should ask at codereview.stackexchange.com instead — Joakim Danielson 24 secs ago
Q: Prime numbers (C++) without using loops

Jealous GxIs there any way to make code that checks whether the entered number is prime number or not without using loops? #include <iostream> using namespace std; int main() { int n, i; bool isPrime = true; cout << "Enter a positive integer: "; cin >> n; for(i = 2; i <= n / 2; ++i) { if...

@CaptainObvious No
9:33 AM
Q: Explicitly provide public for methods in angular 2+

Philip JohnBy default, all methods are public in Angular, unless the access modifier is specified. But according to clean code in Angular, should we explicitly provide public access modifier for a method? class SampleComponent { executeMethod() { /**/ } } // OR class SampleComponent { public exec...

10:20 AM
possible answer invalidation by chqrlie on question by chux - Reinstate Monica: codereview.stackexchange.com/posts/215113/revisions
10:40 AM
This shouldn't have been approved.
11:05 AM
Read hanselman.com/blog/… if you want to run .NET CORE on Win 3.11 ;-)
@Heslacher Nice.
11:50 AM
@Mast 15 views, 7 downvotes. sigh.
@Peilonrayz please edit your comment or remove it
@Heslacher Why?
at least if I understand it correctly it isn't nice
What should I change it to?
Remove the last word?
11:58 AM
So saying we're being dicks is not nice?
If I run it through google translate I would say no
Can you help me think of something that's 'nice' then?
Yea, unfriendly would fit.
I'm unable to "edit" it so I'll repost it
12:02 PM
I agree with the overall sentiment though, it's not necessary to get that to -7.
Should be all good now @Heslacher?
@Peilonrayz thanks.
Although it will probably happen more often now upvotes are worth double, at least that's what I've seen on other SE sites.
I just thought it would be better to tell you upfront than someone flagging it
Ok, will keep a note. My colloquial words for unfriendly are unfriendly.
12:10 PM
@Peilonrayz Expect it to get worse.
People can't handle the language from a couple of years ago anymore.
So everybody is getting a bit more sensitive.
At least, that's what it looks like lately, both regional and internationally.
12:56 PM
Q: Throttling - brute force attacks (security php)

Mantykora 7After a few weeks of searching and learning "php secure", I created a class Failedlogins. record_failed_login -> recording the logins, if doesn't find the record, he create the new one. If he does find - will be updated. clear_failed_logins -> is similar like record failed login, if accept use...

1:15 PM
possible answer invalidation by RobAu on question by Ankita: codereview.stackexchange.com/posts/204145/revisions
@Duga Seems fine
1:30 PM
Dir | Rename-Item -NewName { $_.Name -replace "-00_NL-NL.pdf", "_nl.pdf" }; Dir | Rename-Item -NewName { $_.Name -replace "-00_EN-GB.pdf", "_en.pdf" }; Dir | Rename-Item -NewName { $_.Name -replace "-00_DE-DE.pdf", "_de.pdf" }
I should probably do that more sensibly...
@Heslacher the code has been fixed.. would I get replies for obj-c, obj-c++ ?
@ankii Don't tag it as both. Which do you compile it as?
@ankii It depends, without seeing the question no one knows. If the question is well received it still could take some time to get an answer, because doing a code-review is taking its time.
Code Review is different from SO in that regard. You might go days without answer and all of a sudden a very good review pops up.
1:54 PM
@Mast there's no obj-c++ tag on here, so it'd go in obj-c. Though the file is .mm as I said in the SO question.
sorry for the pings
@ankii If a language tag doesn't exist, we will make it. Just make sure you use the correct language.
So, will you be using it as obj-c++ or as obj-c?
Language tags are unique on Code Review. If only 1 question is posted for that language, the tag has reason to exist. So don't worry about that, we'll fix a tag for you if it's appropriate.
@Heslacher it's really a basic change of objects and passing them around.. I'll take a day to write it all up with the rest of the app since I am just beginning at it
Q: Find the closest enemy in a 2D grid with wrapping allowed (Coderbyte 'Closet Enemy II' challenge)

DaveI'd like feedback on my solution to the outlined programming challenge. Is numpy a good candidate module for this? What might be a more efficient, pythonic solution? The full Coderbyte challenge is copied directly from the Coderbyte website in my module comments below. # Closest Enemy II # Have...

@Mast stackoverflow.com/questions/1735085/… stackoverflow.com/questions/4714698/… .mm file means using the widest set of options available: c, c++, obj-c, obj-c++
so obj-c++
@ankii As what will the compiler treat it?
With what command do you invoke the compilation?
2:07 PM
@Mast It's all in the build settings so idk
obj-c++ it is then
Ok, you post the question, ping me in chat with a link when it's ready and we'll sort the tags.
let's take a moment to curse apple then lol
Hi @Sai Kiran, I'd recommend using CodeReview (codereview.stackexchange.com) for questions about optimization for working code. StackOverflow is predominantly used for non-working code. Hopefully this can be of help. — Prebsus 20 secs ago
@Mast, fair enough - I should've added that the posted needed to be edited before submitting to CodeReview. I suppose my comment was more of a principle matter (code problems = SO, code optimization = CR). But I'll keep your comment in mind for later — Prebsus 43 secs ago
2:36 PM
Would'nt this question better fit in Code Review? — EUS 9 secs ago
Q: Laravel - Refactor update and store functions controller

Rainier laanI made a CMS where the user can create and edit an address. My current code works perfectly fine but it looks very messy. I have to assign items to the fields manually which generates a long list of assigning values and I have a check that repeats itself in 1 other function. Also in the store fun...

Actually this question is probably better suited for Code Review. — BigBen 57 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comJNevill 14 secs ago
3:39 PM
You can read more here. The question you post is too broad for this site, and may be more suitable if posted in Code Review, which is of Stack Exchange also. — EUS 44 secs ago
3:49 PM
@ankii I'll be on the move for the next hour or so. Should you ping me, I'll look at it after that.
Q: Architecture Logging

JeffersonI have two database tables UsersDownload, Non-UsersDownload. There is also two model object and two service that take in the object and insert the data into the correct table. Is this the best architecture for this? or is there a better way to handle this? public class UserLog { public strin...

4:08 PM
I really don't understand how dense some OPs are. codereview.stackexchange.com/questions/236002/…
4:40 PM
Unfortunately, code review is not something that Stack Overflow can help you with. Please consider posting this on codereview.stackexchange.com, where people can help review your code for correctness. Stack Overflow intends to help fix programming errors to make a library of Q&A and we are not a review service. I am flagging this post for removal. — wundermahn 54 secs ago
4:58 PM
Q: My first attempt at node/TypeScript

Craig W.My Background Been doing .NET development in C# for about 20 years. Purpose of Program I have a Synology NAS at home. I use an RSS feed to automatically download videos via Download Station. Those video files are then moved into a Plex-compatible folder structure. In the past I've moved the fi...

@pacmaninbw shrug, rookie mistake
A tad arrogant rookie perhaps, but could also be a language barrier and nothing that can't be fixed.
I would highly recommend using codereview.stackexchange.com for such questions — Alexander Pushkarev 32 secs ago
5:14 PM
@Mast Obviously a rookie.
5:35 PM
possible answer invalidation by reducing activity on question by reducing activity: codereview.stackexchange.com/posts/217549/revisions
Q: Centrepiece Class from a Warehouse Management Package

Tom HoskerOverview I've just written a package in Python (which I've named sibstructures) whose purpose is to assist staff in managing a coldstore, which is a warehouse-sized refrigerator holding (in this case) boxes of potatoes. The code below is one file taken from that package, the file which defines ...

6:22 PM
Q: Return records from a large database based on a nonuniform attribute

calfI have a "cars" database table with millions of records. I want to search the VIN (vehicle identification number) for each car and return an ARRAY of cars that at least partially match the VIN query. VINS are not uniform. In the DB, they look like RGNN3347382473, 3483FHJEREHJ430, HSDFfhdjfe34340...

6:42 PM
Q: Dealing with long numbers while parsing

ebeThe code below parses certain elements from XML files to a Dataframe in a Csv file. from xml.etree import ElementTree as ET from collections import defaultdict import csv from pathlib import Path directory = 'C:/Users/z647818/Desktop/text' with open('newfile2.csv', 'w', newline='') as f: w...

7:02 PM
Q: Sum of two elements of a list equaling a target

naivedeveloperIn effort to learn OCaml, I'm going through some easy LeetCode problems and attempting to implement them. I arrive at the correct answer, but I'm still developing an intuition for canonical OCaml code. I'd appreciate any feedback on my implementation. As mentioned, this is problem 1 on LeetCode....

The Community Team on January 22, 2020

Welcome to CHAPTER #2 of The Loop, a blog series from the Stack Overflow Community team. This post is a deep-dive into how satisfied users are with Stack Overflow.

We’re excited to share research highlights about the work we’ve been doing to understand how satisfied people are with Stack Overflow. We’ve been working hard to explore what users like best about Stack Overflow and what their top pain points are, with the goal of improving the overall experience of using the site. To this end, we’ve launched a site satisfaction survey, in which we continually survey users about their experiences using Stack Overflow. …

7:23 PM
Q: hexdump(): A memory layout utility to help debugging / understanding / optimising of C++ memory model

Oliver SchonrockInspiration / Motivation Modern C++, certainly compared to C, provides a lot of abstractions which protects us from / hide from us the details of memory allocation and layout. Mostly "we don't care about the detail", or shouldn't. But sometimes we do for these reasons: New to C++: Should to un...

8:02 PM
I'm voting to close this question as off-topic because it is asking for a code review, which is a better fit for codereview.stackexchange.comGreg Burghardt 13 secs ago
Q: Web scraping code using selenium and Python

SandeepI have a code to scrap data from webpage using selenium and python. The code selects a URL the database and search it using selenium chrome driver and fetches the result and insert into a postgreSQL database. Can anyone can review this code and let me know what I need to modify to make it better...

@Abdur-RahmaanJanhangeer Removing is something else than simplifying. When in doubt, the original code is much preferred over a simplification. If a simplification is absolutely necessary, pleas keep this, this and the help center in mind. Details matter! Daniel, I strongly recommend against modifying the code if what you've currently posted is how you're currently using it.You may just simplify the performance problem away if you take Abdur's advice.We've seen it happen. — Mast 13 secs ago
Too strong?
@Feeds That's not how it works.
@Mast They have a point, but it's not how we do things here.
@Peilonrayz Exactly what I thought. Besides, simplify it and we can't be sure the performance problem is still there. After all, complex code tends to have more performance problems than simple code.
So their point may not even be true.
We don't know, hence we don't do that.
@pacmaninbw I've provided the suggested edits in this question. At the time of the suggested edits, OP and the editor weren't the same account.
Hence it was in the suggested queue. Authors can edit at-will.
8:19 PM
@Mast very true, removing that stuff may remove the performance problem.
@Duga Ugh, why.
@GregBurghardt Okay. I was asking how an object oriented approach would be applied to using a web scraper in a way, if that is considered code review then I'll close it. — user12763901 31 secs ago
Anyway, been dealing with enough crap today, cya all tomorrow. Might even clear the queue if I'm angry tomorrow.
Have a good one Mast
8:56 PM
There might be, but a) that wasn't your question and b) SO isn't the forum for such questions (try CodeReview instead). — Scott Hunter 13 secs ago
possible answer invalidation by Oliver Schonrock, Oliver Schonrock on question by Oliver Schonrock: codereview.stackexchange.com/posts/236039/revisions
9:25 PM
possible answer invalidation by Shinigami on question by Shinigami: codereview.stackexchange.com/posts/235778/revisions
1 hour later…
10:53 PM
@WebByDima sorry I worded that incorrectly (too used to doing code reviews on places that require things like 508/ARIA/WCAG compliance which is probably more than you need), the DOM structure is actually not bad at all, it was just the specificity inheritance, you're good bro. — Chris W. 29 secs ago
11:06 PM
Q: Beginner web scraper for Nagios

Canadian LukeI am attempting to learn Python. It was suggested to me to try a web scraper, so I thought to get myself to look at multiple Nagios instances. I have not programmed in Python before, but learned from other code reviews to adapt my standards to PEP8. The online checker says the code passes. from ...

11:55 PM
@Duga rolled back

« first day (2454 days earlier)      last day (317 days later) »