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

Ruby-like squish in Haskell

squish is an onomatopoeic string function provided by Ruby on Rails that works on strings. Given a string, squish condenses all ...
6
votes
1answer
36 views

Recursive search for combinations of words that have a specified MD5 hash

This code solves a challenge problem that a local company is hosting to attract/screen applicants. The link to the challenge is here. In brief, we are given a wordlist containing approximately ...
9
votes
3answers
544 views

Lights on: playing with buttons in Javascript

First play with the game a little bit, and it is quite fun (a little hard but very satisfying when you win, be sure to put it full page): ...
3
votes
3answers
41 views

Displaying days of the week for all of 2015

This program is supposed to determine the day of the week for 2015. Could someone tell me how I could shorten my code? ...
6
votes
4answers
85 views

Simple number theory game, pt. 3

More refactoring based you guys' great feedback. This time around I worked on using global/local variables properly and efficiently, putting return values to use, renaming variables so that the code ...
3
votes
0answers
21 views

LESS CSS, including support for shadowboxes

I'm learning about using LESS and wanted to get anyone's input on if I'm using the concepts, syntax, etc. correctly.I know this might seem subjective and not the correct place to post, so please let ...
7
votes
2answers
80 views

Simpler number theory game

After receiving some awesome feedback in my first post yesterday, I was able to grasp the "building block" method of creating javascript in chunks and putting them together to create ...
3
votes
1answer
40 views

Pomodoro Timer via setInterval

I'm hoping for some input on if my code is DRY or how I could have made it more efficient. I am pretty new in terms of jQ/JavaScript and this took me far longer than I care to admit. I will post the ...
10
votes
3answers
603 views

Simple number theory game

I just started JavaScript about a week ago. For my first project, my goal was to use my knowledge of basic JavaScript to create somewhat of a "thinking computer brain," so to speak. I wasn't focused ...
6
votes
3answers
584 views

C++ Stack using template

I'm learning C++, so I wrote a stack with the help of templates. I'm wondering if there is anything I can improve or if I did something vastly wrong. Stack.h ...
6
votes
2answers
39 views

Re-worked Workbook_Open, Creating DateStrings

So, I had a go at re-writing my Workbook_Open event based on The advice from my previous question. Thoughts? ...
9
votes
2answers
78 views

Financial Data From Webqueries in Excel

I'm new (to CR and to programming in general). I wrote my first VBA on Monday. This is my first working project. It Takes a bunch of financial data from a company called Financial Analytics and a ...
4
votes
2answers
65 views

Infinite list of strings containing 'a'

I was assigned to write a piece of Haskell code that makes an infinite list containing increasing numbers of 'a's. My first thought was to write it as a list comprehension like this: ...
8
votes
1answer
54 views

Novice implementation of Tic-Tac-Toe

After reading a lot of tutorials, I was finally able to code my version of a Tic-Tac-Toe game. I would like to have some honest review of the code to see what I can do to better my coding. ...
7
votes
1answer
57 views

Number-guessing game with a cheat code

As my first Java program, I have written a number-guessing game. I would appreciate any suggestions on how I can clean it up or streamline it. I don't mean cut down on the general tasks executed ...
9
votes
5answers
377 views

Birthday validity-checking

I have written code to check any birthday input's validity. As I am new in programming, and after going through several debugging steps, the code became very ugly. ...
12
votes
2answers
125 views

Jacks or Better

This is a start towards implementing a poker-like game called Jacks Or Better. Before proceeding to improve the way cards are shuffled and dealt, I would really appreciate help cleaning up my code. ...
9
votes
1answer
100 views

Calculating and displaying score statistics using C# 6.0 features

I'm studying C# and trying to work on efficiency and making the best use of C# 6.0 features. I have created the following program based on an exercise challenge in a book, and have used Resharper to ...
4
votes
1answer
38 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 ...
5
votes
1answer
69 views

Basic Java Swing Calculator

I am new to Java Swing and have decided to create a calculator to learn some of the basic. I would like someone to look over my code to see if they can give me any improvements. I have 6 classes and ...
0
votes
1answer
37 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
33 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 ...
6
votes
1answer
51 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 ...
7
votes
1answer
74 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 ...
7
votes
1answer
93 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. ...
7
votes
3answers
662 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
36 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
49 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 ...
8
votes
3answers
660 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
135 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
48 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. ...
1
vote
1answer
41 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
46 views

Handling screen rotation with volley request

To handle screen rotation when performing a volley request, I've written this code: ...
12
votes
5answers
998 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
303 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
80 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
376 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
187 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
97 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
21 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
59 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
39 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
76 views

Simple JavaScript quiz

I'm learning JavaScript and have tried making a simple quiz from scratch. JS Bin ...
5
votes
3answers
133 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. ...
6
votes
1answer
69 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
112 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
82 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
89 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 ...