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
14 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 ...
0
votes
0answers
3 views

Modx getResourceField with jquery [on hold]

This is probably mostly a modx issue. I am trying to call [[getResourceField?&id=2 &field=1&processTV=...
2
votes
0answers
18 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
19 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
66 views

Listing movies for torrenting

Can I get some help on shortening the amount of code I have in this program? ...
1
vote
0answers
21 views

Policy classes for making widgets

I am learning C++ the last 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
26 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. ...
2
votes
0answers
28 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 ...
4
votes
1answer
43 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
58 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 ...
-3
votes
1answer
47 views

Prompting the user for a product number and quantity

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
40 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
30 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 ...
3
votes
1answer
39 views

Chromatic aberration

surface is a pygame.surface object from the Pygame graphics library. It actually runs way faster than I thought it would for a ...
7
votes
4answers
985 views

Simple beginner Java calculator

This is my first calculator in Java. I just started learning a week ago so any feedback (positive and negative) is welcome. Tell me what's good and what I can improve on. ...
1
vote
0answers
58 views

Instance depth ordering system

I have created a template class that manages instances; by order of depth and order of addition (both ascending). It allows for a user to add and remove instances, to retrieve a vector of a layer, ...
6
votes
3answers
295 views

Locating a PID based on an IP address and port

I wrote a simple Python app that is given an IP address and port and the app then finds the PID listening on that IP:PORT. I would like to hear constructive criticism regarding the bellow code. ...
3
votes
0answers
38 views

Solidworks EPDM add-in

I need to expand the functionality of this project to encompass more commands (you may notice in GetSelectedFilePaths() I have a case that is not currently used, ...
7
votes
2answers
82 views

LZW decompressor in C (II)

Here is an update to my previous thread which you can find here. Again, I'd very much appreciate any advice or comments about the structure/logic of the program, style of the code, or reusability of ...
2
votes
1answer
64 views

Parsing a component of a regex followed by an optional quantifier character

I have a piece of parsec code that parses a unit optionally followed by ?, + or ...
-2
votes
0answers
17 views

Custom Title extractor Code in VBA Powerpoint. Misses data types, compatibility & package into Addin [closed]

Need help on this project I've been working on. Its to enable extraction of titles/headings from large/many powerpoint presentations. The code is below and I'm facing three issues: 1) The essence of ...
4
votes
1answer
33 views

Vigenère cipher encryption in Scala

I've worked out a functioning Vigenère encryption in Scala, and while it doesn't seem like my code is too hideous, I'm sure I could make it more functional and Scala-esque. Primarily, it seems like: ...
10
votes
1answer
411 views

LZW decompressor in C

Here is a simple decompressor in C. I'd very much appreciate any advice or comments about the structure/logic of the program, style of the code, or reusability of the features. I'm a real novice and ...
15
votes
1answer
791 views

Simple webserver in C

My first learning project in C. Looking for general feedback e.g. gotchas, coding standards, formatting, naming etc. I'm here to learn! webserver.h ...
3
votes
2answers
246 views

Finding the kth to last element of a singly linked list

I'm not sure if this code is industry-standard or not. Please review it and let me know if any improvement is required. ...
6
votes
3answers
97 views

Basic/beginner interactive program in Python

I bring this code review plea over from suggestions from SO. I've made the suggested edits from that thread, except I kept one sys.exit() call because I was having ...
8
votes
2answers
76 views

Simple inventory system - Part 2

I've refactored my previous inventory system, and added a few features like removing items from the Inventory class, easily obtaining the current selected item ...
4
votes
2answers
102 views

Choosing a magic number between 0 and 9

I wrote a little script that asks the user to choose a number between the 0 and 9. Wile he/she is entering a choice, the program tells him/her if the number is too high and too low. Nothing fancy, ...
4
votes
1answer
55 views

Project Euler 42 - Finding triangle numbers

Here is my solution for Project Euler Problem 42, which is described in the following: The \$n^{th}\$ term of the sequence of triangle numbers is given by, \$t_n = ½n(n+1)\$; so the first ten ...
2
votes
2answers
36 views

“Skewed” average in Lisp

I set myself the task to calculate the average of a list, but with two conditions: negative numbers are ignored numbers greater than 100 are counted as if they were 100 So the "skewed" average of ...
1
vote
1answer
39 views

Find disjoint integer intervals

Given a list of numeric intervals in the form of (a,b), where a and b are integers, it finds ...
0
votes
1answer
29 views

Class and Static practice, IDS and a max instance count [closed]

I was practicing working with classes and the static property included with them and came up with a simple ID counter and max number list. I also added a quick debug error ...
-1
votes
2answers
35 views

Program that filters JSON data based on user selection

I have made a basic program using AngularJS that displays data from a JSON file, and filters it according to the user's selection (specifically FIFA 15 chemistry cards). I did plenty of CSS work to ...
6
votes
3answers
141 views

Manipulating a .csv file to look for two common values to create a key, then summing up values

My code reads a .csv file, looks for a couple values to create its key, and then wraps up the data based on a few business rules I have. I'm trying to learn "the right way", so I'd really appreciate ...
3
votes
1answer
165 views

Ugly_Numbers challenge

Here's the challenge: Once upon a time in a strange situation, people called a number ugly if it was divisible by any of the one-digit primes (\$2\$, \$3\$, \$5\$ or \$7\$). Thus, \$14\$ is ugly, ...
5
votes
1answer
64 views

Fight simulator

I have been learning Scala for a couple months and want to get a more concrete understanding of proper oop practice. I find it difficult to optimally use traits, abstract classes and inheritance. ...
2
votes
0answers
31 views

Number guessing game in Clojure

I have recently started learning Clojure, and decided to write a number-guessing-game as an exercise. The game works as follows: User enters minimum and maximum values Computer generates a number ...
3
votes
5answers
121 views

Sorting ArrayList

Here is the task: Create several classes of flowers that extend abstract flower. all fields -- random. make a bunch of 20 different flowers calculate the price of the bunch sort ...
4
votes
2answers
91 views

Implementation of Luhn Algorithm

I've implemented the well known Luhn Algorithm in Python. It's a simple one, so it's good for beginners. ...
5
votes
1answer
198 views

Preparing a YouTube downloader based on Windows form

The program this function was written for is a Windows forms program. This function downloads videos from the internet one after the other. It runs in a separate thread (so the user can drag the form ...
6
votes
1answer
343 views

Very simple inventory system

To learn F#, I've implemented this very simple inventory system. While I'm proud that that it's my first program, and that it works, there are still a few areas that I'd like tips on, namely these: ...
10
votes
1answer
256 views

Stack implementation using Swift

I would like to request some code review and feedback on a stack implementation using Swift. Disclaimer: I might have not used protocols, optional unwrapping and error and ...
5
votes
2answers
223 views

Alien Name Generator (using blocks of consonants and vowels)

This is my first script in Python, and I am looking for tips and constructive criticism about code style, whether there are more efficient ways of doing things, etc. (not as interested in tips about ...
5
votes
1answer
285 views

Simple calculator using methods

I am a beginner to Java and am learning about using methods. I want to make a simple calculator that uses methods effectively. I would like a review of my program, and I would also like to know if ...
4
votes
2answers
245 views

Abbreviation of names

I have a few confusions about writing Java code, and I need some clarifications: ...
3
votes
2answers
293 views

Quadratic equation solver

I started Python 2-3 months ago, but I really haven't done much since then, just little things. Yesterday, I wrote this simple quadratic equation solver. You can give \$a, b\$ and \$c\$ any value, but ...
5
votes
1answer
188 views

Calculator in Java using JFrame

Today, I made a calculator in JFrame. The code is a little long but I'm still a beginner to Java. In the future I'm going to do some improvements on it, but here it is right now. This is the meat of ...
5
votes
3answers
70 views

Project Euler problem 92 (sequences formed by the sum of squares of digits) in Haskell

I made the following program in Haskell to solve Project Euler's problem 92. The program works (i.e. the solution it yields is correct), but it's not exactly the fastest in the world. The problem is: ...
10
votes
3answers
814 views

Beginner GUI Calculator

I'm very new to Java and programming and I've written a calculator to put all the theory I've learned so far into practice. I'm sure there is a lot of room for improvement since I really just started ...