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.
7,587 questions
6
votes
5
answers
1k
views
JavaScript program that calculates the sum and difference of a pair of numbers
The goal of the following openprocessing.org JavaScript program is to calculate the sum and difference of a pair of numbers and print the 2 results if they are both positive. I want to do the ...
6
votes
2
answers
442
views
Number-guessing game on command line
I am just starting coding, and this is my attempt at the famous number-guessing game. Any and all feedback and criticism is greatly appreciated.
...
4
votes
4
answers
1k
views
4
votes
1
answer
215
views
CSV TimeSheet Calculator
This program takes in a CSV timesheet for my current job, groups the hours worked by employee then outputs it to a txt file. I used a simple GUI with tkinter and ...
4
votes
3
answers
219
views
Field Sorting , ANSI-C/K&R 2ED, Exercise 5-17 brainstorming
This program is an expansion of the sorting utility built in previous chapters of K&R's 2nd edition of ANSI-C Programming. It parses command-line arguments to determine which fields to sort by and ...
2
votes
1
answer
123
views
A Tic-Tac-Toe prototype written in SFML and C++
I'm a beginner in C++, and I tried to implement some basic skeleton for a game of Tic-Tac-Toe using SFML 3.0.0.
The thing is, it contains some main logic:
Place figures (...
8
votes
4
answers
993
views
Python implementation of core fundamentals to calculate math arithmetic
This program takes a user input to choose which calculation method they'd like to use, then uses a separate module and the math library to perform said calculation.
I'd like some feedback as to how ...
6
votes
3
answers
675
views
Interactive simple calculator as a first project. As of now it handles arithmetic, linear and quadratic calculations
This is my very first personal project. I'd like to know what I can improve in this code, with reference to optimization and efficiency.
Here's the code:
...
6
votes
1
answer
299
views
Splitting a long introduction into collapsible elements easier to read and translate
Before I started, we had a few long introductory texts that were shown to users in different part of the editor window, depending on what type of object they are editing. The texts describe how to add ...
6
votes
2
answers
172
views
Parsing HTTP headers from &HashMap<String, String> into http::HeaderMap
For context, I'm very new to Rust, and I'm trying to learn the best practices and nuances of it as I go.
I've written this small function that takes a ...
3
votes
1
answer
103
views
OpenProcessing.org JavaScript program - Building a list of matrices
My openprocessing.org JavaScript code listed below produces the output I want but doesn’t seem very elegant to me especially the “.M” in “matrices[mat].M[row][col]”. Any comments to improve the ...
8
votes
1
answer
530
views
An electronic implementation of the Change Change game
I am fairly new to programming using the site openprocessing.org.
My program, available to play online here, is a simple puzzle game in which you slide the circles so that you end up with 4 circles in ...
5
votes
4
answers
897
views
A program to solve quadratic equations ax² + bx + c = 0 with imaginary results
This is my second post and my second “tough” question I came across while reading PPP3.
I graduated a while ago and honestly forgot the equation... The question didn’t explicitly say I needed to find ...
2
votes
1
answer
89
views
Encapsulating status codes and messages à la absl::Status
I'm new to Lua and thought a decent way of familiarizing myself with the language would be to implement some basic utility functionality around status codes. In particular I've reimplemented a subset ...
5
votes
2
answers
936
views
rock paper scissors game with randomized system choices. NOT using rnd()
Here is the question I was trying to answer:
[11] Write a program that plays the game “Rock, Paper, Scissors.” If you are
not familiar with the game do some research (e.g., on the Web using
Google). ...