« first day (3381 days earlier)      last day (638 days later) » 

12:04 AM
REFRESH! There are 8125 unanswered questions (89.3269 answered)
 
 
5 hours later…
5:08 AM
0
Q: Porting C-style socket to CPP class

Ravi JoshiI am porting the C-style socket to design a simple wrapper around the telnet client in CPP. The telnet protocol is accomplished by using libtelnet in C. The C-style code for this wrapper is reviewed here and here as well. I want to follow standard practices in my CPP code, such as using smart poi...

 
 
2 hours later…
6:47 AM
possible answer invalidation by SogaBan on question by SogaBan: codereview.stackexchange.com/posts/278607/revisions
possible answer invalidation by SogaBan on question by SogaBan: codereview.stackexchange.com/posts/278607/revisions
 
 
2 hours later…
9:16 AM
@Duga Fine.
 
 
1 hour later…
10:32 AM
I’m voting to close this question because code review is off-topic — Zoe stands with Ukraine ♦ 19 secs ago
 
0
Q: Leetcode 14. Longest Common Prefix beats only ~50% of C++ solutions

infinitezeroThe task is to find the longest common prefix. While I had no trouble to find the solution, I'm interested in the statistics of my code: Runtime: 7 ms, faster than 56.36% of C++ online submissions for Longest Common Prefix. Memory Usage: 9.3 MB, less than 54.46% of C++ online submissions for Lon...

0
Q: Jetpack compose login screen + ViewModel

DestroyerIm working on the login screen for my application. It has fields for users email and password. Also users can click on forgot password button to send an email with new passsword. It can validate these fields, show errors. I would like to hear peoples opinion about how I could improve my code to m...

 
11:23 AM
0
Q: Java String Input not working

Evan ThomasAfter giving the input to String month and int input date variable the variable dayNumber is not getting initialized. I want the dayNumber to be initialized based on the inputs given to variables month and inputDate. It works when i initialize the variable month without giving input.nextLine() bu...

 
11:55 AM
@Duga Added expected output.
 
12:13 PM
0
Q: Plot time windows based on interested value

Gregory OliveiraI use the following code to identify some interested values into a dataframe and them plot a time window before and after that value appeared. It works very well, but I would like to know if there is a less coding way/more pythonic way to accomplish this. Thanks in advance! Before I go, I try to ...

 
12:23 PM
Welcome! I suggest posting something to codereview.stackexchange.com. Just note that, as written, this is likely off-topic there too. You need to be concise, and include all relevant details in the question itself (such as a small sample of data). And things like whether conclusions can be drawn from your model... are off-topic (it's opinion and speculation, and unrelated to a code review) — David Makogon 56 secs ago
 
 
1 hour later…
1:28 PM
0
Q: I am struggling to abstract a parse function for text line with fields separated by a comma with the known number and their type

NorbertI am trying to parse a line with a fixed amount of fields and known types. using Text = FieldType<std::string>; using Int = FieldType<int>; using Name = Text; using TextSpecificField = Text; using IntSpecificField = Int; struct LineData { Name name; TextSpecificField textField; IntS...

 
2:06 PM
@CaptainObvious Off-topic for at least 2 reasons, MRC and possibly CNI.
 
3:01 PM
Monking
 
3:40 PM
@CaptainObvious OP was directed here from SO, mentioned in comment that question seems more appropriate for SO.
 
3:58 PM
0
Q: Query for sequential column permutations in SQLite

Bram VanroyNote: I posted this earlier on SO but I think Code Review might be better suited? It's always a tough call to make. In my project, I have databases with n columns of comparable integer values. The n differs between databases depending on some external factor. I oftentimes want to query these colu...

 
4:48 PM
0
Q: Generate random int based on a 32 characters long string seed

DoubleVoidI want to generate a random seed based on a string value (which is ~32 characters long). I don't want to use string.GetHashCode() since I may later will need a working implementation in another language (C++, Python, JavaScript) (Yes I will need to get rid of Random() too then and all other .NET ...

 
5:38 PM
0
Q: Coding challenge(Geektrust): How to make the code more Object Oriented

SATWThis is the my solution to a coding challenge in Geektrust. The question is linked here. A shortened version would be as follows. The aim is to simulate a marketplace for banks to lend money to borrowers and receive payments for the loans. It takes take as input: The bank name, borrower name, pr...

 
5:50 PM
Thank you for the response. I was redirected from StackOverflow to CodeReview forum. The code that I would like to be reviewed is the parse function mentioned in the post. The link to the full working example is just complementary and the code above that function is to provide a better background to the problem. I added the missing code. As to the second link "Where can I get help?", it sounds like I should go back to StackOverflow with my problem. I will do that then. Thank you for the help. — Norbert 3 hours ago
Another bad referral, it seems.
@pacmaninbw Yet not a single vote to be seen.
 
@CaptainObvious Pretty sure that that particular question is not off-topic
Review context is given (even if it's somewhat sparse), in "fixed amount of fields and known types"
what type they are is IMO immaterial to the code
And I don't see any indication of the code not working as intended
 
6:16 PM
This seems more appropriate for code review stack exchange — Taekahn 28 secs ago
 
6:39 PM
If you have no issues in the code, want make it better, then SO is not suitable location for your question. codereview.stackexchange.com is for such questions. — 273K 26 secs ago
 
 
2 hours later…
8:28 PM
@Mast I ended up editing the question and adding the missing code from goldbolt.
 
 
2 hours later…
10:38 PM
0
Q: Meta Collatz Sequence

JessicaContext Chapter 6 of Learn You A Haskell contains a function called chain, which outputs the Collatz sequence of a given input. (In short, it takes a natural number. If that number is even, it divides it by two. If it's odd, it multiplies it by 3 and then adds 1 to that. It then takes the resulti...

 
11:28 PM
0
Q: Ray tracer in c running slowly

Aayush LakhotiaI was learning C the past few days and decided to make a mini project to get a better feel for it following the Ray Tracing In a Weekend Series. I got it working however I feel like it is pretty slow as the main image took 3 hours to run. I couldn't really find a good way to profile my code(On Ma...

 

« first day (3381 days earlier)      last day (638 days later) »