Add this tag to your question to indicate that you are new to the language of your code. This will often be taken in to consideration by reviewers when assessing your code.
3
votes
0answers
15 views
Sokoban text clone
I rewrote this simple, list-based Sokoban implementation a few times, trying to make it better. Right now, I'm stuck without ideas, but I still feel there is room for improvement, specially in ...
6
votes
1answer
87 views
React.js components for golf
So I've recently started to look into react, I feel like I'm understanding it, but I want to make sure I'm doing the best practices before I make too many bad habits.
I'm using the ...
6
votes
1answer
143 views
Saving data in local storage
I have written a small library for saving data on local storage. I am still a learner and I am not sure whether my code is OK for a production level application.
...
2
votes
2answers
28 views
Moving a clock forward
I am taking a Ruby class and our assignment was to write a class that takes two users inputs (1. the time, 2. the amount of minutes to move forward). Then based on the two inputs forward the time by ...
5
votes
1answer
40 views
Affordability/Mortgage Calculator
I'm working on a class project for my intro to Java class. My background is in accounting/finance so I decided to make this simple calculator that helps the user decide what they can afford and how ...
0
votes
1answer
33 views
jQuery Plugin options
The user can provide a JSON object to configure the plugin when they initialise it. I want those options to be available whenever a plugin action is performed.
I have read the plugin documentation ...
1
vote
1answer
27 views
Handling 8 toggle buttons in a point-of-sale application
I am self-taught and trying to improve my programming skills. My project is a point-of-sale application, with lots of buttons. I am curious how improve this section of code, as I seem to be going ...
1
vote
2answers
51 views
5
votes
2answers
49 views
Statistics with Python
Write a program to determine the mean, median, and standard deviation of a list of numbers
Count the duplicate numbers in the code, listing any that occur more than once with the number of times ...
2
votes
0answers
51 views
Bitmap to base64 and writefile
I have the following code which does 2 things:
Return a scanned fingerprint as base64
Store this print as bitmap
While the code works most of the time, sometimes an invalid bitmap is saved (I ...
3
votes
2answers
35 views
Auto backup Chrome bookmarks
This script, once added to the Windows Scheduler, automatically creates a backup of your Google Chrome bookmarks.
...
3
votes
1answer
47 views
Video frame to Minecraft map colors
I'm still somewhat new to C, so pardon me for any silly mistakes I've made.
I'm trying to convert video frames into Minecraft map colors using JNI and ...
6
votes
2answers
49 views
Beginner Hangman in Python
I'm new to programming (just about 2 months), and have been trying to learn as much as I can as quickly as I can.
I made a little Hangman game as a practice project this weekend. It doesn't have ...
-4
votes
0answers
13 views
How do I delete a node from a binary search tree? [on hold]
I'm trying to delete a node from a binary search tree and I keep getting stack overflow. Please let me know if you see any glaring errors.
Here is the method:
public void delete(T x) {
...
4
votes
2answers
65 views
Reverse all the words in a given string
I have read this and I want to know how the solution that I came up with in my interview compares with the top solution.
...
3
votes
2answers
14 views
Multiple server FTP download class
I've written this a short time ago. Do you see anywhere I can improve my logic? This is my first python script.
...
-3
votes
0answers
20 views
Sales Tax Problem help Needed On OOPS [on hold]
Hi Guys I am new to OOPS , just tried to solve a below problem two listed on below link : http://www.dotnetspider.com/forum/93884-plzz-provide-code-for-below-problems.aspx
Please provide me the ...
1
vote
1answer
46 views
RadioButton Selection Extremely Slow
I have a DataGrid that I filter when the user inputs text into a search box. The column that is filtered is based upon which radio button the user selects (Name, Town or Post Code). Although initially ...
-2
votes
1answer
39 views
Python Simple Math While Loop [closed]
Write a program in Python that defines a function that takes a single argument, a positive integer (you can assume all integers entered will be positive, you do not need to check). The function ...
2
votes
2answers
53 views
Simple text game
I am new to coding and am working through Learn Python The Hard Way. I wrote a simple text game as instructed. The logic appears to be sound. I played through it and didn't run into any dead ends. ...
-1
votes
2answers
117 views
Use NLog from different classes in a DLL
I started using NLog. I wrapped NLog inside an internal class, for my own needs.
Is my implementation and usage correct?
If ...
0
votes
0answers
36 views
Sunrise calculator [closed]
I'm taking a stab at learning Swift, and thought I'd ask for a code review. Basically, can you look at the code and tell me whether where the novice errors are, and what I should be doing instead?
...
4
votes
2answers
594 views
Simple FIFO and LIFO ferry simulator
I am trying to make a ferry simulator with one ferry that works like a stack and another like a queue. I have a working class for stacks and queues with pop/push; I am trying to figure out how to ...
2
votes
4answers
262 views
Implementing a thread safe log class with simple functionality
I have finally assembled an attempt to create a thread safe logging class and also ensured by file flags that file should not be accessed by different processes at same time. This classed will be ...
2
votes
3answers
48 views
Search dictionary by value
I have a dictionary which I use to lookup my binary and ASCII values (from A - P). It works, but my ascii2bin function just doesn't really feel right (and ...
0
votes
0answers
28 views
trying to make a Sudoku Solver with the recursive backtracking method [closed]
I am a complete beginner, and Im just trying to learn general coding skills. I picked a sudoku solver as an intro project to get a grasp of java programming, but I cannot quite get it to work. Could ...
0
votes
0answers
13 views
Better way to template in simple coffee script
I am looking to see if there is a better way to refactor the creatMessage such that the logic of identifying message elements is outside the actual message ...
5
votes
1answer
62 views
Printing a staircase of text
So basically, a user is prompted to input a number of stairs and a staircase when a guy on it is generated. I know this is sloppy and my variable names are rough, I'm actively working to change them ...
5
votes
2answers
51 views
Simplified DES encryption
This is one of my first Python scripts and I was wondering if it meets the correct conventions. Also are there things that you would write different? I am looking for some good comments so I can start ...
2
votes
3answers
209 views
DataGrid Filter Method Very Slow
I'm having a lot of trouble in my Database program with trying to implement an effective DataGrid filtering method. After taking advice from a previous code review I'm trying to implement a DataModel ...
4
votes
1answer
63 views
Airline Reservations
I am looking for general feedback on this small, simple program I wrote. It works perfectly, but I am striving for readable, clean code. I also have specific questions:
(1) Is the 'switch' ...
4
votes
1answer
167 views
Print and calculate French written numbers from 1 to 1000 using imperative Java
I've written a little (imperative) java program that basically prints out all french written numbers from 1 to 1000. (I'm learning how to write them)
Based on the first numbers (1-16) and the tens ...
3
votes
1answer
58 views
Befunge-93 interpreter in Haskell
This is an interpreter that takes in a slightly altered Befunge-93 (no input from the user, no limits on size and division by zero defaults to zero).
I'm currently looking at the state monad and how ...
12
votes
1answer
172 views
Printing large numbers, or not large but LARGE
I just started learning Java about a month ago. I'm wondering, what would an experienced developer do differently in the code below? As I learn to code, what direction should I be pushing myself?
I ...
4
votes
2answers
45 views
m3u file collector
I'm new to Python and wrote this code for collecting all files in an m3u (playlist) file and copying them into a directory.
...
0
votes
1answer
39 views
Filling TextBoxes from a WPF DataGrid
I have a very basic method at the moment that fills text boxes with data relevant to the selected company. I load the data into a DataGrid using this method;
CompanyDataService
...
8
votes
2answers
418 views
Tic Tic Tic Tac Tac Tac Toe Toe Toe
I created a Tic_Tac_Toe class to play the game Tic Tac Toe.
Is there a better way of coding a game like this? I started learning python 5 days ago and my knowledge ...
4
votes
2answers
101 views
Password generator script
What I was trying to do here was create a Python script that would generate passwords with 16 characters with uppercase and lowercase letters, and numbers. The generated password would then write ...
2
votes
0answers
28 views
Quartz2D, circular slider performance optimization
I have a circular slider. Each time i move finger i call [self setNeedDisplay], get new angle to change handle position and mask arc. When i move very fast my CPU load about 70%, it's very hight as ...
2
votes
1answer
50 views
Trying to do Type-Driven Development in F#
I've been wanting to try out F# for some real world programming so I decided to try rewriting a program that is being used at work.
It can be reduced to a few steps:
Get report templates.
In this ...
3
votes
1answer
41 views
Converting polar coordinates to Cartesian coordinates
I have a functional script that converts polar coordinates to Cartesian coordinates and then matches a value in a separate array to the coordinates. It works well, but I find that it takes a long time ...
4
votes
2answers
38 views
Basic Bill of Materials schema
I've been working on Bill of Materials mini schema for a while. At first I had single Part table where I've referenced itself. I was told it would be better to have ...
10
votes
3answers
820 views
TCP Client Class implementation in C#
I tried to implement following class which should handle connecting to a server, as well as sending and receiving data.
Your feedback is welcome. Please note I am beginner in .NET and don't give too ...
3
votes
2answers
50 views
Program based on a physics concept
I am a beginner and I wanted to make programs that would help me while I learnt Java. I made a program to help me in my assignments. Any suggetions?
Main method
...
1
vote
1answer
37 views
Kruskal's algorithm
I'm working through Coffeescript implementing simple algorithms (started with Prim's as reviewed in this previous post) and wrote out Kruskal's algorithm as below, with a few helper functions. I'd ...
2
votes
1answer
62 views
Database Connection Program
Earlier today I asked a question as a guest (whoops) regarding my Database program. I could not comment nor post again asking for further advice from the people that answered my question. I have ...
5
votes
3answers
132 views
MySQL-to-PostgreSQL migration script
I'm working on a Python script to migrate a MySQL database into a PostgreSQL database with a different Schema (different table structures, different datatypes and so on).
I'm a sysadmin and ...
2
votes
0answers
28 views
Scala - Console User Interface Framework
I've been learning Scala and I'd love to get your feedback in order to improve. As an exercise I made a simple framework for creating command-line user interfaces.
Any and all comments are welcome, ...
3
votes
2answers
100 views
Database Connection Program With HR Functionality
I've started writing a fully functional Database program in C# that allows a user to access a HR system (with more systems planned in the future). I have come over to C# from Java around two weeks ...
7
votes
3answers
269 views
Shrinking and expanding square
I'm a computer science student who's just starting out with algorithms and their implementation. I wrote this code for a dynamically morphing square. I was wondering if I could get a review on it. I ...