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

2
votes
2answers
32 views

PHP form validation for name, email, and Twitter handle

Given the following input values from a form, create a method or methods to validate the input based on their requirements. Throw an exception if any data is invalid. 1.1 ...
3
votes
1answer
61 views

Easy Game of Life project

I've developed easy Game of Life project. I'd highly appreciate any feedback and possibilities to improve my code, both in efficiency and style. It works on list and it's terminal program. ICell.java ...
0
votes
0answers
15 views

Writing simple base code for a program that keeps track of my work hours and pay in C [migrated]

When I compile my code it says that everything checks out but when I run it nothing happens. The program just runs until I kill the terminal. ...
4
votes
2answers
54 views

Python simple battleship game

I'm relatively new to Python, I decided to make a simple battleship game. Is there anything I should do to make it shorter, or in practice, "better"? ...
-4
votes
0answers
10 views

Scala spark add new column rdd containing matching values [duplicate]

I am a beginner in spark Scala . Given rdd1 and rdd2 ...
3
votes
2answers
83 views

Tail recursive FizzBuzz in Common Lisp

I solved FizzBuzz using tail recursion. Is it efficient enough? ...
0
votes
0answers
21 views

Remove IE8 compatiblity in HTML

I wrote Angular code and I know it's not optimal (I'm a new developer in Angular). The problem is that I just followed some web tutorial some I don't understand all what I wrote in my code. By the ...
-4
votes
0answers
27 views

Processing data spark scala function [on hold]

I am a beginner in spark Scala . Given rdd1 and rdd2 ...
-1
votes
1answer
32 views

Creating a calculator to multiply area of a rectangle/triangle using four functions [on hold]

I'm taking a JavaScript class and am having a hard time understanding why my functions aren't working (or, well, how to make functions work in general honestly). I need to make a calculator that takes ...
-3
votes
1answer
61 views

Four-function calculator with a text menu

This code works but I don't know if I am doing this correctly. I want to have a do-while loop for the menu and app. How could I ...
6
votes
1answer
32 views

Aligning out-of-sync subtitles

This is my 2nd program I wrote on my own, a pretty simple program consisting of two functions (those functions are not combined in any way yet though). The first function moves the display times of ...
3
votes
2answers
50 views

Parse Numerals from a String in Golang

I recently tried my hand at writing Go code for a project I'm working on. In order to help myself get a better grasp I decided to write a simple yet somewhat practical program for parsing numeral ...
-2
votes
1answer
44 views

Creating forms using angular

I am a newly developer in angular. I want to do some homework to create forms with Angular. I spent nearly a week to do it, but my teacher was not really satisfied about it. I tried to follow some web ...
9
votes
3answers
124 views

Pokemon stats calculator

I have a simple working (so it's not a hypothetical stub) framework for calculating Pokemon stats that will later be incorporated in a game. It uses the LCRNG from the first game in order to be as ...
2
votes
1answer
44 views

Print Trace Debugger

See my Scala print trace debugger. This project is used for lightweight debugging sort of like the Haskell Debug.Trace module. The README, the documentation, and the test cases need work. To test it ...
-5
votes
0answers
23 views

Solve Caesar Cipher using Ruby [on hold]

I am new to the Ruby community and would like to advice/help. I have been stuck for so long on this question I need some serious help. I have to write a function to solve a Caesar Cipher. I must do ...
-4
votes
0answers
19 views

Does this “Charge Account Validation” look accurate? [on hold]

Constant Integer SIZE = 18 Declare String account[SIZE] = "5658845", "4520125", "7895122", 8777541", "8451277", "1302850", "8080152", "4562555", "5552012", "5050552", ...
8
votes
3answers
455 views

“Magic Squares” assignment

The assignment is to take a "Magic Square" .txt file (where the horizontal lines, vertical lines and diagonal line all add up to the same number), read it and prove that they are in fact magic ...
1
vote
2answers
58 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
65 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 ...
7
votes
1answer
43 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 ...
7
votes
2answers
335 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 ...
3
votes
2answers
96 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
145 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 ...
3
votes
1answer
55 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
580 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
174 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
225 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
81 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
36 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
179 views
+50

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++ [closed]

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
625 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 [closed]

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
62 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
38 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: Gist of code ...
3
votes
2answers
120 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
48 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
29 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
30 views

Simple calculation program in assembly MASM

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

Acquiring user information about students and classes

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 student_id | student_name | hometown ...
3
votes
1answer
66 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 ...
15
votes
4answers
571 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
80 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
46 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
175 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
38 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
70 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
41 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 ...