Skip to main content

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
1 vote
0 answers
28 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 ...
zziccardi's user avatar
5 votes
2 answers
842 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). ...
nikx0918's user avatar
8 votes
5 answers
2k views

Console-based Casino Game in C++

I made a casino game that runs in the console for my grade 10 final project, and I received a 93% as my grade. I'm looking for feedback in areas such as syntax, user experience and efficiency. I would ...
ineedaham's user avatar
2 votes
0 answers
85 views

openprocessing.org program - After screen tap, erase red circle, pause and lastly draw new white circle

I am new to programming using the site openprocessing.org. The code given does the following on my iPad: Draw a red circle Wait until I finger tap near the red circle’s center Erase the red circle ...
Will.Octagon.Gibson's user avatar
1 vote
0 answers
23 views

GUI button clicks start runspaces that take care of heavy processing tasks

I'm currently updating a ping script I maintain at work, transitioning from WinForms to WPF. Because of this I've started learning about and incorporating runspaces to keep the GUI responsive during ...
K_P's user avatar
  • 11
4 votes
0 answers
57 views

SHA1 Algorithm Implementation in Zig

I have implemented the SHA1 algorithm in Zig, as a learning exercise, to teach myself both Zig and the actual algorithm behind SHA1. Now the second part I think I understood well enough. The ...
Rohit Tanwar's user avatar
6 votes
2 answers
429 views

(Codewars) Goldbach's Conjecture (by @rsalgado) in Ruby

Link to kata: linkRank: 6 kyuKata author: @rsalgado I have been recently learning Ruby-lang and have been attempting to solve the following kata from Codewars involving Goldbach's Conjecture: ...
CrSb0001's user avatar
  • 619
3 votes
1 answer
110 views

Custom Math Parser for trivia game

This parser is made for part of larger trivia game, and only allowed numbers are positive integers. So negative or decimal numbers should return -1 as sign of error. I'm pretty new to programming and ...
Nemanja's user avatar
  • 33
9 votes
3 answers
2k views

Solver for Wordle puzzle

After a success with the Jumble puzzle solver, I am doing a Wordle puzzle solver. I know many other Wordle solvers have been posted, yet this is my original version, which emphasizes list ...
inyoot's user avatar
  • 347
3 votes
1 answer
79 views

Implement a matrix and access its elements

I have just started to learn how to program in Scheme using the LispPad app on my iPad. I want to know if the following is the best way to implement a matrix and access its elements. This code ...
Will.Octagon.Gibson's user avatar
5 votes
3 answers
224 views

Sieve of Eratosthenes with Wheel Factorization in C++ version 2

I have implemented Sieve of Eratosthenes with Wheel Factorization in C++ again, this time using a bigger wheel and much more complicated C++ syntax, to familiarize myself with C++ and see how fast I ...
Ξένη Γήινος's user avatar
3 votes
2 answers
750 views

Retrieval-Augmented Generation from text files

Context: I'm a complete newbie trying to get good at structuring my code. I'm aware that I'm supposed to do my own research with docs, but I don't know what specific docs I should be reading for this ...
Shades's user avatar
  • 41
5 votes
2 answers
123 views

Compare two files in 16-bit DOS assembly

The task is to do a byte-by-byte comparison and print whether the files are equal or not. Code: ...
Madagascar's user avatar
  • 10.1k
5 votes
2 answers
112 views

Command-line Tool That Reads a Text File and Calculates Basic Statistics

TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool. I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
Magd Aref's user avatar
6 votes
3 answers
405 views

Function which returns arithmetic expression based on an operator

For the following code, I have trouble improving it. I need to write a function getExpression(level, operator) which has one integer parameter representing a level ...
nathan007's user avatar

15 30 50 per page
1
2 3 4 5
505