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

3
votes
1answer
23 views

Limiting the number of text fields created

I need to make sure that the max of text fields created is limited to 10 at most. It's a script that I've ripped off elsewhere, and have modified it via help from StackOverflow on a couple of other ...
0
votes
1answer
32 views

AngularJS to-do list controller

I am new to Angular. Am I following best practices here? I understand controllers should not do too much. My controller seems to have a lot of logic here. Can I do anything to improve it? It is just a ...
0
votes
0answers
22 views

jQuery form validator

I am new to the world of jQuery plugins, I don't know why I didn't get into this sooner. What I have a working validator that validates bootstrap styled forms. What I have discovered is that the way ...
5
votes
1answer
47 views

Hangman with ASCII

I have just made a game called Hangman. I have added some stuff which people don't normally use, like cheat-code/s, time.sleep(). How can I improve this, in both ...
-4
votes
0answers
17 views

Camel game not updating correctly [on hold]

I am a beginner in Python and coding in general. I wrote a version of Camel based on instructions and am having a hard time figuring out how to update how far behind the character the natives are. I ...
6
votes
1answer
63 views

Python snake game

If anyone has the patience to take a look at my first python snake game, I'd be very grateful for any feedback. I am fairly new to programming and Python, but am looking to improve so any constructive ...
-1
votes
0answers
43 views

Text-based RPG game skeleton [on hold]

I'm new to programming and I wanted to try my hand at it. Right now I have not gotten very far, but I'm working on the foundation. The model I'm following for this game is borrowed from other ...
6
votes
1answer
77 views

Console Calculator in C#

This is a calculator I've made in C#. Is there any way to improve it? Surely there is a way to get rid of all the ifs that are nested inside one another. ...
6
votes
3answers
633 views

Chess game in Python

I have programmed for 2 months, and I began writing a Chess game. I am a beginner programmer in Python, so please assess my code. ...
1
vote
0answers
28 views

Function that reorders the columns of a matrix

The objective: Given an m by n matrix, I have written a function in Matlab that reorders the columns of the matrix to output linearly independent columns; other/redundant columns. Basically, it just ...
5
votes
1answer
46 views

Caesar Cipher encryptor using ASCII

I have built a Caesar Cipher in Ruby that utilizes ASCII for the encryption. I am not sure whether or not this was the best way to go about the task but this way made the most sense to me. Please give ...
-1
votes
0answers
10 views

How to combine these 2 processes into one [closed]

i'm extremely new and learning via self taught method. essentially forcing myself to use python / powershell when capable. This creates a new file but omits any line that contains text i specify in ...
8
votes
3answers
655 views

Computer guesses the user's number

After the feedback for my last script, I realized I should be using functions and trying to adhere to the style guide. I tried to do that here, though still very beginner. The rounding in Python ...
2
votes
3answers
57 views

Know the limits of an image after rotation

I have an image which I know the number of rows and the number of columns. I would like to calculate the limits of the new image after a rotation. ...
2
votes
3answers
133 views

Printing a text rectangle

I'm starting C as my first language and am just under halfway done the book I'm using. However, I commonly hear about 'bad' programmers and 'bad' code whenever I encounter any sort of programming ...
4
votes
1answer
46 views

Prefix Sum in Ruby, Genomic Range Query from Codility

I'm currently going through some lessons on Codility. I've just spent a couple of hours with GenomicRangeQuery, which is intended to demonstrate the use of prefix sums. The task description is here. ...
0
votes
1answer
37 views

Working with Exceptions Exercise

The task: There is an AccountManager that makes transfers. It receives 2 arrays of the same size: accounts and sums. They need to be transferred to the accounts ...
4
votes
3answers
37 views

Balanced expression checker

This program detects whether an expression is balanced or not. I would like to know how I can make this more efficient. ...
2
votes
1answer
37 views

Handling screen rotation with volley request

To handle screen rotation when performing a volley request, I've written this code: ...
12
votes
5answers
979 views

Credit card validation

I started following Harvard's CS50 (Introduction to Computer Science) on edX, and as part of their Hacker edition set 1 was the following assignment: I am supposed to write a program (in C), that ...
6
votes
4answers
290 views

Artillery game C++ practice project

I've completed a program as a learning experience to make sure I've got the concepts down. I found a practice project online and decided to try it out. The program compiles and runs exactly how it ...
6
votes
3answers
78 views

Comparing three O(n^2) search algorithms in C

I'm currently taking Harvard's CS50 course via EdEx.org, and we're learning about sorting algorithms. More specifically, we're studying bubble, insertion, selection, and merge sorts. Just for kicks ...
3
votes
3answers
372 views

CRAFT412 gaming website, now with divs and spans

Since I'm new to HTML and CSS, I was wondering whether my HTML layout is correct? Before I used div id for everything and everything seemed to work fine, however I ...
8
votes
2answers
184 views

Procedural World in Unity3D

The idea here is that rather than placing objects directly into the scene, these building objects are instantiated at run time and placed in the correct locations. This gives me full control over ...
3
votes
1answer
94 views

Templated Singly-Linked List

I'm really new to C++ (very surprised at the leap from Python and others to C++!). The code compiles and works well. This took all day to get to work, and I've the tendency to move on after I get ...
0
votes
1answer
19 views

Class for interpretation of capturing groups inside regex

I wrote a class, which intends to work with regular expression (as a String or Pattern object) to get capturing groups of given ...
7
votes
1answer
58 views

Small text-based RPG (v2)

This is my first text-based game I made. It's very small because I just learned Python and wanted to start small, and then code bigger programs. I added some stuff since the last time. Please give ...
2
votes
2answers
34 views

Live price update with options

I'm very new to JavaScript, so I'm not sure how to optimize the following code (which seems to run fine) further, though I did try to implement a few tips found on the web — such as using local ...
1
vote
1answer
73 views

Simple JavaScript quiz

I'm learning JavaScript and have tried making a simple quiz from scratch. JS Bin ...
5
votes
3answers
132 views

Small text-based RPG

This is my first text-based game I made. It's very small because I just learned Python and wanted to start small and then code bigger programs. Please comment on this. ...
5
votes
1answer
63 views

Hello Functional World: Counting occurrences of each letter

Coming from a OO (C#) background, I am trying to learn some FP. To help me transition, I am trying to learn F#. I am taking baby steps. I set myself a simple challenge to count the instances of each ...
-1
votes
1answer
107 views

Console-based Rock-Paper-Scissors game

I just began my C# debut and was just wondering if this Rock-Paper-Scissor console app is good and flexible. ...
7
votes
2answers
80 views

Selection Sort algorithm in Java

I'm relatively young in Java, and am familiar with only the basics of the language, yet. I've started studying data structures, and I've made an attempt to create a solution for the selection sort ...
6
votes
1answer
87 views

Classic two-player memory game

This is a classic memory game with a points counter for the two players. The app works fine, but since this is my first project in Swing, I would appreciate the critical opinion of some expert, as ...
3
votes
2answers
110 views

Function to find two prime numbers that sum up to a given even number

The Goldbach Conjecture asserts that any even number will be the sum of at least two prime numbers. I've created a function to find two prime numbers that add up to the number entered, but would like ...
5
votes
2answers
130 views

Two-player Mancala

After playing Mancala with my brother, I thought coding the game would be a fun project to practice my abilities in C++. I am relatively new to programming, having only done a few small projects to ...
5
votes
2answers
449 views

Injecting JavaScript to website for ordering products

I am a newbie at programming and I helped my dad with making this program which orders multiple products to a website from a table of Excel. It involves 3 processes: Passing orders from Excel to ...
3
votes
1answer
67 views

Pass the password back

This code simply receives a very basic 'password' (numbers, letters, nothing fancy). After you press enter, it will display it back. The only special key I'm handling is backspace (code ...
2
votes
0answers
36 views

Tic Tac Toe dynamically changing board position and score board position

Here is my game logic: Tic Tac Toe - player Vs player Player A (first player to enter his name) is getting 'O' and is starting Players choose the desired spot to put their sign(X or O) using the ...
4
votes
0answers
40 views

Gin web framework middleware

As a beginner in Go, I'm seeking feedback on a web framework middleware I wrote up. I reckon that knowledge of the web framework is not needed for the code review. The goal of this middleware is ...
2
votes
1answer
80 views

Listing movies for torrenting

Can I get some help on shortening the amount of code I have in this program? ...
2
votes
1answer
33 views

Policy classes for making widgets

I have been learning C++ for the past few weeks, and I made my first try with policy classes. Ultimately my goal is to use policy classes to manufacture wrapper classes on an ...
1
vote
1answer
30 views

Selecting orders submitted by a user, segregated by status

I have recently started using Laravel as my chosen framework. It is my first time using a framework. As I have made progress through my project, my controller methods have started to increase in size. ...
3
votes
0answers
43 views

Chaining function for range-based for loop

Motivation: I'm relatively new to C++. I'm writing a function meant to be used with range-based for loops. The goal is to be able to iterate over multiple containers at once, each in turn (essentially ...
5
votes
1answer
51 views

Returning all possible player moves on a board

Recently I started to learn Haskell. I did this by making exercises on the Internet. The problem of making these exercises is that I never know if I solved it the correct way. I currently wrote a ...
1
vote
1answer
60 views

Card data extraction from file

I wrote a quick script and wanted some critique, as I don't get to practice my coding often, or even in one language I might make some idiomatic errors. The program works and runs \$145,555\$ entries ...
1
vote
2answers
35 views

Overall utility tool for a project that will create account lists for pulls

I'm creating a meta-utility tool for a project that I'm on that has a lot of repetitive tasks that can eat up a lot of time. My goal with this tool is to eventually be able to automate, or at least ...
-4
votes
1answer
69 views

Prompting the user for a product number and quantity [closed]

Write a Java application that prompts the user for pairs of inputs of a product number (1,2,3,4,5) and quantity of units sold (any integer)? Use a ...
-1
votes
2answers
52 views

Toggling class on mouse hover

I am using this code to add a class on mouse hover to a link button and remove it on mouse leave. ...
3
votes
1answer
31 views

Merge adjacent numeric intervals

Given a list of pairs of integers that represent closed numeric intervals, I need to output a list of intervals where the adjacent intervals are merged together. The code assumes that the intervals do ...