« first day (1996 days earlier)      last day (2027 days later) » 

12:00 AM
RELOAD! There are 5748 unanswered questions (89.7368% answered)
I'm voting to close this question as off-topic because it belongs on code review. — Rafael 25 secs ago
 
12:42 AM
0
Q: Deferred Iteration in TypeScript

Patrick RobertsI've published a new TypeScript library currently in beta, and was hoping to get feedback on certain aspects of it, particularly implementation details for improving the performance of deferred iteration in some specific methods. The library is called enumerable-ts and is available on npm. I don...

 
The question is almost certainly off-topic on Stack Overflow (especially the way you phrased it as a request for an external resource) but (suitably modified) might be a good fit on Code ReviewJohn Coleman 48 secs ago
 
12:58 AM
0
Q: Is this considered an elegant and correct solution to a problem in Haskell

oahzI have recently started learning functional programming and Haskell. I have encountered this problem: "Consider three two-dimensional points a, b, and c. If we look at the angle formed by the line segment from a to b and the line segment from b to c, it either turns left, turns right, or forms a...

 
Very good that you were able to work it out yourself! I voted to close your question because it did not contain any code you were having problems with (which is a valid reason per the Help center -- we expect to see at least some visible effort ...). If your code is working but you are worried about its efficiency, you can ask on Code Review. Make sure to read their Help page so you know how to properly state your question there. — usr2564301 34 secs ago
 
1:15 AM
I'm voting to close this question as off-topic because it belongs on code review. — Rafael 33 secs ago
Ah I figured that was why I was getting down votes. I will check out code review because my solution has quite an effect on fps in video. — Trevor 47 secs ago
 
1:45 AM
0
Q: Loops through each row in a binary image and gets the width of each group of black or white pixels

TrevorExample image: Code: #get height and width of image height, width = possible_barcode_img.shape[:2] #prepare list for rows barcode_rows = [] for i in range(height): # set variables and list for beginning of row white_bar_width = 0 black_bar_width = 0 barcode_row = [] f...

 
2:07 AM
@LGSon Please note the caveats when recommending Code Review. Issue 1 says that the code doesn't work correctly as intended, which would make it off-topic there. — 200_success 49 secs ago
 
2:47 AM
Linked from Code Review. The code there technically "answers" this question, but is probably a bit out of scope for SO. — Comintern 8 secs ago
 
0
Q: Date input wrapper for TextBox

CominternPurpose I managed to get completely nerd-sniped earlier today by a question over on SO and decided to take a stab at adapting my numeric input wrapper for TextBoxes into one that would handle numeric date input in various different formats and automatically add the delimiters. I usually do VBA ...

 
3:45 AM
looks good / on the right track... You might want to check out codereview.stackexchange.com to ask for code reviews — bsapaka 1 min ago
 
0
Q: Console prime number searcher

BetraxOkay so, I'm learning c# for fun and decided to add a function to my calculator project which would calculate every possible prime number between the 2 numbers the user chooses, apparently using "%" and for could save an hour of work, but hey it works! (I only look up something up if I think that...

 
 
2 hours later…
5:45 AM
I'm voting to close this question as off-topic because it should be on codereview.stack — sjwarner 54 secs ago
 
5:55 AM
possible answer invalidation by Pankaj Rawat on question by Pankaj Rawat: codereview.stackexchange.com/posts/205896/revisions
 
0
Q: CQRS implementation (.NET Core and C#) based on Vladimir Khorikov's PluralSight Course

Rock Anthony JohnsonVladimir Khorikov published a course on PluralSight that, for me, has de-mystified CQRS. The implementation that follows consists of the following, in order from top-level abstractions to the bottom: CourseCatalogController QueryExecutor CourseCatalogQueryExecutor CourseCatalogQuery DapperCour...

 
 
2 hours later…
7:46 AM
0
Q: declaring class and passing class variable to function to input data

Misbah EhsanWrite a program that declares a class Student to store Roll No, Marks, Average and Grade of a student. Define another class marks to store the OOP, PF, Math and English. The program should define a class variable, It passes the class variable to function to input data. It passes to another functi...

 
@200_success Did you miss "issue 2 and 3 (the update) are both off topic" and "might be a better place for the latter"? ... Wasn't that clear enough I meant the 2 last, or you only saw the word "CodeReview" and assumed otherwise? — LGSon 35 secs ago
 
0
Q: ServicBus QueueClient and TopicClient object resue

Pankaj RawatI have written Azure ServiceBus Queue and Topic Client for my project, where Azure Function sends thousands message every day. I have incorporated several comments from below links Initial Code Review StackOverflow Answer Below is my latest MessageBroker implementation, IMessageBroker is Singl...

 
8:33 AM
0
Q: Python classes form content

BiopyI just start to use classes in python. So I don't know all concepts, rules and conventions about it. I made a little program of a machine gun, which simulates firing by user's action. Here it is : class MachineGun(object): bullets = 200 def __init__(self): self._magazine = 50 ...

 
@Feeds Wrong site mate.
 
8:48 AM
0
Q: Haskell replace for the second element of the list of tuples

john mirasI am trying to create a function, which upon receiving a string looks for an element of it is in a list of tuples and if yes, substitute for the second element of the tuple for example my string is: String = ["2", "777", "7"] and my list of tuples: list = [("2","A"),("22","BB"),("7","P"),("77...

 
9:35 AM
-2
Q: Python - exercise to test loops, conditionals, and try/except

Densetsu_NoGood morning beautiful coder, so I am ashamedly new to Python and to get better I am following a free course on py4e.com (quite nice with lessons, exercises etc.). On chapter 5 there is an exercise that asks to: Write a program which repeatedly reads numbers until the user enters “done”. Once “...

 
 
1 hour later…
10:53 AM
0
Q: K&R Exercise 1-16. Find the longest line in the input and print its length and first N characters

div0manI'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it. Note that, for the sake of exercise, I don't want to use techniques not introduced yet in the book and I'm compiling with the -ansi flag. K&R Exercise 1-16 Revise the main routine of the longest-line pro...

 
 
1 hour later…
11:57 AM
0
Q: Unit Conversion Program into Metre and stored input

UlivaxI was curious as to how I'd be able to make this much clearer to read because from my perspective I understand what does what but how does it look to a third party? Also how are my object / method names doing? //Program that stores units into a vector and compares / prints them back to the user....

 
12:12 PM
Monking
 
12:28 PM
-1
Q: Printing stars without nested loops

Shah ShahWrite a program in C++ using repetition structures to print the following patter but not allowed to use nested loops. ** * Please Help! i'm a beginner at so please don't use any fancy library files

 
12:44 PM
-1
Q: Check if a type is convertible to a templated type

Narut SereewattanawootLet's say I want to check if a type T is convertible to a std::pair of any template arguments. I can't find a way to do it using std::is_convertible and haven't found a good solution online. I decided to write a dummy function to force a conversion to a std::pair and SFINAE from there: template<...

 
 
1 hour later…
1:46 PM
-1
Q: Simple Ternary Search

Devesh ChandeThis is a snippet of code that I have written in order to accomplish simple ternary search. Assume that the number of elements are 10, and that the input given are the numbers from 0 to 9 (including both). The appropriate index is obtained for all but the first three i.e. 0,1, and 2. The values ...

 
 
2 hours later…
4:08 PM
Perhaps this is better off on codereview.stackexchange.com ? — Oliver Baumann 32 secs ago
 
4:38 PM
If the code already works you can try posting on Code Review (read their help page to make sure it's on topic) — user202729 52 secs ago
I'm voting to close this question as off-topic because it's asking for a code review. — Mad Physicist 15 secs ago
Also, Python may be naturally beautiful (agreed), but lends itself very easily to abuse. Just because you can make a complicated thing legible in Python does not mean you will actually succeed, or that you can't make a simple thing illegible. Code review still has a purpose. — Mad Physicist 47 secs ago
 
5:41 PM
0
Q: JAVA - Starting with OOP - simple console based car array

thisGuyCodesHey I have recently started coding in Java and I had to do this assignment in college. Develop a menu driven application called TestCarPartc that allows the user to add, remove and list Car objects. For this use an ArrayList of Car. What are the advantages of using an ArrayList over an arr...

 
5:52 PM
Please use codereview.stackexchange.com for these kind of questions. — Broman 7 secs ago
I'm voting to close this question as off-topic because it belongs in codereview — Broman 46 secs ago
I'm voting to close this question as off-topic because it belongs on codereview stackexchange — EdChum 1 min ago
I've retagged the question as C++ since the notation Column &columnList is manifestly not C. If you're actually learning C, then use a C compiler that will reject C++ constructs. You've not provided an MCVE (Minimal, Complete, and Verifiable example), so I'm not convinced this is ready for Code Review. Your use of _type and _table is dubious. For most purposes, names beginning with an underscore are reserved for the implementation. It's a little more complex than that, but "do not create names that start with an underscore" avoids the pitfalls. — Jonathan Leffler 11 secs ago
I'm voting to close this question as off-topic because it belongs on code review stackexchange — EdChum 26 secs ago
I'm voting to close this question as off-topic because it belongs on code review stack exchange — EdChum 8 secs ago
 
6:42 PM
@Broman as requested I will close it. Thanks all of you guys, will check codereview. — Mariano Zunino just now
 
0
Q: Need help figuring out what me teacher wants specifically with my already working code

ToriI am a beginner at coding Java and am having a tough time understanding what is wrong with this code. This is an assignment I had posted about earlier and I also went to a Java tutor at my school for help after having issues communicating with my actual teacher (I am an online student). She gave...

 
 
1 hour later…
7:45 PM
0
Q: C# cascaded type pattern

ShimmyI have the following conditional flow and I'd like some comments about it: bool IsPositive(object sender) { if (!(sender is SymbolIcon symbolIcon)) { if (sender is ContentControl content && content.Content is SymbolIcon i) symbolIcon = i; else if (sender is Viewbox viewBox && v...

 
8:09 PM
I think this question is better for codereview.stackexchange.comDaniel Mesejo 51 secs ago
 
8:32 PM
0
Q: What's wrong with my binary search program? (works when the number is in the list, but if it isn't then I get an infinite loop)

user182632*Note that this is in Python Here's my code: http://pasted.co/e59dfa87 I know how the binary search works and have seen many working examples, but I can't figure out why my version doesn't work or what I have to change for it to work. Or rather, I can't figure out what the difference between m...

 
 
1 hour later…
9:41 PM
Your posted VHDL code is not enough to answer your question on how to create a signalling and interaction scheme for multiple processes and/or state machines. If you have working solution, you might want to post that solution on Code Review to get hints for improving the code and/or handshake mechanisms. — Paebbels 28 secs ago
 
0
Q: First attempt at Javascript/jQuery -2 days later it works but what other ways can this be done?

Cassandra FairchildMy study method is pure trial and error but the code works perfectly in the fiddle and chrome console but I feel like it's intended for front end loading when I want to permanently change the source code from the back-end. This script adds the html <div class="container"><div class="text-block">...

 
10:08 PM
You should post it on Code Review codereview.stackexchange.comDo2 28 secs ago
 
10:39 PM
If it works on paper, works in code, properly deals with corner/edge cases, and doesn't invoke undefined behavior, it's probably correct. Regardless, "working" code asking for reviews belongs on codereview.stackexchange.com, not here. — WhozCraig 55 secs ago
 
 
1 hour later…
11:40 PM
0
Q: Generate the Factorial of Given Number

Anthony K.This is a console application that generates the factorial of a given number. Is there any way I can improve my code ? int number = Convert.ToInt32(Console.ReadLine()); int digitFactorial = number; for (int counter = number - 1; counter > 0; counter--) { ...

 

« first day (1996 days earlier)      last day (2027 days later) »