« first day (3942 days earlier)      last day (370 days later) » 

00:13
REFRESH! There are 6523 unanswered questions (91.5844 answered)
 
5 hours later…
05:34
Generally, you post a code review here: Code Review Link. Although, the code at a glace looks good, maybe add the imports inside the function. — NULL 48 secs ago
05:51
I wasn't tracking on the Code Review community. Thanks for letting me know? — JPthunder 42 secs ago
 
2 hours later…
07:57
0
Q: A simple unit test library for C

coderoddeI have rolled this simple unit test library for C: com_github_coderodde_my_assert.h: #ifndef COM_GITHUB_CODERODDE_MY_ASSERT_H #define COM_GITHUB_CODERODDE_MY_ASSERT_H #include <stdbool.h> #include <stdio.h> extern size_t passes; extern size_t failed; void print_test_statistics(); #define ASSE...

0
Q: Thread-save strtok in C

coderoddeSince strtok is not thread-safe, I decided to practice and write a thread-safe version of the same function: Code com_github_coderodde_thread_safe_strtok.h: #ifndef COM_GITHUB_CODERODDE_THREAD_SAFE_STRTOK_H #define COM_GITHUB_CODERODDE_THREAD_SAFE_STRTOK_H #include <stdlib.h> typedef struct str...

 
3 hours later…
10:35
0
Q: Path Compression Algorithm in C#

Shahar ShokraniLet's consider a simple graph represented by the following edges, where true indicates a visible node and false indicates a non-visible node: A (true) -> B (false) B (false) -> C (true) C (true) -> D (true) The expected output of the CompressPaths method for this graph would be a list of EdgeCol...

11:24
Those snippets don't allow for a proper code review, which is required to understand the context in order to make suggestions. Depending on how the data items look like it appears you want to bind to SelectedValue instead of SelectedItem. Or use {Binding SelectedItem.PropertyNameThatReturnsSF90 ...}. — BionicCode 41 secs ago
12:06
0
Q: Spring Boot old versions of endpoint

MatleyI have 5 versions of some endpoint. Only V4 and V5 are used currently on the frontend side. What should I do with the V1, V2 and V3 versions? Should I remove them when are not used anywhere? @PutMapping(consumes = "application/json", path = "/v1/announcement/{id:\\d+}") @PutMapping(consumes = "ap...

 
3 hours later…
14:59
Monking
15:30
Off-topic for Stackoverflow, this fits better on <codereview.stackexchange.com> — knittl 14 secs ago
 
1 hour later…
16:49
Welcome to Stack Overflow! Unfortunately, this question is too broad for our format; Stack Overflow is meant for specific questions (and usually about code functionality, not form). For improving working code, you can ask on Code Review instead, but first please take their tour and read their "How to ask a good question" page. — wjandrea 30 secs ago
17:11
@KellyBundy On a technical level, it's fragile. If you care about readability and style then in my opinion it falls short on both of those metrics as well. But that's just my opinion. I suspect most experienced engineers would spot the code smell in a code review. — FreelanceConsultant 10 secs ago
17:44
I’m voting to close this question because SO is not a code review service. If you have a simple, self-contained question about a specific problem you encounter writing your code, that's a different matter. — Limey 24 secs ago
As far as the on-topicncess, there is a Code Review Stack Exchange, which would probably be a better place for a question like this. — Gregor Thomas just now
Before you post at Code Review, be 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 is for, 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 12 secs ago
18:09
0
Q: Best way to handle httpx.get exceptions

JDTI read this post about handling request.get exceptions: link I'm using httpx and have a similar question. Is the code below the best way to handle exceptions? Should I keep it simple and just go with HTTPError? url='http://www.google.com/blahblah' try: r = httpx.get(url,timeout=3) r.rais...

 
2 hours later…
20:25
0
Q: Beginner C# console TicTacToe program

Unlived172I've been learning to program in C# for a couple months and wanted some feedback regarding a project I completed. Criticism and constructive feedback is what I'm after, so bring it on! I know there are improvements to be made, but I'm not sure how to implement them without crazy repetition. Whe...

0
Q: Multithreaded natural language text parser (Rev.2)

Damir TenishevThis is the second iteration of the Multithreaded natural language text parser code review. Special thanks goes to G. Sliepen who conducted the first review. Before reading this post, please read the first iteration, since without it most of the text below doesn’t make sense. Functional specifica...

 
4 hours later…
23:59
Monking

« first day (3942 days earlier)      last day (370 days later) »