« first day (4177 days earlier)      last day (36 days later) » 

12:20 AM
REFRESH! There are 5678 unanswered questions (92.6902 answered)
 
6 hours later…
6:26 AM
0
Q: Best practice for protecting routes in Next 14 using client Firebase Authentication

AndrianI'm working on a Next 14 application where I want to protect certain pages. I implemented client auth using Firebase so currently the authentication logic runs client-side to check if the user is logged in or not, and based on that, either allow access to the page or redirect to the login page. N...

 
2 hours later…
8:48 AM
Thank you! When I get comment in the code review why I am adding the required validator, I will use your explication. — Marc W 22 secs ago
 
3 hours later…
11:54 AM
possible answer invalidation by yurich on question by yurich: codereview.stackexchange.com/posts/293951/revisions
possible answer invalidation by yurich on question by yurich: codereview.stackexchange.com/posts/293951/revisions
possible answer invalidation by yurich on question by yurich: codereview.stackexchange.com/posts/293951/revisions
@Duga: Left a comment and rolled the code back.
12:09 PM
possible answer invalidation by yurich on question by yurich: codereview.stackexchange.com/posts/293951/revisions
possible answer invalidation by yurich on question by yurich: codereview.stackexchange.com/posts/293951/revisions
 
2 hours later…
2:18 PM
@pacmaninbw I've reworded to make that pedantically correct. You're right that close() doesn't return the stream, but I'd believed it was clear enough to be understandable. (Interestingly, flush() does return the stream, as a reference, so it might make sense to use that).
 
2 hours later…
4:33 PM
@TobySpeight Since Indy also posted about it. I did some checking on the internet. The code is significantly changed, doesn't default to an output file, but that can be specified on the command line if the user wants, rather than using the redirection of output from standard out. The code calls flush at the end every function and checks the result. I'll be posting the new version today or tomorrow for a new review.
I found out about swapping the rdbuf for a file and std::cout. The code only writes to std::cout but the command line can over ride the file buffer. The program now accepts a command line, the output now includes the command line to regenerate the file, even if the user inputs the data during the program run.
@TobySpeight You were correct, I needed to do research to understand. Getting too far behind again.
There are other changes, such as ALL typedefs are removed in both the generator and the generated code (Indy pointed this out).
Monking
5:02 PM
Monking
5:44 PM
0
Q: Figure/number to text converter javascript implementation

user287088Developed around chain of responsibilities design pattern, it consists of a series of converters returning arrays of string that could be used either to look up text mapped to the keys, for internationalisation, or to display the literary form of numbers. var formatter = (mapper) => { return ...

6:28 PM
0
Q: Type-agnostic configuration-table in sqlalchemy

FooBarI'm building my first bigger database-backend with sqlalchemy and need a table to store configurations (key-value pairs). Keys are strings, values can be quite different, and I'd like to keep the variable-type. This is what I came up with: class Configuration(Base): __tablename__ = "configura...

 
2 hours later…
8:39 PM
0
Q: Representing directions as an enum of immutable vectors compatible with numpy

minseongTo represent direction in a 2D word grid game (like Scrabble), I wanted to make a class that only has specified instances available and cannot be further instantiated (like an enum). I would also like the class to behave the rest of the time like a numpy array, so that I can easily perform vector...

 
2 hours later…
10:50 PM
0
Q: Custom Component Using MUI for a Comprehensive Grid Layout

cr4zI'm looking to get feedback on a React component that a colleague of mine wrote. It utilizes Material-UI components to create a dynamic grid layout, which includes various conditional renderings and props for customization. The component is intended to be flexible, but I am concerned whether the ...


« first day (4177 days earlier)      last day (36 days later) »