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.

learn more… | top users | synonyms

1
vote
1answer
40 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
24 views

Python Simple Math While Loop [on hold]

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
44 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
102 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
30 views

Sunrise calculator [on hold]

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
578 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
255 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
46 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
26 views

trying to make a Sudoku Solver with the recursive backtracking method [on hold]

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
58 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
48 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
204 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 ...
-1
votes
0answers
9 views

How can I compute the Wald Test statistic based on what I have so far? [closed]

I have to simulate an AR(1) process with $\rho = 0.5$ and then estimate $\rho$ based on the first 100 $X_T$ values I did this the following way: ...
4
votes
1answer
58 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
165 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
55 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
162 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
38 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
26 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 ...
-6
votes
0answers
35 views

Python Indentation Issue [closed]

I'm having a problem with an indentation in Python 3.x. For some reason the three print statements after 'Deductions' end up indenting at increasing rates, despite the fact that .format parameters are ...
2
votes
1answer
49 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 ...
9
votes
3answers
803 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
47 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
125 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
98 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
267 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 ...
6
votes
2answers
89 views

Sudoku challenge driver program

For my planned Sudoku with Handicap challenge over at codegolf.SE, I need a driver program. I've decided to write it in Python, for learning purposes. Since I've got no Python experience, I thought I ...
3
votes
2answers
44 views

Caesar Encryption Tool

I'm newbie in Python and I wrote a tool called Caesar Encryption Tool. At the moment it only encrypts. It takes a plain text and a key from the user then encrypts the plain text using the key. How can ...
3
votes
1answer
65 views

Printing a Φ pattern using * characters

So I am a newbie obviously, This was part of a small assignment I had to do for Uni, and it works alright. It just reads a number from the console and then outputs the Greek letter Φ (sort of). Sure ...
2
votes
3answers
63 views

Prim's algorithm in CoffeeScript

I'm just starting to learn CoffeeScript and am trying to work through simple examples, this one being Prim's algorithm. I'd like feedback on everything but especially on making this script take ...
2
votes
3answers
146 views

Calculate the perimeter and area of regular polygons and circle

My first real program in python, so probably needs a lot of work. I've been taking a class and it's really slow and I was self taught most over past 2 weeks. Anything I should do differently? ...
3
votes
2answers
33 views

JavaScript program to find if array is in Arithmetic or Geometric sequence

Given an array of numbers I've to write a function to return the string "Arithmetic" if the sequence follows an arithmetic pattern or return "Geometric" if it follows a geometric pattern. If the ...
5
votes
2answers
619 views

Calculate someone's pay, including overtime

In this problem, you need to calculate someone's pay by multiplying their salary (double)by the hours (int) worked. If they worked for more than 8 hours, you pay them 1.5 times their salary for ...
1
vote
1answer
72 views

Re-use of read/write object , for multiple objects

I have read a lot about serialization and I cannot figure out how I am able to serialize then deserialize multiple objects. I am very much a newb to Java, so please bear with me. My code currently ...
0
votes
2answers
114 views

Return the last digit of a number

public static int lastDigit(int a) { a = a % 10; if (a <= 0){ a *= -1; } return a; } This is my solution. The course hasn't taught if else ...
6
votes
1answer
40 views

Login validator class

I'm trying to learn more about object oriented programming and I have a few questions about the class below. I'm working in Visual Basic.NET My questions are Is there a better place / way to show ...
5
votes
2answers
75 views

Getting products by category, price, etc

I have the following concerns: Is Set a good choice for getting products? What are drawbacks of Set for this purpose? Is it ...
0
votes
1answer
60 views

Thread safe log class which creates log files according to the current date when entry was added

From this question and some help I created a thread safe logging class on which the name of the log file is same as the current date (short date) when the log entry was added. e.g. If I create ten ...
3
votes
2answers
41 views

Rosalind string algorithm problems

I've been starting to learn Rust by going through some of the Rosalind String Algorithm problems. If anyone would like to point out possible improvements, or anything else, that would be great. There ...
5
votes
2answers
504 views

Thread safe logging class in C# to use from DLL

I tried to sample up a logging class from this question and answer(I want to use this class from C# DLL). Made slight modification mainly to file name, and also how data is written. I am interested if ...