Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [beginner]

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.

2
votes
2answers
30 views

Simple text escape room game

I recently started coding and after learning a bit about functions and basics I tried to make a simple text escape room game. My code is working and the game functions as intended but I now there are ...
2
votes
2answers
35 views

Simple Hangman in PHP

This is the simple game of hangman. Guess letters and six wrong letters means you're dead. This took me about 20 hours. And I learned enough to be certain I could make something better now in half ...
0
votes
0answers
32 views

Group by references and date in a vectorized way

Reworked following the advices in comments: The idea is that I have a subset of the movements of material of a factory(over 700k rows), and I want to separate this movements by the reference of each ...
-4
votes
0answers
30 views

Homework in c++ [on hold]

(Guess the Number) Write a program in c++ that plays the game of “guess the number” as follows: Your program should include a function (generateNum) that chooses the number to be guessed by selecting ...
0
votes
0answers
27 views

Bartender Project - exporting printer code templates - Follow-up-2

Here is my second revision of my code. The other revision (and the base project) may be found here: Original: BarTender project - exporting printer code templates 1st Revision: BarTender project - ...
2
votes
1answer
26 views

Excel blank row inserter

I wrote a program as an excercise, to check the openpyxl module, which inserts blank rows into an excel file. See the docstring in the code for more description. I ...
3
votes
0answers
38 views

First React App: ToDo list

This is my first attempt at React and I don't want to pick up any bad habits for the long term. The code is adopted from a example app, but I have added a fair amount of new features. I.e. Clicking ...
1
vote
3answers
77 views

Simple Publisher Subscriber in Java

I am new to Java and had some difficulty creating this simple Publisher Subscriber class. It finally seems to be working and I wanted to check if I have been following best practices and see if there ...
3
votes
1answer
69 views

Advent of Code 2018 Day 13 - Detect mine cart collisions

This is a solution to Advent of Code Day 13 (problem specification, test input), for which I was asked to read a layout of tracks and mine carts and detect 1) where the first crash would occur and 2) ...
6
votes
2answers
114 views

Sorting algorithms with Python project

I wrote my first project in Python and I would like to know if this is correct. I prepared some guidelines I want to ask. (I know that I don't have any documentation yet). In the future I want to ...
1
vote
2answers
37 views

“B1ff filter” reads and returns message

This is a programming exercise from chapter 8 of a C learning book by K N King. The program should prompt a user for a message, and return it after translating it to B1ff speak. e.g A->4, b->8 etc ...
0
votes
1answer
36 views

Custom indexOf for strings javascript with regex

I was wondering how efficient my code is creating custom indexOf for strings in JavaScript using regex instead of looping with a for statement the whole way in most ...
4
votes
2answers
256 views

Grade calculator for a project with four aspects

I have a program that will ask the user to input their grades for 4 different sections of a project, then tell them what their total mark is, what grade they got and how many marks away they were from ...
8
votes
1answer
184 views

Find “prime polynomials” for a user's given prime, bounds, and degree

Very amateur programmer and first-time poster here. The program I wrote asks the user for a prime number, a lower and upper bound, and a degree (all of these are integers). I want to generate a list ...
3
votes
1answer
103 views

Simple stringifying using << operator

Background I wrote my_length class and some code. my_length can be stringified using ...
2
votes
2answers
34 views

Excel Multiplication Table Maker

I did the following exercise from here to try out the openpyxl module for generating excel files: Create a program that takes a number N from the command line and creates an NxN multiplication ...
-1
votes
0answers
48 views

BarTender project - exporting printer code templates - Follow-up

This is a follow up to a previous question previous question: BarTender project - exporting printer code templates Second Revision: Bartender Project - exporting printer code templates - Follow-up-2 ...
1
vote
2answers
96 views

BarTender project - exporting printer code templates

Follow-up Code: BarTender project - exporting printer code templates - Follow-up Second Revision: Bartender Project - exporting printer code templates - Follow-up-2 as stated in the question I've ...
2
votes
0answers
51 views

My first Java app: a calculator in Swing

I have created my first Java app. I am very familiar with C++ and thus without reading any books (just introduction, googling and IntelliJ auto-completion) I directly jumped into Java. So I made a ...
1
vote
0answers
17 views

Sorting an array of numbers in Java with an algorithm

This is pretty much one of my first programs that I have created in Java and I just wanted to ask if anyone sees some obvious errors or mistakes I made. The purpose of this program is to sort numbers ...
4
votes
1answer
62 views

Bubble sort algorithms and unittest in Python

I am quite new in Python and I am starting my journey with sorting algorithms, PEP8 and the Zen of Python. So far i wrote a post BubbleSort and I drew conclusions and followed the advices. I ...
0
votes
2answers
66 views

2048 Webgame bot

So there is this game 2048. You can play it here I wrote a python script which "plays" the game on the website by clicking the arrow keys. I would like to know what can be improved. Is it a good ...
1
vote
1answer
58 views

My first ToDo list in JavaScript

I'm new to programming and in front-end. It's really hard for me to learn good practices. Right now I'm trying to learn javascript basics and bootstrap in addition. I did mine first ToDo list with ...
1
vote
1answer
50 views

Queries to print out on the screen a list of menus

For common users I have 10 queries and for registered users I have 30 queries like this one below, only to print out on the screen the link for the querystrings, a guy said to me that I should escape ...
1
vote
1answer
69 views

Bubble sort in Python

I am quite new in Python and I am starting my journey with sorting algorithms, PEP8 and the Zen of Python. I would like to get some feedback about my BubbleSort algorithm which I wrote. Also, is there ...
0
votes
3answers
74 views

App that sets configuration data

I've been writing my code like this for a really long time now, I am wondering if there is a more efficient way to do this. This is especially after a senior developer said my code was very amateurish....
-4
votes
0answers
13 views

Java.NoSuchElementException error on second scanner [closed]

I’m using a iOS compiler app called JedonaCompiler and I am currently trying to code a small text based rpg. I’m adding in a “cmd prompt” of sorts so when I transfer the code to NetBeans I can ...
11
votes
2answers
4k views

Rock Paper Scissors game using OOP

I'm a complete beginner to Java and we have just started learning objects and classes in school. I'm trying to create a very simple text-based Rock Paper Scissors game. I do realise that my code is a ...
1
vote
1answer
63 views

Credit card validator in Python 3.7.1

I am doing some projects so I can teach myself programming. The one that I finished states: "Credit Card Validator - Takes in a credit card number from a common credit card vendor and validates it to ...
9
votes
2answers
145 views

Project Euler #119 : Digit power sum

From problem #119 of the Project Euler : The number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and 83 = 512. Another example of a number ...
1
vote
1answer
33 views

Parse html bookmarks export to a json with python for further management

I made this piece of code as first step for a bigger project to iterate and manage bookmarks: open, rename, place in new folder structure, or delete each one of them. This first step is a parser to ...
2
votes
1answer
31 views

Extracting and reformatting dates from text

The task is find by pattern d--m--y---- all occurrences in text, reformat it to yyyy:mm:dd and print it separately from initial text. Actually I done all except formatting. And even in my written ...
5
votes
1answer
172 views

Making a dataframe of parent IDs

I am quite new to scripting, and here is my first code I wrote. The goal of the code is to extract a parent ID based on a child ID. I would appreciate some constructive criticism and aggressive ...
5
votes
1answer
98 views

First encryption program

This is the first piece of code that I write that's not just an exercise but a full program I can actually run. Features: Generate random letter/number pairs for each "printable" ASCII character ...
4
votes
2answers
53 views

Renumbering files in a folder consecutively

I wrote a program to rename files with consecutive numbers, basically removing the gaps in the numbering. This could be a very annoying task to do it manually in windows. I only did this for ...
2
votes
0answers
47 views

Historical exchange rate between currencies using Ecbxrate

I tried writing a simple python script using the python module ecbxrate that outputs to a CSV file a table with the daily exchange rate between EUR and USD since ...
2
votes
2answers
126 views

C# classes for adding form components dynamically

I'm currently reading on how to implement design patterns. I'm trying to implement the design patterns but need help on whether my understanding is correct. I have a windows form in C# project that ...
3
votes
3answers
100 views

Showing statistics of popular JavaScript frameworks from GitHub API

I am currently working on a simple app to check the stats of popular javascript frameworks. For this I am using the Github API to get certain data sets and have come close to finishing my project. <...
5
votes
1answer
38 views

Find big files on the harddrive

For practicing Python I wrote a script which scans the harddrive for large files and lists them in a report. The script takes the root path and then all the subfolders are scanned aswell. Also the ...
3
votes
1answer
45 views

Command-line NHL skaters stats tool

Have been playing with the undocumented NHL API for some days. I'd love to see any input about this little script. About overall structure, style, performance enhancements, etc. Not sure how to ...
1
vote
0answers
33 views

Dice-rolling tool

I am an experienced programmer, but a complete beginner with React. My goal is to teach myself React. I've made a simple die-roller application. The application presents a drop-down, and the user can ...
2
votes
0answers
48 views

Tic Tac Toe in Python 3

Learning to code with python this is what i came up with. But looking at the code i am sure there are ways to improve. I would really appreciate a constructive review and some guidelines. ...
8
votes
6answers
1k views

If any two items in a list is equal to a given number

I just subscribed to the daily coding problems and received my first today. The problem is: Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For ...
3
votes
1answer
57 views

Implementation of Game of Life in pygame

This is my first project in pygame so I am open to suggestions how I can improve my python/pygame skills. I have started programming in python couple of weeks ago and I really want to know what I am ...
3
votes
1answer
91 views

Find the length of a frequency-change cycle (Advent of Code 2018)

I tried to do the second part of the 1. December challenge of Advent of Code in Haskell. I'm fairly new to Haskell but I have plenty of experience in other (procedural) languages. I struggled with the ...
1
vote
1answer
29 views

Vector addition and pythagorean theorem code

Hello i would like to share my code that is meant to help me add 2 vectors together. It is very simple and i would like to kindly ask you whether you could review my code. Also i decided to keep ...
2
votes
0answers
55 views

PHP + PDO - Inserting data on the table with a loop

First of all i made a simple code to insert data on my table, with the information from this code i made a loop to insert data on another table for a notification system. I'm new to PHP and i think ...
2
votes
1answer
56 views

Mad Libs excercise

I did the following Excercise from Automate the boring stuff with Python Chapter 8: Create a Mad Libs program that reads in text files and lets the user add their own text anywhere the word ...
5
votes
2answers
275 views

A novice student record system

I am an extreme novice in Java and thus trying to practise some online exercises. One of them involved creating a basic student record system. This is what I've come up with but I think a lot of ...
2
votes
0answers
39 views

Excel VBA animation runs slowly after editing worksheet

My VBA macro displays an animation based on a row-by-row time step simulation in the worksheet. The user enters the desired inputs and the worksheet calculates the evolution of the simulation in a ...