« first day (1926 days earlier)      last day (2109 days later) » 

12:00 AM
RELOAD! There are 5491 unanswered questions (89.9517% answered)
 
12:21 AM
Performance related issues of a working code are in the scope of code review. — scopchanov 56 secs ago
If you have working code you're looking to improve, you should ask on Code Review instead. It's what it was created to do. — Ken White 27 secs ago
 
0
Q: recursive implementation of contain and insert in BST class

NinjaGI was asked about this question by my friend. so i decided to implement it recursively. I would like to get some code review. # Create a BinarySearchTree class # # The BinarySearchTree class should contain the following # properties: # # root:...

 
 
2 hours later…
2:28 AM
0
Q: Android mini game background handler

Niklas RosencrantzIn the same project as in my previous questions I have released a new beta ("0.1.24b") of the game we call "Moon Buggy". It is now possible to get the background to change when completing a section, so that you can reach the Future City. I was wondering if there is an "idiomatic" way to create se...

 
 
2 hours later…
4:13 AM
0
Q: Need third point of a triangle

Srinivas Sunder RajanGiven two points of a isosceles triangle and lengths of all the three sides what is the third point (if possible in programming code)

 
4:28 AM
0
Q: Vanilla JS Calculator for learning Coding Fundamentals

joltSince I am self taught, I would greatly appreciate some input on my code for this JS calculator: 1) what redundancies i'm failing to see and remove? 2) how is my naming for var's and functions? Is it clear or vague? 3) How is my overall readability? Is what i'm writing even clear, or is it hard t...

 
4:44 AM
-1
Q: How to save checkmark and call back after app restart

SkyCan anyone help me which part i need to add code for store checkmark data. Code as below: import UIKit //var toDoList = String class ViewController: UIViewController, UITableViewDelegate { let toDoList = ["Milk","Dog"] var myindex=0 @IBOutlet weak var ListLabel: UILabel! @IBOutlet weak v...

 
4:55 AM
possible answer invalidation by Vaibs on question by Vaibs: codereview.stackexchange.com/posts/201473/revisions
 
 
3 hours later…
7:59 AM
-2
Q: Dose Laravel consists of all the aspects of the (MVC) Model-View-Controller?

TooKoolTechI'm a new user to Laravel. I want to understand what parts within the Model-View-Controller are integrated within Laravel. Does Laravel only support the (MVC) Model-View-Controller?

 
8:14 AM
0
Q: iterator pattern in C# code comparison

GiladI tired to implement a iterator pattern for C# using Ienumerator and Ienumerable. implementation is from Pluralsight design pattern course I did the second implementation. they are very close however I wanted to know what would you prefer? thinking about code simplicity and also try to preten...

 
8:34 AM
Monking
 
Monking
 
9:23 AM
You might use the File Browser GUI as a basis if you'd like to try creating your own. — Andrew Thompson 31 secs ago
 
10:01 AM
0
Q: TypeError: Cannot call method "createStatement" of undefined. (line 2, file "read_from_db")

sphoenixI tried to write some scripts file using google-apps-script which will read and write data from and to mysql db. The workflow is: Work Flow I have a user's name, email, phone_number, a unique code. If a user with the same phone_nmber already exists in the db I won't update the column for the ...

 
10:45 AM
0
Q: TicTacToe game in Python 3

Chirag MI wrote this program in Python 3.I would like to know if there is some more functionality that could be added/removed/is missing.Any comments would be helpful! #Steps from user : """ Enter Input P1 and P2 Each time for input will be preceded by a printed board. The game will continue until an in...

 
11:36 AM
Monking
@SimonForsberg Had you seen this yet? Apparently some people don't like being watched.
-54
Q: Stack Exchange bots, created by a moderator, are creepy and violate the CoC

Jalapeno NachosA moderator has various bots that capture a bunch of comments, and these comments land up in various rooms that are in plain view of the community. I think this tactic is creepy surveillance and violates the CoC; it's not nice to keep everyone's comments on record, and then let other people (esp...

 
@Mast FWIW that question is about a different bot (namely one that watches Interpersonal Skills) and the logic in that question is rather abysmal
 
@Vogel612 I suspected it was a different bot (since the user isn't active on SO, CR or SoftwareEng). As for the logic in that question, it's not just that question, it's every question of that user.
 
"This is particularly important when some users may post comments that they subsequently wish to delete shortly after.", why do they even want to do that? If you want to post a comment which you also want to immediately delete, then please don't post it in the first place. — Bhargav Rao Aug 9 at 3:24
 
@CaptainObvious Broken.
 
11:55 AM
Monking
 
0
Q: What are the possible ways I can make this EF6 code more performant?

user2948533I am using EF6 in one of my projects. Let me first elaborate the requirement. 1. This is being used inside a RESTful web-API app which talks to the Oracle DB using Database First approach. 2. I have the following tables: Master Tables:RequestStatus,RequestType, Transactional Tables:Request,Dele...

 
possible answer invalidation by Papa beta on question by Papa beta: codereview.stackexchange.com/posts/201433/revisions
 
12:54 PM
@Duga Meh. Not really.
Besides, it's on request.
 
1:47 PM
0
Q: Is this a good/bad/ugly way of assigning unique IDs to objects in C++?

ZebrafishMy project has many different objects from different classes, and I want each object to have a unique ID. IDs should be unique within each class type, but can be the same among different classes. For example Foo object1 and Foo object2 must have different unique IDs, but Foo object1 can have the ...

 
2:02 PM
0
Q: Is it thread safe class?

dMilanDo I need locks in my code? Is it thread safe? I want to use for my multiple producers and multiple consumers model. Maybe Is It better to use a not concurrent collection with locks? public class QuueProvider { private readonly ConcurrentQueue queue; private readonly Conc...

 
2:20 PM
And at that point, I understand that maybe this question could be suitable for Code Review... — Alvaro Montoro just now
 
3:17 PM
0
Q: 2048 style game

J.Fitzi have made a replica of the game 2048. it works exactly how the game should work. However i was just looking to know where i could've possibly cleaned up my code? or make it more efficient. import random board =([0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]) def pieces_...

 
3:32 PM
0
Q: Artificial Intelligence Python Program

AjeshI have recently coded an A.I. in Python. I felt that my experience in the Python language was good enough that I should program something advanced. Snake? Too easy. Chess? Too easy. But then I had a great idea: why not make a A.I. ? main.py: print("Hello, world!") I know what you're all think...

 
4:02 PM
0
Q: BST implementation for insert (put) and contain (search) in python

NinjaGI was asked about this question by my friend. so i decided to implement it recursively. I would like to get some code review. # Create a BinarySearchTree class # # The BinarySearchTree class should contain the following # properties: # # root: ...

0
Q: Javascript Armstrong Number Validator (ES6)

Oguntoye I have the following function which takes in an input and validates if that input is an Armstrong number or not. An Armstrong Number is a number such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371 ...

 
4:32 PM
0
Q: Android : Inacurate custom "path finding" algorithm

esQmo_I'm developping a 2D grid based game (see it like the game Go, but very different), where two players play by placing stones by alternating turns in cells and try to enclose (make prisoners) their opponent's stones. Each player has its color, say red and blue. So bluePlayer places blue stones an...

 
First of all, this is best posted in the code review stackexchange. Secondly, I think it's fine. Just for speed, you can try CUDA GPU acceleration. — Benoit. B. Mandelbrot just now
 
4:48 PM
0
Q: Huffman Coding library implemented in C

psychedelic_alexI have written a small library for C that implements the Huffman coding algorithm as outlined in David Huffman's paper on Minimum-Redundancy Codes, and a small test program to implement it. The library consists of two primary functions, huffman_encode() and huffman_decode(), and a series of helpe...

 
5:03 PM
0
Q: How would I print this together?

Andrew ChmielewskiSo I am new to Python, so if you could advise me to change my code to be better, please do so. Anyways, I cant figure out how to print the text and the variable together. I would like it to show the example text of "Hello" and the variable after, so Rock, Paper, or Scissor. import random aipl...

 
5:33 PM
-2
Q: Javascript - Unable draw on my own SVG area

Felix McconerI have a trouble to know why my code is not drawing on my SVG area. When a client connected, he or she is able to connect and the x and y values of his or her drawing are sent over a server and drawn in my getCreateNewPath() function. This drawing is visible. But when I draw and the createNewPath...

 
5:46 PM
If your code is working and want review, post to Code Review. — Thomas Matthews 33 secs ago
 
6:03 PM
0
Q: Minecraft resource calculator

HobopowersI'm writing a basic program that calculates the total base resources needed to craft items in Minecraft. It's intended to be modular for support for modded versions of Minecraft (new items or different recipe's). To start, I created an Item class that will function as a base resource. A base res...

 
6:33 PM
While all of this is true how is it an answer to the question? This looks more like a code review to me. — Joakim Danielson 29 secs ago
 
7:01 PM
Thanks! I'm running it from the server on a local drive. I'll ask on Code Review. — Josh 40 secs ago
 
7:19 PM
0
Q: Get owner of ~5 million files and folders more efficiently using Powershell. This code takes days to run

JoshI've written a Powershell script that uses Robocopy to get the full path of all files on a drive and then run it through a foreach loop to get the owner for each file and generate it in a CSV. The code works, but is very slow when I run it against so many items. Can someone help me make it as e...

 
8:04 PM
0
Q: Finite State Automata

User319This is a non-deterministic finite state automata (NFA) meant to be used with a Regex engine. To show some example usage, suppose you wanted to construct an NFA for the regex (ad|[0-9])*. It might look something like this: ad_literal = NFA.from_string('ad') number_set = NFA.from_set({str(x) for ...

 
8:34 PM
-2
Q: command line program errror

vijay Bari jay#include<stdio.h> #include<stdlib.h> int main (int argc, char* argv []) { if (argc == 1) { printf("NO Command Line Argument Exist Please Provide"); } else { int i; for (i = 1; i <= argc; i++) { int value = atoi(argv[i]); printf("%d\n", value); } } } ...

0
Q: Count number of islands 2d grid. From recursion to Iteration

RickThis is a recursive approach using DFS to counting the number of islands. However, I would like to change it to iteration for performance, without adding too much bloat. var numIslands = function(grid) { const search = (row, col, grid) => { if (row < 0 || col < 0 || row > grid.l...

 
9:18 PM
This should (probably) be posted in Code Review instead codereview.stackexchange.com - IMHO. — Funk Forty Niner 49 secs ago
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.comMarcin Orlowski 25 secs ago
 
10:04 PM
1
Q: PHP Code Security Check

JoeI've written this bit of code that allows my users to search through a list of admins. Recently I've been trying to improve my security. I'm aware of prepared statements. 1. Is the code below vulnerable in anyway? 2. How can I improve the security? 3. Could I incorporate prepared statements ...

 
 
2 hours later…
11:54 PM
since it seems like you don't have any problem with your code working. the code review stack exchange might be a better place to ask for feedback codereview.stackexchange.comAndrew Lohr 49 secs ago
Yes, that is possible. 1st you need to make sure that the one opening the file have access in the sql database. 2nd, you need to set up a query in the form of stored procedure which accepts parameters. 3rd, you might probably need to invoke a parameterized query using ADODB. For further details, check this out. — L42 19 secs ago
 

« first day (1926 days earlier)      last day (2109 days later) »