Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.

learn more… | top users | synonyms

0
votes
0answers
6 views

Morse Code Conversion

Challenge Write a program which reads a file containing Morse Code and outputs the conversion. Specifications The first argument is a path to a file. The file contains multiple lines. Each line ...
3
votes
0answers
9 views

A rusty implementation of CowSay

I'm making my first foray into Rust. I wanted to copy a fun and non utilitarian tool so I chose CowSay. It's not feature complete (CowSay has a lot of options) but it's a start. My primary reasons ...
2
votes
1answer
42 views

Implementation of Queue using Linkedlist in Java

Can someone please review my code? Is it the correct implementation of a queue? If not, please give suggestions on how to implement it using a linked list. ...
1
vote
0answers
11 views

Generate all permutations in Clojure

Given a set, generate all permutations: (permutations #{1 4 5}) => ((5 4 1) (4 5 1) (5 1 4) (1 5 4) (4 1 5) (1 4 5)) Here's what I cobbled together: ...
3
votes
7answers
179 views

Beginners Java calculator

I am a beginner in Java programming, and I created a calculator as my first Java project. Therefore, can you review my code and provide feedbacks/ tips? ...
6
votes
2answers
60 views

Revised - Game of Fifteen

This is a revised version of a previous post. I attempted to address each aspect of the feedback provided. The key changes are as follows: Replace the deprecated ...
1
vote
0answers
17 views

Parses XML to return the bus times at specified bus stop

The code uses the XML-based OC Transpo data feed to create a list of the bus name, where it's headed, and the times. Keep in mind that I am a beginner at python so any advice at all is appreciated. <...
1
vote
1answer
26 views

Password validator using regular expressions

I wanted to learn some regex, but learning regex is super boring so I decided to write a password validator that will validate a password with regular expressions. How it works: You enter a ...
7
votes
2answers
110 views

Game of Fifteen - A Sliding Puzzle Game

Update: I addressed the changes and created an updated post. I'm reviewing C by working through the edX CS50 problem sets. This task was to implement Game of Fifteen aka 15 Puzzle. Project details ...
4
votes
2answers
66 views

Designing stack and queue from scratch in C

As a beginner and curious guy I'm interested in implementing data structures and algorithms from scratch. Here's my implementation of Stack and Queue, the most fundamental data structures. Are ...
0
votes
0answers
22 views

Moving the HTTP and Request to controllers and Routes

I am new to Laravel framework and I made a project application which is working fine but someone said You should avoid accessing the Request object in your views. here is the full application ...
1
vote
0answers
22 views

Counter with increment and decrement buttons

For my first Kotlin project, I'm implementing the Redux pattern with simple Increment and Decrement buttons and a text view to display the current value. My main questions have to do with Kotlin and ...
6
votes
1answer
95 views

My minesweeper implementation in Javascript

I'm beginner coder and I would like to request for critique review of my minesweeper implementation. Game was made using bootstrap 3 and game board itself is a simple html DOM table. Game is complete ...
2
votes
0answers
35 views
3
votes
3answers
82 views

Upper section of a vertical single-page website

This is my very first attempt to write HTML and CSS. I designed this website for a friend. I'm not sure if I used the best practices or maybe I did something wrong but I just started my learning ...
0
votes
1answer
164 views
+50

First time ATM machine program

I have created a gorgeous ATM machine program. It makes all other ATMs look like crap, if I do say so myself. What I would like is some sort of critique on what I've done: Is there better syntax I ...
4
votes
1answer
45 views

Prints Books from a HashMap that are complete or incomplete

This code is meant to display book titles that are incomplete. I have a HashMap with the book title and a number that represents the amount of the book that has ...
2
votes
3answers
77 views

Java Cash Register adding methods [on hold]

Just started learning Java three days ago and am currently doing a problem in my textbook where I do some basic cash register functionality. So far my code can factor in taxes, let the user get change,...
-3
votes
0answers
37 views

What is wrong with this PHP code? [on hold]

I'm trying to get the basics of PHP down. I have the following code. ...
77
votes
6answers
13k views

Basic Pokedex in C++

I recently started learning C++ about a week ago, and I made a bit of progress. In honor of Pokemon Go releasing, I decided to make a Pokedex with the original 151 Pokemon. So far I have 120 or so of ...
4
votes
3answers
53 views

A simple assembly program to count the number of ones in a register

I made a simple assembly program to count the number of ones in a register. Since this is basically my first ever, I would like to hear what I can improve or if there are some major flaws in this one: ...
7
votes
3answers
85 views

How to decrease memory usage in codeeval Road Trip challenge

I'm solving easy CodeEval challenges in Python 2.7. Usually my solutions use around 256 bytes of memory according to CodeEval. With Road Trip however while time used is still low (30-40ms), memory is >...
7
votes
3answers
827 views

Simple C# Interest Calculating Program

Sorry if it's a bit long... I tried to make it modular with methods, not sure if I overcomplicated it ...
1
vote
0answers
28 views

Checking if a product is already in a user's collection and if a user has rated /voted the product

My code works, but I understand it's best to have fat models and skinny controllers. However, I am using 3 different models within a controller and have unfortunately made my controller fat. What is ...
6
votes
3answers
149 views

Simple Python hangman game

I've created a little hangman game. It's pretty simple, and not to exciting but I want to know if there's a way I could turn this little game into something more extravagant and more exciting. How can ...
1
vote
0answers
27 views

Correct Swift Model for JSON

I am working on a program that would generate swift classes/ structures for JSON file contents. The link to the application is Json2Model in case you want to contribute directly. I do not know a ...
8
votes
1answer
473 views

Bot for Spacewar PPCG KotH

I wrote a bot for a Programming Puzzles & Code Gold King of the Hill type of challenge called "Spacewar!". The challenge was written by @El'endiaStarman. The bot is called "Spy". The controller ...
13
votes
2answers
3k views

O PC, why are you so slow?

In order to test some software I've written, I need to write values to a test harness with OLE for Process Control (OPC). The problem is, for a larger range of values I'm generating points for (say ...
1
vote
1answer
43 views

Making a script file to perform maintenance

I wish to make a file to click on to do the 'usual' tasks I would do to clean/perform maintenance on my mother's computer when I'm not present. I made a script file and took a few command lines from ...
0
votes
1answer
38 views

Android music-streaming app

This is my first time building an Android app or even using Java in the first place. All of this code does work, but I'm hoping to optimize it or find out if things could be done more easily than how ...
3
votes
1answer
50 views

Ruby FizzBuzz solution with Rspec test

My code makes the four tests pass, but I'm worried I'm missing something. Is the code too simple and not encompassing enough? I'm just beginning to learn so any feedback is welcome! Here's the Rspec ...
4
votes
1answer
56 views

Tic Tac Toe game made using jQuery and JavaScript

I have created a simple Tic Tac Toe game using JavaScript and using jQuery. I have used bootstrap for the UI. I am just a beginner, so some feedback on the JavaScript element would be great. <...
3
votes
0answers
61 views

Determining position of point W.R.T to given line equation

Problem from hackerrank:: Problem Statement: There are N lines. Each line has an index between 1 and N. The slope of ...
2
votes
2answers
41 views

Rust function to read the first line of a file, strip leading hashes and whitespace

I’m writing a Rust function for getting a title based on the first line of a file. The files are written in Markdown, and the first line should be a heading that starts with one or more hashes, ...
7
votes
2answers
196 views

Word VBA function to find a specified heading & return its text as a string

In this post, I asked for an overall review of a script to auto-generate table captions, because it was running relatively slowly. I've used Debug.Print to isolate the problem, and this function takes ...
2
votes
1answer
67 views

Linked list using dynamic memory [closed]

I created a simple linked list to test what I've learned so far and if I manage everything correctly. If you see syntax errors is't because of copy-paste. I just want to know if i'm making everything ...
3
votes
1answer
35 views

Finding the names of students with the second-lowest score

I'm teaching myself programming. I would like to know how I could make this Python3 could more flexibile, for example if I wanted to find students with the 3rd lowest grade, or the lowest, or any ...
3
votes
2answers
55 views

Creating the start of a Caesar cipher

My code takes an input, uses the input to take a number of letters from the start of the alphabet and put them at the end. I intend to use this to create a Caesar style cipher. Is there a way to do ...
5
votes
2answers
366 views

Asks the user for an input, stores and prints it to the console c#

My code is very simple, it asks for an input then stores the input. I am new to c# and wanted to know if it was possible to both ask and accept the input on one line. ...
-1
votes
1answer
53 views

A Rule of Divisibility by 13

A Rule of Divisibility by 13 When you divide the successive powers of 10 by 13 you get the following remainders of the integer divisions: 1, 10, 9, 12, 3, 4. Then the whole pattern ...
5
votes
1answer
49 views

Recursively traverse directory tree and print all files

I want to build a small console program, that for given directory, will print (for now) all files inside that tree. Here is an F# script that I came up with: ...
1
vote
0answers
21 views

Parsing latitude and longitude, using Try[T] to ignore errors

I wrote this question asking about how to implement my error handling while still maintaining functional code and based on 200_success's very interesting note on the spaces, I decided to ...
4
votes
2answers
65 views

Number Guessing Game in Haskell

I've been learning a lot about functional programming lately and I've recently started learning Haskell to which I'm very new. I've written a simple number guessing game and I would like to have ...
1
vote
0answers
30 views

Greedy solution to minimize the max-min spread

I wrote this solution to contest challenge and I am new to D and was hoping for some tips to make it faster or more Dish. The challenge is to select K integers from a list of N integers (2 ≤ N ≤ 105, ...
6
votes
1answer
43 views

Conway's Game of Life in Scala

To learn Scala, coming from Java and Python, I'm attempting to program an implementation of Conway's Game of Life. I've implemented two different approaches so far, with the first being so bad I'm ...
3
votes
2answers
46 views

Convert a String with comma separated latitudes and longitudes to a Seq[Coordinate]

I have a function that receives a String like the following: "-10.0 -10.0,10.0 10.0,0.0 0.0" And needs to translate that into ...
5
votes
2answers
506 views

C++ thread safe log file writer

I made this class (MFC lib) to write a log files. Eventually I want to implement this code in a thread safe way. Log.h ...
4
votes
1answer
74 views

Rock-Paper-Scissors with the revealing module pattern

In my ongoing effort in learning advanced JavaScript I tried to develop the traditional rock paper scissors game by using the famous revealing module pattern. I'm not comfortable yet with what has to ...
11
votes
3answers
2k views

Stone, Paper, Scissors in Python

Recently I started programming with python. Today I was trying to make a stone, paper, scissor game. After so scratching my head long time, finally I got a working code. ...
10
votes
7answers
1k views

Generate random binary arrays

I am fairly new to C++ programming and I, so far, love it. I just have been trying to make sure what I am doing is fast, unique, readable, and efficient. Is there anyway I can improve this code, or is ...