I have been wrapping up the markup for my personal electronics hobby project website, https://www.salvagedcircuitry.com. I write about designing, repairing and producing electronics, along with some mechanical projects. I wrote the site from scratch with a goal of being as lightweight and fast as...
I created the below class as a convenient way to create instances of PDO that I then inject into the classes that need access to my database. Instead of doing $this->db->pdo in subsequent classes, I overloaded the call method, but I've been reading in some posts that it's a bad practice. Would it...
I have finished with my product but I am not that trained in refactoring, cleaning up my code and spot redundancy so I would really appreciate some help.
namespace Product_manager
{
// Product class represents a product with category, name, and price.
class Product
{
public Product(string categor...
(a) this isn't a code review site; perhaps you want to ask on Code Review, and (b) you will need to include your code in your question. — larsks38 secs ago
Hi and welcome to StackOverflow. Once you include your code in question, it may be a suitable entry for codereview.stackexchange.com as mentioned above. Unless you have a specific programming related problem, this is the wrong site. Please consider deleting your question, or edit it so that it constitutes a programming problem. — Hubert Grzeskowiak50 secs ago
Hello this is my school mini project a pyhton calculator, i was hoping it could be reviewed professionaly and lines i would need to work on be pointed out.
I also have been trying to make the calculator infinte so i do not need to write a new line of code everytime i want the user to be able to c...
It seems to me this question is more suited to be asked in the Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh6634 secs ago
I gathered a lot of information in order to try to make my code as secure as possible, and I would like to know what I can do to improve more its security. (Sorry for my english if it's bad)
What did I do:
Only logged-in users will be able to upload images.
If a user has uploaded more than 10 im...
I have this Spring WebClient:
@Configuration
public class WebClientConfig {
@Bean
public WebClient.Builder webClientBuilder() {
return WebClient.builder();
}
}
@Autowired
public WebClient webClient;
public Mono<Response> getResponse(......) {
HttpHeaders head...
Context
As part of our React application, in which we use functional components, we encountered a scenario where we needed to debounce parts of a DOM event listener for usability purposes. The actual scenario is a bit complex but I'll be simplifying it in the next sections for the sake of the que...
https://codereview.stackexchange.com/questions/286174/shared-ptr-implementation-code-first-cut?noredirect=1#comment569685_286174 Not sure, but I feel like this comment was a bit heated?
> Oh, really? God, I hadn't thought of that! Seriously, any constructive critiques welcome, on what is CLEARLY a coding/learning exercise here. @freezePhoenix no need to provide any more input.