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

Arithmetic practice script in a tkinter window

I wrote a script that gives the user a quick arithmetic quiz and results using a tkinter window. I am very new to programming and this is also my first time using Tkinter as well. ...
flakpm's user avatar
  • 1
0 votes
0 answers
25 views

Testing whether parenthesis are correct in a string in functional JS

This is a homework exercise and therefore has no further purpose. The writing to me feels clunky, and the typescript types on addParenthesisFactory are unreadable, ...
Tomer Kandel's user avatar
2 votes
1 answer
40 views

Basic rust Celsius to Fahrenheit conversion

I've been following the rust book, and I made a Celsius to Fahrenheit converter as it advised me. After a bit, I came up with this code; however in my opinion, there's a lot of unnecessary parts that ...
icy icy's user avatar
  • 23
5 votes
1 answer
463 views

C++ - Find all duplicate files (follow-up)

What's changed since the first version: Instead of hashing each and every file, the sizes of the files are first compared, and if those are equal, the files are then hashed. A more collision resistant ...
Harith's user avatar
  • 5,719
3 votes
1 answer
273 views

C++ - Find all duplicate files

It requires no explanation, so here's the code. Code: ...
Harith's user avatar
  • 5,719
-1 votes
0 answers
72 views

Simple C++ Program: Enter Golf Scores, Calculate Average, and Display Results using Arrays [closed]

I'm a beginner in C++, and this is an exercise I did after I learned functions. This C++ program prompts the user to input up to 10 golf scores, with an option to exit early. It then calculates and ...
zonkler's user avatar
5 votes
1 answer
159 views
+200

Sand simulation in Rust

I am working on this project to learn Rust and a bit of Web Assembly. The rendering is done in JavaScript which I do not really care about so I will not post. I would like to receive some harsh ...
Doruk's user avatar
  • 201
8 votes
3 answers
833 views

Split String Function Implementation in Python

For learning purposes, I am trying to implement Python's built-in function split. I am new to Python, and I know that str.split ...
JimmyHu's user avatar
  • 4,708
4 votes
1 answer
395 views

Get visitor current city via API or display the city the user searched for

I am writing a simple PHP script to display all my available stores in google map. If the user just came in, I need to set the user current city as default city using geolocation (3rd party); ...
Cooperative's user avatar
2 votes
1 answer
57 views

Text-based tic-tac-toe in bash (continued)

I wrote this two-player tic-tac-toe program in bash. To make a move, you enter a number between 1 and 9 which corresponds to the square: ...
sbottingota's user avatar
8 votes
1 answer
262 views

C++ - Lexer for the Monkey Programming Language from the book "Writing An Interpreter In Go"

Below is a C++ version of a lexer for the Monkey programming language, originally written in Go, as presented in the book Writing An Interpreter In Go. LOC: 262. (Excluding the tests.) Language: Copy ...
Harith's user avatar
  • 5,719
0 votes
0 answers
39 views

Unity Gesture Recognition Code in C#

I'm new to C# programming and have been working on a Unity project that incorporates gesture recognition using the PDollarGestureRecognizer library and Unity XR Hands package. My application is ...
user17410204's user avatar
4 votes
1 answer
139 views

Print and compare structure comprising two integers

The question is from: https://www.learncpp.com/cpp-tutorial/member-functions/ Create a struct called IntPair that holds two integers. Add a member function named <...
Harith's user avatar
  • 5,719
6 votes
1 answer
166 views

Text based tic-tac-toe in bash

I wrote this two player tic-tac-toe program in bash. To make a move you enter a number between 0 and 8 which corresponds to the square: 0|1|2 3|4|5 6|7|8 This is ...
sbottingota's user avatar
4 votes
1 answer
61 views

Parsing command line arguments with CLI

I'm new to rust, and this is my very first rust program. I'd like to write a simple CLI app to help me running some Git command on multiple repositories. Since my goal is learning rust, I force myself ...
Marcus's user avatar
  • 41
2 votes
2 answers
72 views

Form in the Epicor ERP environment

I've written this code for use on a form in the Epicor ERP environment. The code is doing what I need, but since I'm still learning I would imagine that there are better ways of coding. I'm here ...
DaShMa's user avatar
  • 21
4 votes
2 answers
128 views

Game of life code in C++

Does my code for game of life look good enough? What changes can I make to optimize the code? I am a beginner to java and I've coded the Game of Life! For those not familiar, the game entails creating ...
ap0calypse's user avatar
5 votes
3 answers
675 views

Rust: Command line menu in ASCII table

Specific areas in which I'd love to get feedback: Is it good to have the Command struct own the Strings (...
m01010011's user avatar
  • 153
4 votes
0 answers
62 views

Google App Script to take form responses submitted by teachers on their students and produce formatted PDF student reports

I'm not a programmer but, with help, I managed to make a Google Apps Script which takes reports, submitted by teachers on their students, to the Form Responses Sheet, and then selects all responses ...
StreetSavvypub's user avatar
8 votes
2 answers
875 views

Drawing a mathematical envelope with turtle graphics

I started coding a week ago. I played a bit with the turtle module and I am looking for ways to improve my code. Please feel free to share improvements. Here is the shape it creates: ...
Lorenzo's user avatar
  • 83
10 votes
2 answers
1k views

Beginner Rust Todo app

I am trying to use the practices that I have learnt from the rust book. Any advice is welcome. Please feel free to be as nitpicky as possible. ...
Doruk's user avatar
  • 201
8 votes
1 answer
314 views

Basic Ray Tracer

This is my first self-guided programming project, and all the math used in the program is self-taught. I wanted to get a better understanding of how computer graphics worked, but I just feel more ...
Jonas Banks's user avatar
1 vote
1 answer
61 views

An API fetcher class - afraid of overengineering class

I'd like to ask you for a code review of this class. I'm quite new to Java and I'm afraid I have way overengineered this class. It's goal is only to fetch a specified data from given API, whose link ...
Piotr's user avatar
  • 13
3 votes
0 answers
60 views

Simple truss stiffness matrix calculator in Rust

I recently developed this calculator for some FEA homework i had. I'm still trying to familiarize myself with fundamental rust concepts like the ownership and borrowing. Pls let me know if there is ...
vvurd's user avatar
  • 31
7 votes
1 answer
388 views

Scientific Calculator

I finished this code a few minutes ago. It started off as an explanation of a basic calculator in C to a friend. Then we decided to take it further and I made this. Please tell me where I can make ...
ThePowerHex_YT's user avatar
6 votes
2 answers
635 views

Encrypter and decrypter project

I am here to ask for criticism, as for my first week of Python I feel like I have improved a lot. I recreated the first program I made within my first hour with a tutorial, the one I made now is based ...
ShiroAboveAll's user avatar
5 votes
2 answers
221 views

2048 game in Java

I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
smwt's user avatar
  • 187
2 votes
3 answers
1k views

Math calculation JavaScript. Am I using Objects correctly? Can I use methods / functions to shorten my code further? Also error logging?

Context- CRM system, front-end form. Requirement- Within a form users have to give a rating to a section based on user inputs, each rating has different weighting. The rating is stored in an option ...
BenDev21's user avatar
2 votes
0 answers
26 views

React/Typescript/Redux Tool Kit work flow for Category component

I'm quite new to React hooks/Typescript/Redux. I'm building a mock e-Commerce website for my portfolio. I've got a component (Category) working and rendering data with no issues, it follows the below ...
Corey's user avatar
  • 21
4 votes
1 answer
95 views

Writing a HTTP server in C

Code ...
Dang Quang Vinh's user avatar
3 votes
1 answer
147 views

Beginner C# console TicTacToe program

I've been learning to program in C# for a couple months and wanted some feedback regarding a project I completed. Criticism and constructive feedback is what I'm after, so bring it on! I know there ...
Unlived172's user avatar
8 votes
4 answers
966 views

Remove all text files with non-US-ASCII text encoding from current folder on Linux

...
FAQ's user avatar
  • 183
3 votes
2 answers
96 views

Making an "analogue display" by drawing boxes

This is a personal (very amateur) project to teach myself how to use if statements, lists/tuples, loops, etc. It takes an input of one letter and using a pygame-based module ...
Flampzah's user avatar
1 vote
2 answers
78 views

Advent of Code 2023 day 1: Trebuchet (Part 2)

Task: The task involves analyzing a calibration document containing lines of text. Each line represents a calibration value that needs to be recovered by extracting the first and last digits (which ...
Harith's user avatar
  • 5,719
3 votes
1 answer
318 views

First dynamic array in C

I am new to C and have been learning it for about a month now. This is my attempt to implement a dynamic array. My code works, but i don't know whether or not it leaks memory. But my code works as I ...
Logeshwaran K's user avatar
4 votes
3 answers
1k views

Advent of Code 2023 day 1: Trebuchet (Part 1)

Task: The task involves analyzing a calibration document containing lines of text. Each line represents a calibration value that needs to be recovered by extracting the first and last digits and ...
Harith's user avatar
  • 5,719
7 votes
4 answers
2k views

A simple Vector library in C

I recently started working on my own vector library for a project and I thought it would be a good idea to get some insight on the code that I have written so far. It's very simple as I'm new to C. ...
cguybtw's user avatar
  • 79
3 votes
3 answers
1k views

First C++ Program: Race Car Driver Points Calculator

Task: Write a program that is given three numbers corresponding to the number of times a race car driver has finished first, second, and third. The program computes and displays how many points that ...
Harith's user avatar
  • 5,719
0 votes
0 answers
32 views

Simple Feed Forward Neural Network with no backpropagation yet

The following code is code I wrote in c for a simple neural network with no backpropagation implementation yet. All the header files were put in one file because I am using visual studio which does ...
Christian Phillips's user avatar
0 votes
0 answers
106 views

userform with textboxes and dates to show timeline

I am writing the following VBA code to make a timeline, which I will be using for other parts of the code later on for other calculations and output. I have a userform where the following number of ...
Barbarian's user avatar
1 vote
0 answers
20 views

React Note App with context and reducer

In my React learning journey, I wanted to create a Note app following the SOLID principles and use as many hooks as possible to grasp things in React. If you can review my code and improve it, it ...
Crehera's user avatar
  • 41
3 votes
3 answers
109 views

Improving efficiency of database searches under SQLite (SpatiaLite - QGIS)

I'm new to SQL, but I've always heard that it's a very efficient way of searching databases. For the same task, in VBA I get a result in a few seconds for 1000 queries. In SQL it takes several minutes....
Giene's user avatar
  • 149
3 votes
0 answers
86 views

Rust ffi wrapper for barcode scanning library

I'm the maintainer of the zxing-cpp library, a barcode image processing library written in C++. I recently decided to invest in a Rust wrapper library/crate that is now on crates.io. It is basically a ...
axxel's user avatar
  • 147
7 votes
4 answers
1k views

C# console app that draws an image to the console using ASCII

I'm semi-new to programming and want to improve my skills by understanding how people might optimize their code and how the code should be structured since I've been told it needs to do more than just ...
CareeeBugger's user avatar
26 votes
5 answers
9k views

Rock Paper Scissors. My first C++ program. Please judge harshly

I am new and only know the basics of C++. Any help will be appreciated. I want to know how to make my code less lines, more efficient, proper practice and play better. ...
Sammyng's user avatar
  • 369
2 votes
1 answer
67 views

Session Logic for User Verification in Rails Migration

This is a logic to create sessions on RoR 7.1.2 based on the last version of the website which was in vanilla PHP, with the upgrade I have to deal with the users that were already signed up but not ...
ZAMA's user avatar
  • 35
2 votes
1 answer
29 views

Simplify matching values while comparing two sorted sets

This is in Star Basic but most likely quite a few languages would have similar structure. I am comparing rows in two sorted sheets. I have a comparison function which returns -1 / 0 / 1 similarly to <...
chx's user avatar
  • 376
3 votes
2 answers
108 views

Text based Java game "Battle Arena"

This is my first java program. I'm coming from a python background. This is a text based combat arena game. Are there any ways I could better implement the overall code structure? How might I improve ...
spaghetticode's user avatar
3 votes
1 answer
50 views

RandomNumber wrapper in Lua

This is a wrapper I wrote for math.random(). I have a larger program that will create a JSON file to 'load' from when I want to resume. However my program heavily ...
dustytrash's user avatar
  • 2,406
5 votes
2 answers
183 views

Binary tree struct in C

Its been done to death, but the particular prompt (see Assignment 4) guiding me has strict+simple requirements that lead to a nice reduced environment to critique poor form. The project implements a ...
shea's user avatar
  • 53

1
2 3 4 5
151