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.

Filter by
Sorted by
Tagged with
4
votes
1answer
35 views

Python program to know who wins a tic-tac-toe game

Given an input where we have two players: "X" and "O", and empty cells marked with a "." like: check_winner([ "X.O", "XX.", "XOO"]) the program outputs if there are three "X" ...
8
votes
3answers
621 views

Python program to find the most frequent letter in a text

Given a text like "Hello World!" the program outputs the most frequent letter, in this case the "l". If there are two letters with the same frequency, it outputs the first in alphabetical order, for ...
3
votes
1answer
45 views

Pidfile single process instance mechanism

I'm writing a system daemon in Rust that may be started by the user manually. Only one instance of the daemon should be running at a time so I have created a pidfile locking mechanism to prevent ...
1
vote
1answer
42 views

Python program that gets my hackerrank code and scores using requests [closed]

I'm trying to extend my coding skills to other languages by doing projects. (learned Java in school) and since python is very popular right now thats what I ended up choosing for this project, though ...
3
votes
0answers
63 views

Sorted LinkedList

A linked list is a data structure that has a beginning, and an end. The only way through the structure is to go to the "next step", like stepping stones. This linked list works the same way, but in ...
2
votes
0answers
65 views

Bias-corrected percentile Bootstrapping Optimization

I have never posted to this forum, but was referred here. I need some help printing key iterations as well as optimizing my code for run time. If someone had some time to help/explain how to correct ...
2
votes
1answer
54 views

First proper program, Tic Tac Toe

I'm still pretty new to programming, only been doing it a week. I'm just wondering if I made any glaring mistakes or anything that could be improved code wise? ...
1
vote
2answers
56 views

Inserting a user sign-up record using mysqli

My Code: Connectivity(php) ...
1
vote
1answer
48 views

Improved snake game in sfml (C++) #2

So i took even more suggestions and improved the code from this question. Some of the suggestions i wasn't able to implement simply because of my "newbieness" in c++ programming main.cpp ...
4
votes
2answers
67 views

Copy paste from one sheet to another

I wrote this code and it works fine for my purpose, to look for some values and copy paste the result to another sheet (online for selected column). I want to know the opinion from this community ...
7
votes
1answer
81 views

Improved snake game in SFML (C++)

This is the improved code of a question I asked some days ago. main.cpp ...
7
votes
2answers
170 views

Snake Game with own Field API

Some days ago, I posted a question here: Field class as basis for a role playing game I payed respect to tips I find useful and made a further development of my Field-classes. These classes have to ...
4
votes
1answer
69 views

Subset Sum in Ada

One of my favorite classic programming exercises is the Subset Sum problem. I'm (trying) to learn Ada and it's the first thing I wanted to implement, even before a Hello World. The Subset Sum ...
4
votes
1answer
145 views

STL Performance micro-benchmark

I'm fairly new to C++, so as a learning exercise for how to use various simple data structures efficiently and what I should and shouldn't avoid, I wrote the following code: ...
6
votes
1answer
50 views

Implementation of perceptron, inspired by Rashka

I am trying to learn the basics about neural networks by coding from scratch the perceptron model. Since I am not a programmer and would like to improve my coding skills I would like to get your ...
8
votes
3answers
156 views

SFML snake game in C++

I made a snake game in sfml and i'm kind of proud of the code's structure, but proud doesn't mean it's good, so i'm putting it here so that if there is something that could be bettered, you would know....
2
votes
1answer
180 views

To do list mini project

I tried in this project to apply what I learned from OOP, using classes and properties, please advise for any best practice or any improvement. Conclusion: I have a text file "ToDoList.txt" which has ...
3
votes
0answers
59 views

Simple auction application in Django

I'm learning backend dev and python and django1. My first app is a basic auction site. Users sign up, submit an auction, and other users bid on the auctions. I would highly appreciate any ...
2
votes
1answer
69 views

Number guessing game in Python

I'm learning python and created a number guessing game on which I would like to get your feedback on the structure and style of the program. ...
2
votes
1answer
42 views

Guess the Number(Python)

I know this is kind of stuff is somewhat done to death but please still try to review it fairly. My code will only go within the interval of [1,9] ...
3
votes
1answer
73 views

A simple Java game where the player guesses the word

It's a simple word guessing game. The game picks a random word - you guess a letter until it's correct, the game automatically starts a new one. Is my code readable? Am I doing anything that could be ...
8
votes
3answers
157 views

Implementing Sieve of Eratosthenes faster

I wrote a version of sieve of eratosthenes: ...
3
votes
1answer
30 views

Tracking the stability of a website using ping monitor

I'm new to coding and made a small Node script that checks when a website is down because of high traffic. It's a website that sells tickets and I don't want to press F5 every 10 seconds to check if ...
2
votes
2answers
65 views

Split calculation string into parts

Our professor has given us the following task (its part of a bigger document full of tasks): Write a function in C that handles strings like "233+343" and parse them into the variables "iNum1", "cOp" ...
6
votes
2answers
313 views

Generating 10-character passwords, with 3-6 digits and 3-6 uppercase letters, in C++

In response to a question on Information Security on brute-forcing passwords, I wrote code that helped solve the problem: Generate a password list of 10 character passwords containing only a ...
3
votes
1answer
71 views

Project Euler Task 42 Solution

I am relatively new to programming and have been recommended to work through the many tasks in order, in order to better my skills. For some reason, problem 42 had me stumped for a while: The nth ...
6
votes
3answers
2k views

Python 3 - simple temperature program version 1.3

Thank you to everyone for the feedback provided to the initial version of this program posted here. Please find below the newest version, revised based on the comments provided, for review and ...
5
votes
2answers
162 views

Guess the number game (Python)

I'm very new to coding and decided to try a mini-project in python to create a 'guess the number game'. I was just hoping for some feedback on my code-writing to prevent bad habits before they develop....
5
votes
2answers
103 views

My second game (Hangman in C++)

I recreated the game Hangman and I'm decently happy with it, but like always it would be preferable if anyone knew how to improve my code: main.cpp ...
4
votes
1answer
112 views

Beginner c# snake game

I just started using c# and I made this snake game in a console application . It is a bit jittery when i run it in visual studio. How could I improve it to be cleaner and less jittery. ...
4
votes
0answers
170 views

Simple routing in Rust

After my last attempt, I started to learn Rust again. This time I wrote a simple HTTP router. I would appreciate it if you could help me to fix my mistakes. Here is the link of the repository main....
2
votes
0answers
16 views

Python Script to get list of all download links from an FTP based File Hosting URL

I made a small script to get a list of all download links from an FTP based File Hosting URL. I have tested it on a couple of URLs and it works reasonably well. Can you please point out mistakes and ...
1
vote
0answers
12 views

Minimising latency on a pyautogui responce when a given pixel is seen [closed]

I have this code but when I run it on this website (https://www.humanbenchmark.com/tests/reactiontime) it only gets around 100ms. I cant figure out how to make it close to 0 ms. I'm a beginner so I ...
4
votes
1answer
80 views

Android clock in/out app

I am writing a clock in / out and payroll app for Android. I am no professional, but I was hoping I could get some feedback on whether my code is spaghetti or not. This is just one of many classes &...
3
votes
1answer
81 views

Calculating pi via collisions

This code calculates pi via collisions; it asks for a user input of N which determines the mass of the second block. It is fully working, it just takes forever to run when N >= 2. I want to be able ...
11
votes
3answers
2k views

My first C++ game (snake console game)

I finally finished the code for a snake game I was working on. I would like it if you were to give me some advice as to things that can be improved. ...
14
votes
3answers
2k views

Python 3 - simple temperature program

I have been teaching myself Python (as well as Tkinter) and today one of the sites I was reading, asked us to write a program to covert one value from Fahrenheit to Celsius, once - an easy three line ...
0
votes
1answer
159 views

Simple calculation of sector coefficients using PHP

Function This class extends the key class, called EQ, and does basic calculation based on minutely data. It then calculates weight coefficients (e.g., [0, 1]) for ...
2
votes
1answer
51 views

Backup program in Python3 for Linux

Python beginner here. Created this program as a project to help learn python. Just ran this in a centos7vm so far to test. What it does is - zip up files containing certain extensions (excluding those ...
1
vote
1answer
49 views

blueBox dashboard Dribble design challenge

I have coded an UI from dribble design as a challenge and completed it but I think The CSS I wrote is really bad. I am a beginner. How can I improve my CSS?. One of the main problems is that I am ...
3
votes
2answers
62 views

Add three integers and report the sign of the sum

I am in my first high school programming course; the assignment is: Write a program that asks the user to input three integers and outputs a message indicating their sum and whether it is ...
1
vote
1answer
76 views

Program that deletes near duplicate directories and directories that have .ini like files

The program needs to only keep directories that have at least 1 .osu (.ini like) file with certain restrictions in them. It also needs to delete duplicate .osu files. But since duplicate files are ...
1
vote
1answer
39 views

Splitting a String into words and add to an array, Only using StringBuffer and String Array

I've been doing a Java for beginners course for a few weeks (2 hours a week), we had an exam question. Take a sentence as an input from a user for twitter. Using only String Arrays and String ...
1
vote
1answer
65 views

Initialize various commands for the SqlDataAdapter

This is my code for my SqlDataAdapter which is similar to the code example given in the docs: ...
2
votes
0answers
76 views

Total steps of of long process, track completed steps, reuse query [closed]

I have some long-time method (PrintInfo). I need to know total steps of that method and track completed parts. How to reuse same filtered query in: TotalSteps (ex, Program: progressMonitor....
5
votes
0answers
148 views

Spliting PDF and get thumbnail while adding it to a ListView

I'm doing a application to work with PDF and TIFF files. To divide them, the user opens the file or folder (if it is a folder, it gets all the files inside) and the app splits the file, getting a tiny ...
4
votes
4answers
161 views

Largest Palindrome Product - Project Euler #4

This is my code for Project Euler Problem #4 The question: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. ...
6
votes
1answer
160 views

Game that fights random enemy

This program is the basis for a bigger game I'm working on. I want to make sure I did this correctly before moving on. Please give pointers to anything I can improve. I'm learning on my own, so I ...
4
votes
0answers
62 views

Butter side up?

I've written a piece of code that determines if a piece toast with butter lands on the butter-side or not, depending on its initial velocity and the table height. The code is written in Mathematica ...
6
votes
2answers
161 views

Calculator in Python 3 using Tkinter

Edit: New version at Python 3 Tkinter Calculator - follow-up New status: I´ve refactored the code trying to follow the recommendations from the guys who answered this question. The new version is on ...