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

2
votes
0answers
48 views

Quiz game w/random questions

I posted on here before with a C++ quiz game. I took some of the great advice and I also changed it up completely. This is a quiz that tests the user's knowledge over the C++ language. The questions, ...
0
votes
1answer
18 views

Hashing with linear probing

I am seeking a review of a previous project I completed to help understand hash tables. The following is my implementation of a hash-table using linear probing. My solution assumes a number of ...
1
vote
0answers
25 views

Server side of a chat program - part 2

A few days ago i posted a question about my code. It was obviously awful and thanks to some advice from Hosch250 I learnt a lot of things about OOP. Now, I rewrote the program. To me it seems a ...
4
votes
2answers
223 views

Genotype as input, give the phenotype

I want to write a Python script where the input is a genotype (e.g. "CCDd") based upon the following Punnett square. The output should be the phenotype (e.g. "seal"). My code works, but doesn't look ...
4
votes
0answers
74 views

Accessing a REST WebService and updating local HTML objects with Modular JS

I have this code I am doing to make my code modular js: ...
3
votes
1answer
33 views

Chip 8 Emulator

I've recently started learning OpenGL and thought that a great way to start using it in its simplest form would be to create a Chip8 emulator using the keyboard callbacks and graphics that GLFW and ...
5
votes
2answers
124 views

Command line Hangman game

I was wondering if you can give me advice / and your opinion on the following code. I'm aware there are a few things that it doesn't presently deal with that could be enhanced (I don't have time, this ...
5
votes
2answers
69 views

Dining Philosophers variation in C

This is a variation of the Dining Philosophers Problem. The task is to coordinate several students inside a gym. All students try to obtain their desired training weights from a shared weight rack. ...
2
votes
2answers
61 views

Creating tiles with CSS

I am still a beginner in CSS and am trying to make a tiles/cards design. I have reached this code, and I want to know if my layout this way is good or if there are any improvements I need to make. Is ...
8
votes
3answers
514 views

Cash register allowing all coins

I had to build a cash register that included a Coin class that allowed for all types of coins to be used. Please note that for this, no control structures can be ...
3
votes
1answer
27 views

Nagios service alert HTML email builder

I have a well functioning Nagios Core system set up. I wanted to make our alerts both easier to read pertinent information quickly as well as provide additional details from custom host and service ...
-2
votes
0answers
14 views

Is introducing unused input arguments the proper way to answer scalability? [on hold]

I am doing some code review atm, one function I was given is: ...
1
vote
0answers
29 views

Creating a non-binary tree by weights of the node and then traversing it

I wrote this code which adds children to nodes according to the weight of the heading of a non-binary tree. I am a novice programmer, so I would love to know how this code can be improved. ...
7
votes
3answers
87 views

Magic square test

A magic square adds up the values in each vertical, horizontal, and diagonal row to the same value. In this case, that value is 34. I have changed different indices values and the program returns <...
0
votes
1answer
29 views

Functional test with PHPUnit / Symfony

I am trying to test my first functional tests. I would like to know if my functional test is well done, or if the structure of it is not optimal. Any advice will be useful to me. As I said, I just ...
4
votes
2answers
64 views

Incrementing a sequence of letters by one

I'm creating a C# application that produces unique lines of data. The main purpose of the application is for me to learn C#. The secondary purpose is to have available lines of (dummy) data when ...
9
votes
3answers
265 views

Plotting different parameterized polynoms

For a university assignment I had to plot different polynomial functions depending on one single parameter. That parameter gave the number of supporting points to interpolate a given function in the ...
3
votes
1answer
70 views

First programming challenge in R FizzBuzz

I was messing around online at work the other day when our phone systems went down. I came across the R programming language. Now I'm not guru with programming by ...
6
votes
2answers
66 views

Blackjack game in Python 2.7

Please review my game. I am learning Python now, so any suggestions are welcome. I am running this on a Linux machine, in Komodo and terminal. ...
1
vote
3answers
75 views

Select a list from a 2D list, take the last item from its nearest non empty left neighbour and put it at its head

I've just got into Haskell a few days ago and I love it. I'm looking for some pointers and best practices on how to organise and write Haskell code specifically when it comes to managing errors, which ...
1
vote
0answers
38 views

Ruby - Asteroids Remake

After some feedback on my last Ruby Code I decided to start another one with two big concerns in mind: Trying to adequate my coding to the OOP paradigm Trying to follow the Ruby Style-Guideliness I ...
0
votes
0answers
59 views

API routes based on folder structure

The overall project is about generating routes for an API. Advice on styling, syntax, methodology, general approach to the problem, simply good coding practices pointers would help a bunch. GitHub <...
5
votes
2answers
81 views

Vigenere cipher breaker

I am a relative newbie to C++. I recently finished a command line program which cracks Vigenere encoded messages from a file by testing each word in the dictionary. I have never had a tutor/teacher ...
1
vote
1answer
52 views

Django Forms and handling

I'm really new with Django and I would like to get your minds, advices, ... in order to improve the first part of my project. For the moment, I created a model form which is named ...
1
vote
1answer
26 views

FASM assembly: Write a program which checks if a number is a prime number

Coming from high-level languages like PHP and JavaScript I'm doing an Assembly course on Udemy. Yesterday I tried to implement the following task: "Write a program that takes a number m as input, ...
4
votes
2answers
57 views

Caesar Shift in Haskell

I started learning Haskell a couple of days ago and decided to build a Caesar shift in it. ...
-4
votes
0answers
39 views
3
votes
0answers
51 views

Distribute stats randomly

I have returned to programming after a year without practice and this is also my first time using Java. I know there is a more efficient way to do this so any suggestions would be appreciated. I am ...
4
votes
0answers
25 views

Simple Golang TCP server

I've written an itty bitty tcp server, for educational purposes. The program outputs a file if you input the correct hash (or whatever you set the environment variable to). I've performed tests on ...
3
votes
1answer
79 views

Palindrome finder [closed]

So I tried the brute force method after visiting https://www.programiz.com/python-programming/examples/palindrome on palindromes. Any comment on how I can improve my coding will be much appreciated. ...
3
votes
0answers
45 views

Simplified google maps program

I've been trying to write a simplified google maps program. My programming experience is limited. I have come up with a solution but I'm looking to make it more user friendly by splitting it up into ...
4
votes
1answer
50 views

Coin Estimator by Weight

I've created a mini project where the user will enter the total weight of the coins and the program will compute how many coins they have and how many wrappers they'll need. I initially found this ...
1
vote
1answer
68 views

Using third party library named “nsetools” for fetching stock data

I want to make the code shorter. Is there any way to loop through the stocks and qty dictionaries, access the closing prices of ...
-4
votes
0answers
22 views

Raw_Input help in python. Not defined? [closed]

I'm making a character customization feature to my unmade "game" and I'm running into some error when I run this: ...
3
votes
1answer
14 views

Clean up duplicate string references and centralize properties/error handling

I don't like the idea of sprinkling process.env all over the place and wanted to abstract it out a bit. I'm new to Node and know there must be a better way to do a few things. Not repeat the name 4 ...
11
votes
2answers
1k views

Making a deck of cards in Python

I want to have a deck of cards that looks like this: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'...] For that I wrote the following code: ...
6
votes
1answer
171 views

Connect Four in Java

I wrote this program as an assignment for an introductory programming course in Java, which I then decided to improve past the minimum assignment requirements. It allows two human players to play ...
4
votes
3answers
102 views
4
votes
1answer
39 views

Email redirection script in python

I am new to python and wrote a email redirect script. It extracts mails from a server and than resend them. I would like to get some feedback: ...
5
votes
1answer
70 views

Generating RPG Characters (Objects)

I am a beginner Java programmer. I have just finished up an assignment and would appreciate some advice and/or constructive criticism on my program. I am trying to ensure I do not advance my knowledge ...
0
votes
0answers
23 views

Implementation of dynamical forms for JSON ActiveRecord using JavaScript

I have some data in my database I store as JSON (PostgreSQL supports it). The data can be pretty flexible, something like work-experience, with names of previous companies and positions or education ...
0
votes
0answers
35 views

Generate random URL and download HTML from website [closed]

I'm very new to Python and I wrote the following program as my first program. My code works as intended but it's really really slow and sometimes it gets stuck for multiple minutes. I don't really ...
4
votes
3answers
89 views

Computing the name of the month

I created the following program that transforms a numerical month into the corresponding textual month. I initially calculated the starPoint and ...
0
votes
1answer
62 views
6
votes
0answers
48 views

Downloading HTML from random websites

I've never written a single line of Python before this program was made and all my "knowledge" of the syntax is from Enki ( an app ). I just wanted to download the HTML code from random websites and ...
5
votes
1answer
49 views

jQuery Double Timepicker

I have one year of JavaScript/jQuery experience but I feel a bit messy in my code. The point is that I make some code that works but I feel that it can be improved like hell. I look for that, but even ...
4
votes
4answers
96 views

Check for Palindrome string in Java

I was wondering if you can give me advice on this solution to assess if an user input string is a palindrome or not. How can I optimize this solution? ...
6
votes
2answers
71 views

Generating matrix/image kernel from List

I have another question from same program where is full code, but this question focus only single process/function of that program. My problem is performance when creating dynamic Image kernel from ...