TransWikia.com
  1. All Categories
  2. Code Review

Code Review : Recent Questions and Answers (Page 6)

Find answers to your questions about Code Review or help others by answering their Code Review questions.

Is Lock necessary to make operation thread safe for this scenario

I have the following method that is responsible for retrieving an Item from the database. There will be multiple threads instantiating this class, so I want to make sure that...

Asked on 12/08/2021 by BKS

1 answer

Census Data Display from Text File

This program is for a class project and requires me to read data from a text file then display a list of totals. Here are the instructions/requirements:The fields in each...

Asked on 12/06/2021 by proppaganda

3 answer

I'm just starting out with tasks. I need to know if there's a better way to do TAP for socket handling (serving a request)

I've got this quick and dirty little console app in C# to serve an HTTP/HTML page.static void Main(){ // create a socket var...

Asked on 12/06/2021 by honey the codewitch

0 answer

A task to store user's favorited projects in postgres using python

I am not happy with two functions calling get_user() since while testing I mock get_user and to test with get_user_returns_null case, it returns Null for both function calls naturally which...

Asked on 12/06/2021 by technazi

0 answer

Solving Fizz Buzz using Java

Problem:Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz"....

Asked on 12/06/2021 by user226918

5 answer

An app that helps determine lands in a Magic: The Gathering deck

Good evening, I'm new to Rust and would like some help refactoring this small app I made so that it's more efficient, even if it may be unnecessary. Basically...

Asked on 12/04/2021

1 answer

Return probability (Javascript)

I've been working on a personal project. There's this game called TFT which is an autochess game. Each match is played by 8 players and there's a...

Asked on 12/02/2021 by Stan Loona

2 answer

Weather map GUI application needs performance improvement

I am writing a python GUI application that plots weather data on a map for a specific region. It plots temperature, dewpoint, wind data, and icons that represent the sky...

Asked on 12/02/2021 by Benny

0 answer

LeetCode 124: Binary Tree Maximum Path Sum

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time!ProblemGiven a non-empty binary tree, find the maximum path sum....

Asked on 12/02/2021

2 answer

LeetCode 124: Binary Tree Maximum Path Sum 2

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time!ProblemGiven a non-empty binary tree, find the maximum path sum....

Asked on 12/02/2021

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP