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
0
votes
0answers
16 views

Improving Conway's Game of Life In Python [duplicate]

This code is part of Conway’s game of life. Currently, this coding program is taking about 70+ lines of code in Python to return the output of the game, which is mainly caused by manually checking the ...
1
vote
0answers
13 views

Higher lower game

I'm currently learning python with an udemy course. I wrote this code, which is meant to be a higher lower game, where the second answer always stays. As far as i tested it my code is working fine, ...
0
votes
0answers
18 views

Quicksort Invariant and steps to determine correcteness

I am having trouble with applying to 3 steps needed to proof correctness, most likely because I did not formally study CS or Mathematics and am still learning about loop and class invariants. The ...
1
vote
0answers
36 views

Pokédex by a Python novice

This is my first real personal application and I'm just looking for some outside feedback. Completely built in Python, this is a Pokédex for the Pokémon Mystery Dungeon series. I hope to eventually ...
2
votes
0answers
19 views

To-do application in React

I am new to react and I tried to implement a TODO application using react state and props. I need somebody to just review the code and suggest improvements in the code. Currently I have not added any ...
2
votes
1answer
82 views

Getting values from a given level of a nested collection

This question is a supplement to my previous question: Counting 'absolute' nesting levels of an iterable. I would like to expand functionality of counting nests in order to get values from given nest. ...
3
votes
1answer
30 views

Building a trie from a vector of strings in Rust

I'm learning rust (coming from C++) and playing around with different small algorithms to understand the ownership & borrowing concepts better. Currently, I'm having difficulties finding the ...
5
votes
1answer
36 views

Librarian script to find and copy a file

I wrote this script partly as an exercise in learning Bash and partly because I needed a tool to find specific versions of library files and copy them to a particular device. The script takes ...
6
votes
2answers
111 views

Counting 'absolute' nesting levels of an iterable

I need to write a function to count numbers of nests in an iterable. I reached my goal but wondering if there's any more neat/faster solution (maybe even a library or so?). Besides I'm afraid that my ...
1
vote
1answer
59 views

DNA Challenge from CS50

Added the problem link below and my implementation of it. Took me a few hours to program. I have added comments to explain my thought process. Problem Link Goal - To implement a program that ...
3
votes
2answers
94 views

Python TIC TAC TOE Project

I just joined here. I have been doing python for a couple of weeks and I would like for some experienced programmers to review my code. I made this for a school project and I am proud of it. The code ...
0
votes
0answers
22 views

Relational join of two datasets

Front Matter I'm learning Scala and have not gotten used to functional programming and the language. I'm hoping a review of my naively implemented code can help me bridge my object-oriented ways to ...
2
votes
0answers
18 views

Ansible playbook to install Docker Swarm

this is my first ansible playbook. it installs docker in swarm mode and automatically joins the cluster. could you guys please review my code and show me where it can be improved? ...
2
votes
1answer
74 views

Gallery template class

I have created a template class Gallery which is intended to be used as a container for objects. I used a private member of type...
3
votes
1answer
47 views

Monte Carlo Simulation of 7 Card Stud Poker

I've completed this as part of an online programming course (in which code review is supposed to be done by fellow learners, but it's been a very long time and none of them have reviewed this), and ...
2
votes
0answers
20 views

Make selected colours brighter in Blender

The problem: I am working with a set of objects in Blender with per-vertex colours. Each object has only two distinct colours. For all objects in a selection, I am choosing only the brighter of those ...
1
vote
3answers
104 views

Verify that 5 Textboxes have some content

I'm new to C#. I have created a form that has 5 text boxes and this function checks to see if every text box has text in the box. If not, then it displays a message box saying "Error (Add Text)...
1
vote
0answers
42 views

Rust based Sudoku solver using backtracking

I've just started learning rust and have written a basic sudoku solver, however it seems to run much slower than I expected. So I'm looking for any possible performance improvements as well as any ...
12
votes
5answers
4k views

My first C program: quadratic formula calculator code

Recently I've started to learn the C programming language. This is my first program which finds zero places of quadratic formulas. Doesn't parse, just gets the discriminants, counts delta and x1, x2. <...
3
votes
1answer
76 views

Implementation of a type-safe generic dynamic array in C

I'm new to C and was trying to write a generic dynamic array which is type safe. I'm not sure if I pulled it off in the best way possible though. dynarray.h: ...
3
votes
2answers
83 views

Tic Tac Toe in object oriented JavaScript

I've been working on a course assignment for 'The Odin Project' and was hoping to get a review of my code. As per the help guide, the code is fully functional. The criteria for this was pretty ...
3
votes
1answer
73 views

Cliché Rock, Paper, Scissor, as first Python program

It's been a while since I've done any sort of programming, and my first time in Python. I'm just looking for any general feedback and tips since this is my first program. ...
1
vote
2answers
46 views

Evaluate the roots of Bhaskara’s formula

I'm creating a program that finds the roots of Bhaskara’s formula and prints them. I'm looking for advice to improve my logic more and more. ...
6
votes
2answers
766 views

Read and write triangulated surfaces

Recently, I wrote a class which can load an .obj file into vector array, and save the vector array as an .obj file. The .obj file looks something like this: ...
2
votes
0answers
40 views

Philips Hue Light Controller

I have created a program where it contains the IP of the user and uses it to connect to a Philips Hue Bridge. I've just recently started python so I understand my code may be terrible. ...
2
votes
2answers
73 views

First C program - Tic Tac Toe 2

I have already posted this program and got some good recommendations on how it can be improved but I would like to further know what can be improved for example: Should dynamic memory allocation be ...
3
votes
1answer
85 views

Simple item and inventory system in C#, my first actually competant looking piece of code as a beginner. Really proud of it

Items.cs, Creates dictionaries, enumerators, and classes for every type of item. ...
3
votes
1answer
114 views

Find potentional sponsor for every animal

This is a programming challenge in Czeck. My translation follows. Does anyone know what the time complexity of my code is? Input: The first line contains 2 integers: the number of animals 1 ≤N ≤100 ...
3
votes
2answers
408 views

How do I increase the speed of this loop or pixel color finding process?

I've been working on a program that should find the color red on the screen and then send out an alert. The issue is that the red color moves around a lot and the color finder moves too slow on the ...
2
votes
0answers
30 views

Conway's Game of Life in Powershell

I'm learning PowerShell for professional development, but decided to do a bit of a silly project to help learn scripting in more depth, and chose Conway's Game of Life. This is the first PowerShell ...
2
votes
1answer
34 views

Total income program: budget and savings calculator

I started my cs50 course this week and I will be trying to make little projects alongside to reaffirm what I've learned thus far. Here I have made a very basic budget and savings calculator, I am ...
0
votes
2answers
106 views

First C program - Tic Tac Toe

Hi I am a beginner and l would love to hear your opinion on my first C project, how can it be improved in any way, for example dynamic memory allocation isn't used in the program because I didn't ...
1
vote
1answer
68 views

Guess The Number Game with GUI

So I've decided to practice I will turn all my scripts etc into GUI apps. So my 36 loc guess the number game turned into 136 loc. It's not the best looking, but it does work and on hard it's actually ...
2
votes
1answer
47 views

Find the closest match to a string [closed]

Input The first line of input contains a string s: the word misspelled by your partner. Assume that your partner did not add or remove any letters; they only replaced letters with incorrect ones. The ...
1
vote
0answers
65 views

Interactive browser launcher in Rust using Native Windows GUI

The program is supposed to be set as the default browser in Windows and allows me to select which browser profile I want to use when I open a link from another program. I have quite some experience in ...
4
votes
1answer
235 views

Simple Cash Register -Python

here it is my simple cash register app. It lacks some functionality ( class Payments should have more options like daily statements etc, ...
3
votes
2answers
255 views

Function to create single linked-list

Given the following data struct: typdef struct lista { int num1, num2; struct lista* sig; } nodoNum ; and a declared ...
6
votes
2answers
140 views

Console battleship game made in C

I started out to learn more about C to learn more about low level programming and hardware and I can improve. It generates a random number between 1 and 4 then stores it into two variables. It takes ...
1
vote
0answers
16 views

Typescript React-Native Component Dimension Hook

I did a lot of research trying to find a React Native component which could reference its own dimensions in order to scale different elements in its style, but could not find any solid examples. I ...
2
votes
3answers
229 views

tic-tac-toe game with a vector

This is my first game ever. I' learning C++ now and I decided to make a game. I saw a snake game that works with the draw-input-logic system and I really liked it. I tried to make a tic tac toe game. ...
15
votes
5answers
2k views

Comma Code, Project from "Automate the Boring Stuff with Python"

I'm a newbie. I'm at Chapter 4 of Automate the Boring Stuff with Python. Comma Code Say you have a list value like this: ...
2
votes
3answers
66 views

Phrase to acronym in C from exercism.io

I am learning C and doing challenges like those found on exercism.io and the various data structure & algorithm sites. I have a sense that while this works and it makes sense to me that it can be ...
1
vote
0answers
24 views

Generic Huffman Encoding

For my first Rust exercise I decided to re-implement a project I wrote in C++ for my data structures class a few years ago, plus make it generic. I am looking for all suggestions, but I am primarily ...
7
votes
2answers
111 views

Weather App- Python

This is my very basic Weather App. Would appreciate your opinion mainly about style, writing code etc. I know there is not much functionality to this app, but I have created it just to practice and to ...
4
votes
3answers
118 views

Circle & Sphere Calculator

I've just wrote my first real C program. It calculates the dimensions of a circle or a sphere based on the user input. The program asks the user which dimension they are entering and then prints the ...
4
votes
2answers
156 views

first Go program: Tic Tac Toe

If I formatted my question wrong, feel free to notify me or update, this is my first question on this subforum This is literally my first ever Go project, decided to make a Tic Tac Toe (ironically I ...
3
votes
3answers
748 views

Calculate movie ticket price

My program displays the price of a movie ticket. The price is based on the customer’s age. If the user enters a negative number, the program displays the “Invalid age” message. ...
6
votes
3answers
417 views

Rock-paper-scissors in C++

I'm relatively new to C++, and have attempted a Rock Paper Scissors game, and it works. Here and there I added some countdowns so that the program doesn't run instantly. Any tips for improving the ...
2
votes
0answers
47 views

Download and parse XML data from a URL every minute with F#

The purpose This code is intended to achieve the following goals:- Create a hard coded list of lifts, this is pretty static and I add some extra info so I'm ok with this being in the code but I may ...
10
votes
3answers
856 views

Text-based role-playing game

I created a text-based RPG. game.py ...

1
2 3 4 5
142