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.

3votes
1answer
264views

How do I structure this file better?

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
5votes
2answers
105views

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
5votes
2answers
87views

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
6votes
3answers
391views

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
4votes
1answer
62views

IBM File Processing and PDF Conversion App Using PyQt6 and FPDF

I am trying to convert a 111MB TEXT file to PDF quickly. I'm currently using the FPDF library, and large files take about 40 minutes to process. The text file is an IBM carriage control (ANSI) file ...
cessy's user avatar
1vote
0answers
30views

Evaluating an expression with shunting yard algorithm

I'm learning Scala and wrote a simple infix expression evaluator using the shunting yard algorithm. As opposed to the wikipedia example, this implementation evaluates the expression in place instead ...
TorbenPutkonen's user avatar
9votes
2answers
239views

Blackjack game for assignment

I’m a first-year IT student, and I’ve completed a working Blackjack game in Python as part of an assignment. I’d love to get some feedback on my code structure, readability, and comments to improve my ...
Goose's user avatar
6votes
7answers
1kviews

Filter non-even elements from an array

I have a method that returns an int[]. The array is made by filtering out only the even values of the array passed into the method. It works, but it's really ugly ...
Otaku's user avatar
3votes
0answers
39views

Project of chrono, countdown, interval timer and custom timer

I created a project with visual studio, in V language. Since I am a beginner, I would like to improve the code by making it lighter and less repetitive, and more performing, and suitable to be run ...
Ros's user avatar
  • 39
4votes
1answer
233views

I2C serial communication protocol for university project

For now, I have only implemented a simple I2C protocol where only the master transmits the data. Also there is ack_bit for the I2C Address only. For state 5, i.e.,...
Ayush Mritunjay's user avatar
5votes
1answer
118views

Default methods for embedded structs

I am learning Go by working through programming puzzles. There is shared boilerplate between puzzles that I want to factor out into into some kind of helper structure: Read the input (always the same,...
user289146's user avatar
9votes
2answers
1kviews

"Weird Algorithm" (Collatz) from CSES Problem Set

I had to solve the following problem: Consider an algorithm that takes as input a positive integer n. If n is even, the algorithm divides it by two, and if n is odd, the algorithm multiplies it by ...
user23259461's user avatar
10votes
3answers
1kviews

Basic Terminal Calculator in C++

I'm a freshman Computer Science major looking to build projects for my portfolio. I'm new to C++ and programming in general. Is there any way I can improve this basic calculator I've made? Also, what ...
Rajah Williams's user avatar
5votes
1answer
77views

Advent of Code 2015 "Not Quite Lisp", in Common Lisp (Part 2)

I asked for feedback on part 1 of this Advent of Code challenge: Advent of Code 2015 "Not Quite Lisp", in Common Lisp I have read everyone's feedback and done a lot of further reading. I ...
Mountain Man's user avatar
5votes
3answers
174views

C# string forming ballots

I'm a junior developer currently working on a C# project. There is a lot more for me to learn so here I am looking for some advice on my code snippet. I have a function that executes a number of ...
Johann Jamaluddin's user avatar

153050per page
close