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
0answers
19 views

Player classes for a playing card game

I have a simple base class and two derived classes. However, when I'm creating new instances of that class, the line where I instantiate the variables is getting way too long. I have it on two lines: ...
5
votes
1answer
33 views

Text-based Dungeon Crawl game

This code is an answer to an exercise I found on the cplusplus forums. I'm a beginner so any reviews will be appreciated :) Make a program that outputs a simple grid based gameboard to the screen ...
5
votes
1answer
19 views

CS50 pset-1 itsa Mario - make a half-pyramid using parameters from user input

I'm taking Harvard's introduction to computer science (CS50) course online, and I've written a program that satisfies a coding challenge but I don't understand what I did or how I can improve it. I'm ...
6
votes
2answers
234 views

Program to index a book

Indexing a book. Write a program that reads in a text file from standard input and compiles an alphabetical index of which words appear on which lines, as in the following input. Ignore case ...
2
votes
2answers
69 views

Beginning C# dice game

I've been learning C# for about a month and have a finished game. I would like some constructive feedback on my progress so far. ...
3
votes
2answers
125 views

“Guess my Number” game in Python (2.7.9)

First time posting to Code Review. Just looking to get some advice on how I can write better code. I found the following exercise for a "Guess my Number" game on DaniWeb, but the linked source code ...
1
vote
1answer
47 views

Method to convert numbers into plain text

I'm relatively new to Java, and over the past week or so I've just been reading through the docs and messing around with it to better improve my understanding. As stated in the title, I've created a ...
2
votes
7answers
553 views

Producing triangles of asterisks based on height

I have created a simple terminal program: it allows the user to enter a height and it will produce triangles of asterisks (*'s) based on the height. I have just started learning C# as practice for my ...
4
votes
2answers
165 views

C# Winform Amazon Application

This is my first program I've written ever. Don't hold back on me. Any help and feedback is appreciated. This code wont work because it requires some keys, but I censored them out, but it does ...
6
votes
1answer
215 views

C# Bitwise Operators

I have a simple program that calculates and outputs the results of all the bit operators. I'm planning to send it to my friend and to explain some stuff about them to him. Before I do that, I want to ...
0
votes
2answers
77 views

Morse Code Translator in C#

I'm writing a Morse code translator for homework in C#. I understand that this code may look horrible, so how could I improve it in terms of efficiency and readability? The program takes an input ...
-4
votes
0answers
32 views

Loading a huge number of images in the View [on hold]

I have to just load huge number(1 million) of images in a view. My app is fetching the images from api call using background jobs but my app is getting very slower when I load the view it is taking ...
6
votes
2answers
132 views

WinForms Poker (complete project)

I have quite huge question/favor to ask but I hope I can get some useful answers. This is my first complete project, I'm still learning C#, my first programming language. I'm afraid that there will ...
-2
votes
0answers
23 views

I am a begginer at using JavaJ++ [on hold]

My teacher wants me to create a Windows/Console application that asks the user to submit the correct password. Textpad keeps on marking errors in my coding. I would like to know more of how to use the ...
6
votes
2answers
615 views

Simple customer program in C (using binary files)

I have just finished a simple C program which is basicaly composed of 3 functions: accadd(void){} which adds some customer details to a binary file ...
-2
votes
0answers
25 views

Assigning distinct random numbers to variables [on hold]

I'm attempting to generate non repeating random numbers between 1-5, 1-10, 1-20, etc. I'm on to the Fisher-Yates Shuffle but I'm not sure I've implemented it in the best way. My plan is to associate ...
5
votes
1answer
59 views

Text Based: Player vs Player Tic-Tac-Toe

Just looking for a review on my code, its currently only player vs player, but I'll be working on the AI soon enough. Functions edit_name, tutorial, and AI have been left out as I haven't started work ...
2
votes
0answers
27 views

Android app that listens for commands over a socket

I've just begun programming Java and I'm working on the following code that deals with socket-based communications. Basically it connects to a client on port 8888: ...
2
votes
2answers
73 views
+50

Driving equation output from select input boxes via JavaScript and HTML

I would like to create a simple interface to allow a user to make a few choices via select boxes and drive a resulting equation. Here's a screenshot: This is a gross simplification and I am ...
3
votes
2answers
46 views

Resets Rows to default values if column A is missing a value

I have this Subroutine that works, but I have recently started updating the sheet and adding new columns. I'm finding updating the current macro to be a bit of a chore. Is there a way to use named ...
1
vote
0answers
27 views

Student/Class App Java/MySQL

I posted a question about this code yesterday and have made several updates. I'd just like to know if there are any other major errors or spots for improvement. I have three MySQL tables: ...
1
vote
1answer
25 views

Simple calculation program in assembly MASM

I am a beginner in assembly. This program calculates: (Z+Z)+(X-Y) ...
9
votes
3answers
646 views

Student/Class Project Java MySQL

I have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables: students ...
3
votes
1answer
65 views

Age Calculations (First Draft)

I found another user asking for an application to be written, it sounded simple enough and a good way to "work out" my C# "muscles" and try to get them into a better "shape". I really liked the idea ...
14
votes
4answers
545 views

Generating formatted multiplication tables in C++

I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want ...
5
votes
2answers
74 views

Document term matrix in Clojure

This is my very first foray into Clojure (I'm normally a Python-pushing data-type). I'm trying to create a simple term-document matrix as a vector of vectors, out of a vector of strings. For those ...
3
votes
1answer
45 views

Number-guessing game with betting

I'm really new to programming, currently following several tutorials and guidelines. After a couple of days of studying, I've learnt the basics of Java and conditionals and took on my first program. ...
5
votes
3answers
166 views

My first finished Python program: a deck of cards

I've recently started learning how to code in Python, and have even more recently learned the basics of object-oriented programming. Feeling inspired, I started on a program that would generate random ...
1
vote
1answer
37 views

Mapping and sorting lists of Haskell tuples

I'm a newbie with Haskell and I'm trying to learn the language and its idioms while working through a small data analysis project. The first step of my analysis is to take a very long list of data, ...
5
votes
2answers
68 views

Electrocardiography simulator

I am tring to learn coding in clear way. I developed easy application to simulate EKG. I would like to ask some experts, if the code is clean and if they have any suggestion, what could I improve. ...
5
votes
1answer
51 views

Given a monetary amount, calculate the equivalent change

I have written a program that takes in some amount of money, and prints the equivalent change (starting at hundred dollars, to fifty, to twenty, down the pennies). Here is the code: ...
-1
votes
0answers
40 views

Laravel 5 package structure

I'm new with laravel and created my first package, which is a simple cms system. The package is nearly finish and I want to know if I followed the right conventions. What did I wrong (in the code or ...
2
votes
2answers
48 views

Program looks for correct balance of ( [ and { in expression

I'm still new to programming. (First exposure was school about a year ago), and for some reason this problem really gave me a lot of problems trying to solve it. Can you help me understand what I ...
3
votes
1answer
38 views

Angular JSON weather app

I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint. Here's the HTML: ...
2
votes
2answers
56 views

Extract higher value of pair from JavaScript array

Say we have these data: ...
5
votes
2answers
365 views

Beginner word-guessing game

I have the following code. Aim is to guess a four letter string. Each letter can be tried four times. If the letter cannot be guessed, we go to the next letter until the fourth letter is reached. I ...
3
votes
2answers
28 views

K&R C Exercise 1-14: Histogram of the frequency of types of characters

This is for K&R C Exercise 1-14: basically asking to create a program that prints a histogram of the frequency of types of characters. This is done with very basic C functions/knowledge as covered ...
9
votes
1answer
630 views

Simple one heap Nim game, OOP exercise

I wrote this game to practice some simple OOP. You play against the computer, but be aware that the computer has no real AI, as it just generates its moves randomly. The loser is the one whose turn it ...
3
votes
2answers
73 views

Generating a 2-variable truth table and performing boolean arithmetic

My code currently generates a 2-variable truth table and lets the user select to AND/OR/NOT the variables. I was looking for advice on how to make it more concise, handle bad inputs better, and ignore ...
8
votes
2answers
341 views

Prime factorization of a natural number greater than 1

I am a math student who just started learning Java a week ago. I want to write a program in Java that return a prime factorization of any natural number greater than one. After spending some time ...
2
votes
1answer
50 views

User registration factory for AngularJS + Firebase app

The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database. Subscribers to a mailing list were ...
2
votes
1answer
55 views

Creating new team matches

I have a class which creates a new match. My problem is that I am sure the code is unnecessary long and can get much improved (just keep in mind it is beginner level). Specifically, I would like to ...
3
votes
1answer
92 views

Clickable and automatic image slider

I created a slider that fades images automatically but you can also click to see the next or previous image. It already works how it should. But I think my code is really heavy. I am not experienced ...
5
votes
2answers
133 views

First Tic Tac Toe game

I've been learning Objective C for a few days so to test my skills I went ahead and made a simple Tic Tac Toe game using the console. I already have some experience with languages such as C++, Java ...
1
vote
1answer
48 views
3
votes
3answers
54 views

Simple string repeater program

I'm new to C, want to know if I'm doing this right. ...
19
votes
3answers
506 views

Stack Exchange User Activity Score

About This is a SEDE query which will calculate your activity and participation on a site. It's geared for Programming Puzzles & Code Golf where questions are values more, but the values can be ...
5
votes
2answers
49 views

Divide a clock signal by 8

I'm a fresh verilog / HDL programmer and I'm writing this post to get some feedback from more experienced verilog / HDL programmers. My very first task was to divide a clock by eight. I know there ...
3
votes
0answers
41 views

Python Script to query OSRM (drive-times)

The below script takes two arguments Path to the OSRM Map Path to a .csv containing the columns ...
11
votes
5answers
591 views

Replace many Outlook email rules with a script

I as well as several of my colleagues have had an ongoing problem where we get bombarded with hundreds if not thousands of emails each day with come from automated services, such as SQL DBmail and ...