« first day (3797 days earlier)      last day (70 days later) » 

12:13 AM
REFRESH! There are 7053 unanswered questions (90.8749 answered)
3 hours later…
2:46 AM
@РоманГригорьев, the author of that article calls that an "implementation quirk", and that seems an apt characterization. The JLS does not require any such behavior, and (therefore) it is not safe to rely on Java implementations to behave as described without first verifying by code review, careful use of a debugger, or similar. — John Bollinger 31 secs ago
1 hour later…
3:50 AM
5 hours later…
8:51 AM
Q: Yet another shared_ptr implementation for learning purposes

Tomas TinteraC++ shared_ptr implemented as a coding practice and learning purposes. It uses std::shared_ptr interface. Basic tests are included (using single header Catch 2) Some methods are omitted to keep the code shorter and readable. For simplicity it's in expects C++ 20. See comments for more details. I...

9:41 AM
Q: LeetCode: Remove Duplicate Letters

eviracI'm trying to solve this question: https://leetcode.com/problems/remove-duplicate-letters/description/?envType=daily-question&envId=2023-09-26 which is Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in le...

1 hour later…
10:56 AM
Q: Clean way to check session is valid on each protected route in React application

CameronWe're experimenting with a purely client-side React application that uses sessions from a parent server app (Ruby on Rails in this example). This means we don't use anything like tokens stored in localStorage or sessionStorage and rely purely on the session that's stored via the cookies set by Ra...

11:09 AM
And by the way, is the code you show working (a hard requirement)? Then since what you're really asking for is a code-review you should be posting on the code-review SE (but make sure it's really on topic there). — Some programmer dude 10 secs ago
11:24 AM
Do you get any warning or info message when you hover over that variable? Might be some code review addon/tool that thinks you shouldn't use a local variable here at all and just get rid of it and do return new CheesePizza(); etc. pp in your switch cases. — OH GOD SPIDERS 45 secs ago
2 hours later…
1:19 PM
I'd second the suggestion to get a code review. There are quite a few points where the clarity of the code could be improved, which could also make it easier for an optimizer (be it the one in the compiler or a human) to improve it. I'd also assert() assumptions, as part of these improvements. — Ulrich Eckhardt 40 secs ago
2 hours later…
3:16 PM
3:58 PM
Q: Abstraction level with generics

user3239193I have a use case where a verification batch job (non-generic) verifies domains based on its input e.g domain_type, batch_pointer etc. The verification handles it based on the domain type which uses generics. class VerificationJob { public void execute() { String domainType = "user"; ...

4:44 PM
5:00 PM
I’m voting to close this question because open ended questions that ask us to review working code belong on Code Review not on Stack Overflow. — cafce25 35 secs ago
If your code runs without error and produces the correct result then you may get better feedback on performance, style, technique if you repost your question over at the Code Review StackExchange. — Woodford 9 secs ago
1 hour later…
6:18 PM
@CaptainObvious @TobySpeight OP modified title
@SᴀᴍOnᴇᴌᴀ ??Huh?? Yes I did modify the title.
and then in their second post they continued using a generic title
...until Toby left a comment
when I update a title I frequently leave an auto-comment about it for the OP
@SᴀᴍOnᴇᴌᴀ I understand now.
in my auto-comments I often include a link to the revision where I modified it, although the anchors currently are below the element containing the revision number... which is why I made this request on MetaSE
Q: Add anchors to the top of each revision element on the timeline pages

Sam OnelaWhile in response to the request Add anchors to revisions it is apparent that there is a link to each revision I often prefer to link to a revision within the context of the entire timeline of the post - for example, so the differences compared to previous versions are visible. I see that there a...

7:19 PM
Q: minitalk project using Rust | Communication between process using UNIX Signals

bykI am trying to build minitalk project from 42 school using Rust instead of C. This is a communication program between a client and a server. Both are process. To achieve this I am only allowed to use UNIX Signals SIGUSR1 and SIGUSR2. While I got help to achieve this, I would appreciate an externa...

7:42 PM
Welcome! If your code works, this is better suited on the Code Review stack. — Chris 10 secs ago
2 hours later…
9:26 PM
Those who control SO are dead set against downvoting being explained. It could be that some feel like SO is for code that does not work or is broken in some way. They may reason that you have something that works, so move on. You might want to try on codereview.stackexchange.com. — lit 14 secs ago
9:50 PM
Q: Iterating the octree while keeping track of the positive neighboring nodes

user16217248Review context can be found here: 32x32x32 Units Octree With 15-Bit Voxels: Second Edition The above question and the self answer include information such as the definition of the Octree and Node8 data structures, MAX_LEVEL, DATA_MASK, and FLAG_MASK macros, and an overall description of this syst...

10:20 PM
If this is working code then this is probably a better fit for Code Review. — David 21 secs ago
11:05 PM
Am I being to hard on the user in this answer?
if you don't need the use of the bitmap, you can discard it. You have redundant directory operations where you set the current directory, to the current directory. Graphics object disposal inside the PrintWindow function may not be necessary immediately after using it. The using statement will already dispose of it once it goes out of scope. Explicitly calling gfxBmp.Dispose() can be removed. Saving to a JPEG or PNG is generally faster than saving as a TIFF since it usually results in larger sizes. This question really belons in codereview. — Abraham Zinala 5 secs ago

« first day (3797 days earlier)      last day (70 days later) »